Node:readmsg, Next:, Previous:messages, Up:Programs



readmsg -- Extract messages from a folder.

The program, readmsg, extracts with the selection argument messages from a mailbox. Selection can be specify by:

  1. A lone "*" means select all messages in the mailbox.
  2. A list of message numbers may be specified. Values of "0" and "$" in the list both mean the last message in the mailbox. For example:
         readmsg 1 3 0
    
    extracts three messages from the folder: the first, the third, and the last.
  3. Finally, the selection may be some text to match. This will select a mail message which exactly matches the specified text. For example,
         readmsg staff meeting
    
    extracts the message which contains the words "staff meeting." Note that it will not match a message containing "Staff Meeting" - the matching is case sensitive. Normally only the first message which matches the pattern will be printed.

Command line options


-a
--show-all
If a pattern is use for selection show all messages that match pattern by default only the first one is presented.
-d
--debug
Display mailbox debugging information.
-f MAILBOX
--folder=MAILBOX
Specified the default mailbox.
-h
--header
Show the entire header and ignore the weedlist.
-n
--no-header
Do not print the message header.
-p
--form-feed
Put form-feed (Control-L) between messages instead of newline.
-w weedlist
--weedlist=weedlist
A whitespace or coma separated list of header names to show per message. Default is -weedlist="From Subject Date To CC Apparently-"