Discover Packages
github.com/cosnicolaou/go
cmd
mbox-regexp
command
Version:
v0.0.0-...-08b171f
Opens a new window with list of versions in this module.
Published: Nov 9, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
mbox-regexp
Command mbox-regexp runs a regexp (using go's regexp.Expand call) with selective expansion
against an mboxrd format mailbox file, such as those produced by gmail exports.exports
The invocation below will print out all of the URL's in the email messages.
./mbox-regexp --pattern='(?U)<https://(?P<url>.*)>' --template='$url' Takeout/your-mbox-file
mbox-regexp correctly handles multi-part mime format emails and applies the regexp against
parts that are in quotedprintable encoding.
Expand ▾
Collapse ▴
Documentation
¶
Command mbox-egrep applies a regular expression and template (as
per go's regexp.Expand method) to each of the messages in the specified
mbox file.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.