OnWorks favicon

mboxgrep - Online in the Cloud

Run mboxgrep in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command mboxgrep that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



mboxgrep - displays email messages matching a pattern




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:

· mbox folder (either plain or compressed)

· MH folder

· Gnus nnmh or nnml folder

· qmail-style maildir folder


-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

-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'.


· Search $MAIL for messages from Dirty Harry:

mboxgrep '^From:.*callahan@homicide\.SFPD\.gov' $MAIL

· Display all messages contained in folder ~/Mail/incoming, except those that appear
to originate from AOL:

mboxgrep -v 'Received:.*aol\.com' ~/Mail/incoming

Use mboxgrep online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    OpenPDF - Fork of iText
    OpenPDF - Fork of iText
    OpenPDF is a Java library for creating
    and editing PDF files with a LGPL and
    MPL open source license. OpenPDF is the
    LGPL/MPL open source successor of iText,
    Download OpenPDF - Fork of iText
  • 2
    SAGA - System for Automated
    Geoscientific Analyses - is a Geographic
    Information System (GIS) software with
    immense capabilities for geodata
    processing and ana...
    Download SAGA GIS
  • 3
    Toolbox for Java/JTOpen
    Toolbox for Java/JTOpen
    The IBM Toolbox for Java / JTOpen is a
    library of Java classes supporting the
    client/server and internet programming
    models to a system running OS/400,
    i5/OS, o...
    Download Toolbox for Java/JTOpen
  • 4
    D3.js (or D3 for Data-Driven Documents)
    is a JavaScript library that allows you
    to produce dynamic, interactive data
    visualizations in web browsers. With D3
    Download D3.js
  • 5
    A fast tunnel proxy that helps you
    bypass firewalls This is an application
    that can also be fetched from
    It ha...
    Download Shadowsocks
  • 6
    GLPI Themes
    GLPI Themes
    Download release at
    Color themes for GLPI 0.84 and 0.85 New
    Modifications for GLPI This is an
    application that c...
    Download GLPI Themes
  • 7
    SMPlayer is a free media player for
    Windows and Linux with built-in codecs
    that can also play YouTube videos. One
    of the most interesting features of
    Download SMPlayer
  • More »

Linux commands