MBOXGREP(1)
π NAME π
okay bestie, welcome to mboxgrep(1) β the manual page for mboxgrep, and the whole vibe is that it displays email messages matching a pattern. That's the name and the mission, and she ate. π
π¬ SYNOPSIS π¬
mboxgrep [OPTIONS] PATTERN [MAILBOX]
π¦ DESCRIPTION π¦
okay so this manual page refers to mboxgrep version 0.7.13. Noted, bestie. π
mboxgrep scans a MAILBOX and displays messages matching PATTERN. Simple, iconic.
If a mailbox name is omitted, 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:
- mbox folder (either plain or compressed)
- MH folder
- Gnus nnmh or nnml folder
- 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βPATTERNis an extended regular expression. This is default. β-G,--basic-regexpβPATTERNis a basic regular expression. π±-P,--perl-regexpβPATTERNis a Perl regular expression. Works only if enabled at compile time. πͺ-e,--regexp=PATTERNβ usePATTERNas a regular expression. π-i,--ignore-caseβ ignore case distinctions. π-v,--invert-matchβ select messages which don't matchPATTERN. π-H,--headersβ matchPATTERNagainst message headers. π-B,--bodyβ matchPATTERNagainst message body. π-l,--file-lock=METHODβ select file lockingMETHOD.METHODisfcntl,flock, ornone. π-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=MAILBOXβ suppress normal output and write messages to destinationMAILBOXinstead. π€-p,--pipe=COMMANDβ Pipe each found message toCOMMAND. π-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 mailboxTYPE.TYPEcan be eithermbox(default),zmbox(gzip compressed mbox),bz2mbox(bzip2 compressed mbox),mh,nnml,nnmhormaildir. π¦-s,--no-messagesβ suppress most error messages. π€«--debugβ print messages useful for debugging. π οΈ
bestie, the -d flag is giving main-character chaos energy: it deletes selected messages. Use with caution, fr fr. π
πΈ EXAMPLES πΈ
- Search
$MAILfor messages from Dirty Harry:
mboxgrep '^From:.*callahan@sanfranciscopolice\.org' $MAIL
- Re-mail to George messages that mention his name:
mboxgrep --pipe="/usr/lib/sendmail george" --ignore-case george ~/Mail/*
- Display all messages contained in folder
~/Mail/incoming, except those that appear to originate from AOL:
mboxgrep -v 'Received:.*aol\.com' ~/Mail/incoming
- Do a case-insensitive scan of
~/Mail/incomingfor messages with subject ``Weekly News'' and write them to folder~/Mail/archive:
mboxgrep -o ~/Mail/archive -H -i '^Subject: Weekly News' ~/Mail/incoming
- Count all messages stored in folder spam, ignoring duplicates:
mboxgrep -nd -c . spam
π BUGS π
Report them to the address below. no cap. π«Ά
π SEE ALSO π
π 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. ποΈ
π‘ HOMEPAGE π‘
π§ GIT π§
https://git.datatipp.se/dspiljar/mboxgrep
https://github.com/dspiljar/mboxgrep
π AUTHOR π
Daniel Spiljar <dspiljar@datatipp.se>
that's the whole page, bestie β from the General Commands Manual, for MBOXGREP(1), dated 23 September 2024. π«Άβ¨
π¦ where this page comes from
- opensuse-leap 16.0: mboxgrep 0.7.13-bp160.1.6 Β· GPL-2.0-or-later
- opensuse-leap 16.0: mboxgrep 0.7.13-bp160.1.6 Β· GPL-2.0-or-later
- opensuse-leap 16.0: mboxgrep 0.7.13-bp160.1.6 Β· GPL-2.0-or-later
- opensuse-leap 16.0: mboxgrep 0.7.13-bp160.1.6 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms