GNU Mailutils |
|
General-Purpose Mail Package |
Official GNU Software |
Change to the specified directory. If dir is omitted, $HOME
is
assumed.
When used without argument, prints the information about the current mailbox: the mailbox file name (or URL), total number of messages and the number of unread messages, e.g.:
? fold "/var/spool/mail/gray": 23 messages 22 unread |
Otherwise, closes the current mailbox and opens the mailbox named by the mailbox argument. When closing the current mailbox, its messages are processed according to their state (see mail message states).
The mailbox argument can be the name of the existing file, a mailbox URL (see Mailbox), or any of the following shortcuts:
The system mailbox for the invoking user.
The system mailbox for user.
The previous file.
The user’s personal mailbox.
Secondary mailbox, given using the -f command line option.
The named file in the folder directory. See folder variable.
This document was generated on January 2, 2022 using makeinfo.
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.