lsmail - list a mailbox


lsmail [--entities][--header][--nheader][--size] [--threads][--verbose][--help] mailboxes


List the contents of one or more mailboxes. Specifying more than one name is only useful when you read in threads, in which case the messages of both folders are merged.


--entities => BOOLEAN

(or -e) show the number of MIME-entities in messages. When --threads is also given, the number is appended to the subject. Slows down lsmail significantly since a mail message must be fully parsed to get the entities information.

--size => BOOLEAN

(or -s) also show size of message in non-threaded output.


only display mails whose HEADER-FIELD (for instance 'subject' or 'from') contains PATTERN.


do not display mails whose HEADER-FIELD contains PATTERN.

--threads => BOOLEAN

(or -t or -nothreads or -not) list the messages in threads. The threads are sorted by time: the thread with the oldest starting message comes first.

--help => BOOLEAN

(or --help or -?) Print a brief help

--verbose => BOOLEAN

(or --verbose or --noverbose) Be verbose about the progress of the program. This is especially useful for debugging purposes.


Mark Overmeer ( All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Additions by Tassilo v. Parseval (


This code is beta, version 2.019