File splitmail.icn |
SplitMail -- split messages from system mailbox by matching substrings in Subject: and/or From: lines. Can handle arbitrary sized system mailboxes.
Options:
Exactly one of --name or --file is required. When --file is used, the default names for the output files start with basename of the named file.
You must have at least one instance of --subject or --from. When the option uses --subject= or --from= then the match is case sensitive. Replacing = with ~ as in --subject~happy results in a case insensitive match.
FILENAME may be /dev/null to suppress output, and defaults to USER.with for --withfile and USER.without for --withoutfile.
This file is part of the (main) package.
Source code.Details |
Procedures: |
Produce the filename at the end of a Unix pathname.
Read a single mail message from a mail file.
Display the usage information to standard error.
Read a user's system mailbox and split messages into two separate files based on substrings found in From: and Subject: lines.
Produce the 'from' information from a From: line. Used in verbose mode.
Generate the mail messages from the users system mailbox. Produces each mail messages in internal form.
routeMessage(message, file1, file2)
Given a single mail message, routes it to the appropriate output file based on the selection criteria.
Show a summary of a mail message's header. Used in verbose mode.
Display a list of values on one line, preceded by some prefix. Used in verbose mode.
String scanning procedure that generates the next word
Records: |
message(from, subject, date, text)
Internal form for mail message
Global variables: |