MGREP(1)

NAME
mgrep - print lines that match patterns in mime-encoded files

SYNOPSIS
mgrep [-Q|-X] [GREP_OPTION...] PATTERN [FILE...]
mgrep [-Q|-X] [GREP_OPTION...] -e PATTERNS ... [FILE...]
mgrep [-Q|-X] [GREP_OPTION...] -f PATTERN_FILE ... [FILE...]

DESCRIPTION
Mgrep ican be used to invoke the grep command on the decoded content of BASE64 or quoted-printable mime-encoded files. Beside the options -Q and -X all options specified are passed directly to grep. If no file is specified, then the standard input is mime-decoded and fed to grep. Otherwise the given files are mime-decoded and fed to grep.

As experimental feature: if the input files is in mbox format mgrep may detect the boundaries used for the mime encoded messages as well as attachments and fed the decoded content of those (but not the header) to grep.

OPTIONS

-h , --help
    Displays this help (as well as the help of original grep) and exit.

-Q , --quoted-printable
    Assume quoted-printable encoding.

-X , --base64
    Assume base64 encoding (default).

SEE ALSO
grep(1)

STANDARDS

  RFC 2045
Multipurpose Internet Mail Extensions, (MIME) Part One: Format of Internet Message Bodies

  RFC 4155
The application/mbox Media Type

LICENSES
GNU GPL v2
MIT -- mainly the MIME decoding part.

AUTHOR
Werner Fink <werner@suse.de>