OutlookAttachView
Package: WA2L/WinTools 1.2.08
Section: General Commands (1)
Updated: 18 January 2019
Index
Return to Main Contents
NAME
OutlookAttachView - View/Extract/Save Outlook Attachments
SYNOPSIS
WA2LWinTools/bin/OutlookAttachView
[
-h
|
-i
|
-u
|
-V
]
OutlookAttachView
[
options
]
AVAILABILITY
WA2L/WinTools
DESCRIPTION
OutlookAttachView
scans all messages stored in your
Outlook,
and displays
the list of all attached files that it finds.
You can easily select one
or more attachments and save all of them into the desired folder,
as well
as you can delete unwanted large attachments that take too much disk
space in your mailbox. You can also save the list of attachments into
xml/html/text/csv
file.
Using OutlookAttachView
If you have only one profile in your
Outlook,
and this profile doesn't
require any password, you can run
OutlookAttachView
even without starting
Outlook,
and it'll automatically scan the mailbox of your current
Outlook
profile. Otherwise, it's recommended to open
Outlook
in the right profile
before starting
OutlookAttachView.
After running
OutlookAttachView,
the 'MailBox Scan Options' window will
be displayed. This window allows to choose to scan your mailbox only in
specific dates range. After choosing 'Ok' in the options window,
OutlookAttachView
starts to scan your
Outlook
messages and display the
found attachments in the main window of
OutlookAttachView.
If you want to
stop the scan process, simply choose the 'Stop' menu.
After the scanning process is finished, you can select one or more of
your attached files, and copy them into the desired folder, by using the
If have large attachments that you want
to delete, you can use the 'Delete Selected Attachments' option. Be aware
that when you use the delete option, only the attachment file is deleted.
The message itself remains on your mailbox.
You can also use the 'Clean Selected Attachments' option to clean most of
the attachment content, but without removing the attachment entry. If you
use this option, you'll still see the attachment listed in your email
message with small file size, but saving this attachment to a file will
create a corrupted file.
Inline Attachments
Attachments embedded as a part of the message body are detected as
OutlookAttachView
doesn't displays
these inline attachments.
If you can't find the attachments you're looking for, you should try to
turn on the 'Show Inline Attachments' option, located under the Options
menu.
Control The Filename Format of Extracted Attachment
When you extract one or more attachments from your
Outlook
mailbox, you
can control the way that the attach filename is generated. By default,
OutlookAttachView
use the following format: %attach_name%.%extension%,
which means that the generated filename will only contain the original
attachment name and the file extension.
However, you can also use the
following special variables to format the filename according to your
needs:
- %attach_name%
-
The original name of the attachment.
- %extension%
-
The original file extension of the attachment.
- %subject%
-
The subject of the email contains this attachment.
- %folder_name%
-
The folder name of this email (Inbox, Sent Items, and
so on)
- %from%
-
The sender of the email.
- %to%
-
The 'To' field of the email.
- %message_date%
-
Message creation date in yyyymmdd format.
- %message_time%
-
Message creation time in HHmmss format.
- %message_size%
-
Attachment size, in bytes.
- %folder_path%
-
Full folder path of this email.
(For example: Personal Folder-Inbox)
- %folder_full_path%
-
Full folder path of this email, with '\'
characters (For example: Personal Folder\Inbox). You can use it to
generate subfolders identical to the folders structure in Outlook. You
also have to turn on the 'Create subfolders automatically' option.
- %msgdate:[format]%
-
Message creation date (GMT), in any format you
need, for example: %msgdate:yyyyMMdd% , %msgdate:ddMMyy%
- %msgtime:[format]%
-
Message creation time (GMT), in any format you
need, for example: %msgtime:HHmmss%
- %localmsgdate:[format]%
-
Message creation date (local time), in any
format you need, for example: %localmsgdate:yyyyMMdd% ,
%localmsgdate:ddMMyy%
- %localmsgtime:[format]%
-
Message creation time (local time), in any
format you need, for example: %localmsgtime:HHmmss%
For example: If you want to generate the attachment filename with the
subject, folder name, and attach name:
%folder_name%_%subject%_%attach_name%.%extension%
Be aware that some of the values are automatically truncated after 64
characters, in order to avoid from over-sized filenames.
Scanning Outlook Attachments of External PST Files
If you want to search an attachment in one or more
PST
files that are not
loaded in your
Outlook
profile, you can use the following trick:
- 1.
-
Go to Control Panel -> Mail and choose 'Show Profiles'
- 2.
-
Click 'Add' to create a new profile.
- 3.
-
Fill the email account information with faked details (You can
delete it afterwards)
- 4.
-
After the profile is created, double click on the profile, and in
the profile properties, click 'Data Files' and add the desired
PST
files that you wish to scan.
- 5.
-
Also, you can click the 'E-mail Accounts' button, and remove the
faked account that you previously created.
- 6.
-
In the Mailbox Scan Options of
OutlookAttachView,
choose 'Allow me
to choose the profile' in the
Outlook
Profile option.
- 7.
-
When you are asked to choose the profile, you should choose the
profile that you created, and
OutlookAttachView
will scan the
PST
files that you added into it.
Create a Desktop Icon
The
OutlookAttachView
command can be installed to the windows™
'Desktop'.
To do so, invoke
OutlookAttachView -i
once.
OPTIONS
- -h
-
usage message.
- -i
-
install the
OutlookAttachView
command as
'Outlook Attach View'
to the Windows™
'Desktop'.
- -u
-
uninstall the
OutlookAttachView
shortcut from the Windows™
'Desktop'.
- -V
-
print program version.
- /stext <Filename>
-
Save the list of all
Outlook
attachments into a regular text file.
- /stab <Filename>
-
Save the list of all
Outlook
attachments into a tab-delimited text file.
- /scomma <Filename>
-
Save the list of all
Outlook
attachments into a comma-delimited text file.
- /stabular <Filename>
-
Save the list of all
Outlook
attachments into a tabular text file.
- /shtml <Filename>
-
Save the list of all
Outlook
attachments into HTML file (Horizontal).
- /sverhtml <Filename>
-
Save the list of all
Outlook
attachments into HTML file (Vertical).
- /sxml <Filename>
-
Save the list of all
Outlook
attachments to XML file.
- /SaveDirect
-
Save the
Outlook
attachments in SaveDirect mode. For using with the other
save command-line options
(/scomma, /stab, /sxml,
and so on...).
When you use the SaveDirect mode, the attachments list is saved directly
to the disk, without loading them into the memory first. This means that
you can save a list with large amount of attachment lines into your disk
without any memory problem, as long as you have enough disk space to
store the saved file.
The drawback of this mode: You cannot sort the
attachments according to the column you choose with
/sort
command-line
option.
- /sort <column>
-
This command-line option can be used with other save options for sorting
by the desired column. If you don't specify this option, the list is
sorted according to the last sort that you made from the user interface.
The
<column>
parameter can specify the column index (0 for the first
column, 1 for the second column, and so on) or the name of the column,
like "Filename" and "Subject". You can specify the '~' prefix character
(e.g: "~Subject") if you want to sort in descending order. You can put
multiple
/sort
in the command-line if you want to sort by multiple
columns.
Examples:
OutlookAttachView.exe /shtml "f:\temp\attach.html" ^
/sort 2 /sort ~1
OutlookAttachView.exe /shtml "f:\temp\attach.html" ^
/sort "From" /sort "To" /sort "Subject"
- /nosort
-
When you specify this command-line option, the list will be saved without
any sorting.
- /cfg <filename>
-
Starts
OutlookAttachView
with the specified configuration file instead of
the default
OutlookAttachView.cfg
- /start
-
Starts the mailbox scan immediately with the loaded configuration, without
displaying the Scan Options dialog-box.
- /extractall
-
Extracts all
Outlook
attachments from command-line, according to your
last settings saved in the default .cfg file, or according to other
configuration file that you load with
/cfg
command-line option.
- /extractdeleteall
-
Extracts all
Outlook
attachments from command-line like
/extractall
command and also deletes all extracted attachments from
Outlook.
Be
careful when using this command,
OutlookAttachView
cannot restore the
attachments in
Outlook
after deleting them.
- /LogFile <filename>
-
Generates a log file while extracting attachments, for example:
OutlookAttachView.exe /extractall ^
/LogFile "c:\temp\log1.txt"
- /LogFileAppend <filename>
-
Generates a log file while extracting attachments, for example:
OutlookAttachView.exe /extractall ^
/LogFileAppend "c:\temp\log1.txt"
If the file already exists, the new log lines are added to the existing
file.
- [...]
-
You can also use the following command-line options to change any
configuring value you wish:
/CopyFilesFolder <Folder Path String>
/NewNameIfExist <0 | 1>
/UpdateModifiedTimeMessage <0 | 1>
/FilenameFormat <Filename Format String>
/ScanOptions.TimeZone <1 | 2>
/ScanOptions.OutlookProfile <1 | 2 | 3>
/ScanOptions.UseExtensionsList <0 | 1>
/ScanOptions.ExtensionsList <Extensions To Include>
/ScanOptions.UseExcludeExtensionsList <0 | 1>
/ScanOptions.ExcludeExtensionsList <Extensions To Exclude>
/ScanOptions.UseSubjectContains <0 | 1>
/ScanOptions.SubjectContains <Subject String>
/ScanOptions.ScanOnlyFolders <0 | 1>
/ScanOptions.ScanFoldersList <Folders To Scan>
/ScanOptions.SkipFolders <0 | 1>
/ScanOptions.SkipFoldersList <Folders To Skip>
/ScanOptions.DateFrom <From Date>
/ScanOptions.DateTo <To Date>
/ScanOptions.UseDateRange <0 | 1>
/ScanOptions.OutlookProfileString <Profile Name>
/ScanOptions.UseFromList <0 | 1>
/ScanOptions.FromList <From Emails List>
/ScanOptions.UseToList <0 | 1>
/ScanOptions.ToList <To Emails List>
/ScanOptions.UseOnlyLastDays <0 | 1>
/ScanOptions.OnlyLastDays <Last num of days to scan>
For example, if you want to extract all attachments into
c:\myattach
instead of using the folder specified in the config file:
OutlookAttachView.exe /CopyFilesFolder "c:\myattach" ^
/extractall
ENVIRONMENT
- %WA2L_INSTALLDIR%
-
Installation directory of WA2L/WinTools. This variable can be used to specify
the save directory of attachments:
%WA2L_INSTALLDIR%\var\tmp\Outlook-Attachments
EXIT STATUS
- 0
-
no error.
- 4
-
usage message displayed.
- 5
-
program version printed.
- 6
-
program variant not known. This error occurs when the
OutlookAttachView
command is renamed.
FILES
- etc/OutlookAttachView.cfg
-
configuration file of
OutlookAttachView.
EXAMPLES
-
SEE ALSO
wintoolsintro(1),
config(1m),
https://www.nirsoft.net/utils/outlook_attachment.html
NOTES
OutlookAttachView
was developed by Nir Sofer <nirsofer@yahoo.com>.
See
(https://www.nirsoft.net/utils/outlook_attachment.html)
for more information.
Parts of this manual page are extracted from the web page:
https://www.nirsoft.net/utils/outlook_attachment.html.
BUGS
Be aware that
OutlookAttachView
doesn't work with
Outlook Express.
AUTHOR
OutlookAttachView was developed by Nir Sofer <nirsofer@yahoo.com>.
and integrated into WA2L/WinTools
by Christian Walther. Send suggestions
and bug reports regarding the integration to wa2l@users.sourceforge.net .
COPYRIGHT
Copyright © 2020
Christian Walther
This is free software; see
WA2LWinTools/man/COPYING
for copying conditions. There is ABSOLUTELY NO WARRANTY; not
even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This document was created by man2html
using the manual pages.
Time: 16:32:33 GMT, September 14, 2024