Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/edigiacomo/splitmailbox
Simple tool to split your mailbox
https://github.com/edigiacomo/splitmailbox
mail mailboxes maildir-format mbox-format python3
Last synced: 29 days ago
JSON representation
Simple tool to split your mailbox
- Host: GitHub
- URL: https://github.com/edigiacomo/splitmailbox
- Owner: edigiacomo
- License: gpl-2.0
- Created: 2015-07-09T08:39:02.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-11-01T09:08:40.000Z (about 5 years ago)
- Last Synced: 2024-06-13T18:09:39.380Z (5 months ago)
- Topics: mail, mailboxes, maildir-format, mbox-format, python3
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# splitmailbox
Simple tool to split your mailbox or maildir.
You can customize the directory, prefix, name and suffix of the output
mailboxes using the headers of the messages stored in your mailbox. Prefix,
name and suffix are expanded by `str.format` function.## Path of output mailboxes
Prefix, name and suffix are expanded by `str.format` function. The keyword
arguments of the function are the header of the mail (see Python class
`email.message.Message`), with some extensions:- `Date` header is a `datetime.datetime` object
## Examples
### Split messages by year
splitmailbox --suffix '_{Date:%Y}' mail/mboxWill create the mailboxes `mail/mbox_2000`, `mail/mbox_2001`, ...
## Limitations
- Directory are not created at runtime (e.g. `--prefix '{Date:%Y}/{Date:%m}'`)