Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lann/gmail-autolabel


https://github.com/lann/gmail-autolabel

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

Automatically label messages in Google Mail based on +tags or catch-all domain addresses

Usage:

main.py [-h] [-v] [-y] [-p PASSWORD] [-m MAILBOX] [-M]
[-t | -d DOMAIN[,DOMAIN...]] [-i IGNORE[,IGNORE...]]
[-e LABEL_PREFIX] [-c {lower,upper,capitalize,none}]
account

positional arguments:
account Google mail account

optional arguments:
-h, --help show this help message and exit
-v, --verbose
-y, --dry-run Just print labels that would be applied
-p PASSWORD, --password PASSWORD
Account password (will prompt otherwise)
-m MAILBOX, --mailbox MAILBOX
Mailbox to label (defaults to Inbox)
-M, --move Move labeled messages out of mailbox
-t, --tags Label for address tags (plus-style) [default]
-d DOMAIN[,DOMAIN...], --domain DOMAIN[,DOMAIN...]
Label for "catch-all" domain addresses
-i IGNORE[,IGNORE...], --ignore IGNORE[,IGNORE...]
Comma-separated list of labels to ignore
-e LABEL_PREFIX, --label-prefix LABEL_PREFIX
Prefix to add to all labels
-c {lower,upper,capitalize,none}, --label-case {lower,upper,capitalize,none}
Transform label case (Default: lower)