Mboxgrep

Jul 20, 2023

Utility to scan mailboxes for messages matching a regular expression

mboxgrep is a small utility that scans a mailbox for messages matching a regular expression. Found messages can be either displayed on standard output, counted, deleted, piped to a shell command or written to another mailbox.

Its features include

  • ability to limit the search to message body or headers although the whole message is scanned by default
  • message counting
  • ability to invert the sense of matching
  • ability to write found messages to another mailbox
  • support for mbox either plain or compressed, MH, nnmh, nnml and maildir folders
  • support for basic and extended POSIX regular expressions, and, optionally, Perl-complatible regular expressions if linked with the PCRE library


Checkout these related ports:
  • Xpbiff -
  • Xmailwatcher - Mailbox checker which displays sender and subject lines of mails
  • Xmailbox - Mailbox checker with sound and animation for X Window System
  • Xmail - X-based interface to the Berkeley mail program
  • Xfce4-mailwatch-plugin - Mail notification applet for the Xfce panel
  • Xfaces - Display shaped icons for mail spool contents
  • Xcite - Exciting Cite for any Mail/News reading modes on Emacs
  • Xbuffy - Replacement for xbiff that handles multiple mail files
  • X-face-e21 - X-Face utilities for Emacs
  • Wmmaiload - Incoming mail monitor dockapp with a similar look to wmcpuload
  • Wmbiff -
  • Whoson - Implementation of `WHO iS ONline' protocol
  • Websieve - Web based Cyrus IMAP user admin client
  • Wanderlust - Mail and news system for Emacs
  • Vrfy - Verify mail address