General-Purpose Mail Package
|Official GNU Software|
readmsg— Extract Messages from a Folder
readmsg utility extracts messages from a mailbox
according to the criteria specified in the command line. These
readmsg 1 3 0
extracts three messages from the folder: the first, the third, and the last.
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 is printed.
Unless one of the informational options is used, at least one command line argument must be present. Informational options are: --help (-?), --usage, and --version (-V).
If a pattern is use for selection show all messages that match pattern by default only the first one is presented.
Display mailbox debugging information.
Specified the default mailbox.
Show the entire header and ignore the weedlist.
Do not print the message header.
Put form-feed (Control-L) between messages instead of newline.
A whitespace or coma separated list of header names to show per message. Default is --weedlist="From Subject Date To CC Apparently-".
See also Common Options.
Following configuration statements affect the behavior of
If bool is ‘true’, display entire headers.
Set the weedlist. The str argument is a string, containing a list of header names, separated by whitespace, commands or colons. This corresponds to the --weedlist command line option (see –weedlist).
If bool is ‘true’, exclude all headers.
If bool is ‘true’, output formfeed character between messages.
Set the URL of the mailbox folder to read.
If bool is ‘true’, print all messages matching pattern, not only the first.
|debug||See Debug Statement.|
|tls||See TLS Statement.|
|mailbox||See Mailbox Statement.|
|locking||See Locking Statement.|
This document was generated on October 27, 2018 using makeinfo.Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.