Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pascaldekloe/mboxed
mailbox tools
https://github.com/pascaldekloe/mboxed
Last synced: about 1 month ago
JSON representation
mailbox tools
- Host: GitHub
- URL: https://github.com/pascaldekloe/mboxed
- Owner: pascaldekloe
- License: cc0-1.0
- Created: 2022-07-02T13:55:01.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-07-03T14:50:16.000Z (over 2 years ago)
- Last Synced: 2024-06-21T13:04:56.401Z (5 months ago)
- Language: Go
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mboxed
… library plus tools for mbox files, written in the Go programming
language.This is free and unencumbered software released into the
[public domain](https://creativecommons.org/publicdomain/zero/1.0).## mboxmux
The mboxmux(1) tool can split mailboxes based on header values. Run
`go install github.com/pascaldekloe/mboxed/cmd/mboxmux@latest` for
a local build.```
Usage of mboxmux:
-d directory
Set the directory for output files. (default ".")
-default file-name
Sets a default output file-name for messages that would have been omitted otherwise, which are no name, . and .. specifically.
-escape replacement
Sets the replacement for '/' occurences in output files. (default "_")
-header name
Define the header (name) used for file distribution.
-tokentrim pattern
Add a pattern for token omission on the output files. The first character in the pattern defines the token separator, and the remainder sets the token to be excluded. E.g., -tokentrim ,Opened omits any Opened occurences in a comma-separated list, i.e., Inbox,Opened,Important would become Inbox,Important. Multiple tokentrim arguments are applied in conjuntion.
```The following command splits a “takeout” from GMail into separate
mailboxes.mboxmux -d mailboxes -header X-Gmail-Labels -default Misc \
-tokentrim ',Opened' -tokentrim ',Unread' \
-tokentrim ',Archived' \
-tokentrim ',Category Personal' \
-tokentrim ',Category Promotions' \
-tokentrim ',Category Purchases' \
-tokentrim ',Category Social' \
-tokentrim ',Category Travel' \
-tokentrim ',Category Updates' \
-tokentrim ',IMAP_Forwarded' -tokentrim ',IMAP_$Forwarded' \
-tokentrim ',IMAP_Redirected' \
-tokentrim ',IMAP_NotJunk' -tokentrim ',IMAP_$NotJunk' \
-tokentrim ',IMAP_Junk' -tokentrim ',IMAP_$Junk' \
-tokentrim ',IMAP_JunkRecorded' \
-tokentrim ',IMAP_$MailFlagBit0' \
-tokentrim ',IMAP_$MailFlagBit1' \
-tokentrim ',IMAP_$MailFlagBit2' \
bu1.mbox bu2.mbox bu3.mbox