GNU Mailutils Manual (split by node):   Section:   Chapter:FastBack: Programs   Up: Reading Mail   FastForward: Libraries   Contents: Table of ContentsIndex: Function Index

3.5.5.10 Saving Messages

save [[msglist] file]
s [[msglist] file]

Takes a message list and a file name or mailbox URL and appends each message in turn to the end of that file or mailbox. Mailbox URLs begin with mailbox type specifier, such as ‘mbox://’, ‘maildir://’, etc. The name of file or mailbox and number of lines and characters appended to it is echoed on the terminal. When writing to file, the numbers represent exact number of lines and characters appended to the file. When file specifies a mailbox, these numbers may differ by the amount of lines/characters needed to represent message envelope for that specific mailbox type.

Each saved message is marked for deletion as if with delete command, unless the variable keepsave is set.

Save [msglist]
S [msglist]

Like save, but the file to append messages to is named after the sender of the first message in msglist. For example:

& from 14 15
 U  14 smith@noldor.org Fri Jun 30 18:11  14/358   The Save c
 U  15 gray@noldor.org  Fri Jun 30 18:30  8/245    Re: The Sa
& Save 14 15
"smith" 22/603

i.e., 22 lines (603 characters) have been appended to the file “smith”. If the file does not exist, it is created.

write [[msglist] file]
w [[msglist] file]

Similar to save, except that only message body (without the header) is saved.

Write [msglist]
W [msglist]

Similar to Save, except that only message body (without the header) is saved.

mbox [msglist]
mb [msglist]
touch [msglist]
tou [msglist]

Mark list of messages to be saved in the user’s mailbox ($HOME/mbox) upon exiting via quit command. This is the default action for all read messages, unless you have variable hold set.

copy [[msglist] file]
c [[msglist] file]

Similar to save, except that saved messages are not marked for deletion.

Copy [msglist]
C [msglist]

Similar to Save, except that saved messages are not marked for deletion.

GNU Mailutils Manual (split by node):   Section:   Chapter:FastBack: Programs   Up: Reading Mail   FastForward: Libraries   Contents: Table of ContentsIndex: Function Index