Configuration file example
With the exception of any "/D##" command, the configuration file is read (unless END terminates reading before reaching the end of the file) and the configuration contents are applied before any action is taken. The first semicolon found which is not inside quotation marks is treated as the start of a comment. That line is truncated at the semicolon, then any trailing spaces in the line that remains are also trimmed. Any command line which starts with a semicolon is therefore ignored entirely. All of the commands shown below, except scripts, may be specified in any order, although it makes sense to keep logically similar commands together. Scripts are executed in the order which they occur, and, although they aren't required to occur in one block, it is less error-prone to keep them together.
; The syntax for specifying an IMAP server and port on which to connect:
; /Shostname[:port] specifies the IMAP server; port is optional but concise
; To specify the port explicitly (i.e., not use :port above), the syntax is:
; /Pport ; Example: /P993
; Example #1: when wanting to not use Transport Layer Security (TLS):
; /Simap.host.com:143 ; 143 - IMAP port that does not initially use TLS
; NoTLS
; Example #2:
; /Simap.aol.com:993 ; Connect to AOL using TLS
; Example #3 ; All of the lines above are comments; this one is not:
/Simap.gmail.com:993 ; This is a live example
; Syntax used to specify the email account credentials:
; /Ueddress@somewhere.com ; Email address (user name)
; /Ppassword ; Account password
; Either/both may be typed in after program starts if not specified here.
/Umyaddress@host.com ; Obviously, the IMAP server will not like these
/Pmypassword ; since they are not your eddress or password
; These commands create a script; they are saved in the order listed below
; and are executed in the same order:
/C=Select ; Command #1 for an auto-executing script
/C=F6 1:10 ; Send "FETCH 1:10 (Body[Header.Fields (Date From Subject)])"
/C=_H ; Show all HEAP buffers
/C=Sleep 10 ; Yield control to the O.S. for 10 seconds
/c=_H 3 ; "/c" is not case sensitive; each entire "/C" command shown
/c=F1 1:4 ; in these examples is not case sensitive
/C=Move All 1:3 ; Begin processing the move list, white list, and black list
/C=Logout ; If not specified, left at the ">" prompt, awaiting input
/Capture=SF12 ; Define Shift-F12 to toggle capture; see the note below
; /Capture=True ; Enable capture before even attempting to connect
; /CaptureTime ; Either of these can be added, but they will very likely
; /CaptureColor ; produce too much extra information
; Commands for doing email filtering and removal
; 'B=' specifies a Blacklist entry (case insensitive search):
B=F:Apple.Com ; "F:##" specifies a "From" field entry
B=F:ITunes.Com
B=F:ghostwrit ; Catch either "ghostwriter" or "ghostwritten"
B=Vuitton
B=medica ; Without the "F:", the subject field is selected
B=meds
B=enhanc ; Catch "enhance", "enhanced", or "enhancing"
B=refinance
B=timeshare
B=gucci
B=F:Hertz.Com
; 'W' specifies a White list entry (either on the subject or with the "F:"
; for the "from" field), which, when "White" is selected. They are checked
; after the move list and before either blacklist:
W=Payroll
W=F:Payroll
; 'M' sets a Move list entry (string in the "From:" field,destination folder)
M=Lewis@,Friends,Scott &- Mary
; Miscellaneous:
M=Adobe.Com,Miscellaneous/Adobe
; Online:
M=Amazon.Com,Online/Amazon
END
Anything on this line or after is not read due to the "END" command.
Capture function keys are defined using F1 though F12. A prefix can include an 'A' for "Alt-", a 'C' for "Ctrl-", or 'S' for "Shift-". To enable capture at startup, using /Capture=True, a toggle key must first be defined. This was done with the /Capture=F12 above, since there should be some way of disabling capture other than just exiting the program. Exiting the program closes the capture file.
A folder name in a move list entry can include a space or single quote, but not double-quotes. An ampersand (&) in a folder name must be represented as "&-", as shown in the first move list entry above. The header rows (comment rows with the category or folder name) aren't necessary; they just help in grouping and avoiding errors.