Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mboxgrep(1) [debian man page]

MBOXGREP(1)						      General Commands Manual						       MBOXGREP(1)

NAME
mboxgrep - displays email messages matching a pattern SYNOPSIS
mboxgrep [OPTIONS] PATTERN [MAILBOX] DESCRIPTION
This manual page refers to mboxgrep version 0.7.9. mboxgrep scans a MAILBOX and displays messages matching PATTERN. If a mailbox name is ommited, or a single dash (-) is given instead, it reads from standard input. It can read mbox folders or output from another mboxgrep process from standard input. mboxgrep understands POSIX regular expressions, as well as Perl compatible regular expressions (if enabled at compile time). MAILBOX can be either a: o mbox folder (either plain or compressed) o MH folder o Gnus nnmh or nnml folder o qmail-style maildir folder OPTIONS
-h, --help Display a help screen and exit. -V, --version Display version and copyright information and exit. -r, --recursive Descend into directories recursively. -E, --extended-regexp PATTERN is an extended regular expression. This is default. -G, --basic-regexp PATTERN is a basic regular expression. -P, --perl-regexp PATTERN is a Perl regular expression. Works only if enabled at compile time. -e, --regexp=PATTERN Use PATTERN as a regular expression. -i, --ignore-case Ignore case distinctions. -v, --invert-match Select messages which don't match PATTERN. -H, --headers Match PATTERN against message headers. -B, --body Match PATTERN against message body. -l, --file-lock=METHOD Select file locking METHOD. METHOD is `fcntl', `flock', or `none'. -nl, --no-file-lock Do not lock files. This option is meaningful only if a mbox folder (see below) is scanned. -c, --count Suppress normal output and print a count of matching messages. -o, --output=FOLDER Suppress normal output and write messages to destination folder FOLDER instead. -p, --pipe=COMMAND Pipe each found message to COMMAND -d, --delete Suppress normal output and delete selected messages instead. Use with caution. -nd, --no-duplicates Ignore duplicate messages. -m, --mailbox-format=TYPE Select input and output mailbox TYPE. TYPE can be either `mbox' (default), `zmbox' (meaning `gzip compressed mbox'), `bz2mbox' (meaning `bzip2 compressed mbox'), `mh', `nnml', `nnmh' or `maildir'. EXAMPLES
o Search $MAIL for messages from Dirty Harry: mboxgrep '^From:.*callahan@homicide.SFPD.gov' $MAIL o Display all messages contained in folder ~/Mail/incoming, except those that appear to originate from AOL: mboxgrep -v 'Received:.*aol.com' ~/Mail/incoming BUGS
Report them to address below. NOTICE
Mboxgrep was alomost completely rewritten since version 0.5.3. Additionally, there was no stable 0.6.x branch between 0.5.3 and 0.7.0. SEE ALSO
grep(1), regex(7), perlre(1), mbox(5), RFC 2822 DEDICATION
Mboxgrep is dedicated in loving memory of Vicky, my cat who died of tumor on Sep 12, 2002. You haven't been long with us, but you gave us a lot of joy and all your big heart that stopped ticking too early. I will never forget you. Sleep well, little friend. URL
http://www.mboxgrep.org/ AUTHOR
Daniel Spiljar <dspiljar@world.std.com> 24 Aug 2003 MBOXGREP(1)

Check Out this Related Man Page

INCM(1) 						      General Commands Manual							   INCM(1)

NAME
incm - Incorporating new mails for Mew SYNOPSIS
incm [options] DESCRIPTION
The incm utility incorporates new mails from the mbox or the maildir to Mew's inbox folder. The options are as follows: -a Retrieve all mails from maildir/{cur,new} for maildir. -b Backup mails. mbox: No truncate mbox file. maildir: To maildir/cur directory. -c Use the Content-Length: field, instead of the "From " line, as a mail separator for mbox. -d path Path to mbox/maildir. If path is a file, mbox is assumed. If path is a directory, maildir is assumed. -m path The same as the -d option. -s Read one mail from stdin instead of mbox/maildir. -i inboxdir A path to the inbox directory. -u Don't touch ".mew-mtime". -f Preserve Unix From (Envelope Sender) line in mbox case. -p mode Specify file mode that creates in mbox case. -o Use the suffix when creating messages. -x suffix Use this suffix. -h Display this help message. -v Display the version. mbox For mbox, the mail separator is "From " in the beginning of lines. The incm utility does not convert ">From " to "From " in the beginning of lines in the body. On Solaris, Content-Length: should be used with the -c option to tell the end of mail. To lock mbox, a lock file("<user>.lock"), flock() or lockf(), and open(O_EXLOCK) are used. maildir For maildir, no lock and no separator are necessary. Consider the following situation: cur/{1,2} new/{3,4} Executing incm without the options results in: cur/{1,2} new/{} to inbox: {3,4} Executing incm with the -a option results in: cur/{} new/{} to inbox: {1,2,3,4} Executing incm with the -b option results in: cur/{1,2,3,4} new/{} to inbox: {3,4} Executing incm with the -a option and the -b option results in: cur/{1,2,3,4} new/{} to inbox: {1,2,3,4} So, if both options are specified, messages are retrieved multiple times. December 25, 2001 INCM(1)
Man Page