General-Purpose Mail Package
|Official GNU Software|
mailutils stat shows status of a mailbox. The
name or URL of the mailbox to operate upon is supplied in the first
argument. If not given, the command will display status of the
invoking user system mailbox.
$ mailutils stat type: maildir path: /var/mail/smith URL: /var/mail/smith size: 3498 messages: 24 recent messages: 3 first unseen: 20 uidvalidity: 1338543026 next uid: 87 access: 2016-12-15 09:15:08 +0200
The output format is controlled by the --format (-c) option. Its argument is the desired format string, composed of ordinary characters, which are reporduced on standard output verbatim, backslash sequences, and format specifiers, beginning with ‘%’.
Backslash sequences are interpreted as in C.
A format specifier consists of a leading ‘%’ followed by a letter. Optional ‘:’ may occur between ‘%’ and the letter. Its presense instructs the program to print the description of the corresponding value before the value itself.
The following format sequences are understood:
Name of the mailbox as supplied in the command line. If
mailutils stat was used without explicit mailbox argument,
‘%f’ is equivalent to ‘%U’.
Type of the mailbox (‘mbox’, ‘maildir’, etc.). The description string is ‘type’.
Path to the mailbox. In case of remote mailboxes, it is the path part of the mailbox URL. Description string: ‘path’.
URL of the mailbox. Description string: ‘URL’.
Size of the mailbox in octets. Description string: ‘size’.
Number of messages in the mailbox. Description string: ‘messages’.
Number of recent (unread) messages in the mailbox. Description string: ‘recent messages’.
Index of the first unseen message. Description string: ‘first unseen’.
The UIDVALIDITY value. Description string: ‘uidvalidity’.
The UID value which will be assigned to the new message to be incorporated into the mailbox. Description string: ‘next uid’.
Access time of the mailbox, as a number of seconds since the epoch.
Access time of the mailbox in human-readable format.
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.