0.1, 2019-07-02
mgrep [-Q|-X] [ GREP_OPTION ...] PATTERN [ FILE ...]
mgrep [-Q|-X] [ GREP_OPTION ...] -e PATTERNS ... [ FILE ...]
mgrep [-Q|-X] [ GREP_OPTION ...] -f PATTERN_FILE ... [ FILE ...]
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.
- -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).
grep(1)
Multipurpose Internet Mail Extensions, (MIME) Part One: Format of Internet Message Bodies
The application/mbox Media Type
GNU GPL v2
MIT
-- mainly the
MIME
decoding part.