Unsubscribe from mailing lists and clean inbox
Within the python file, you will need to edit the following to correspond to your email/password/folder:
FOLDER='' # mail folder to look at
LOGIN='' # email address
PASSWORD='' # password
As well as your IMAP/SMTP host:
server = smtplib.SMTP('smtp.gmail.com', 587)
mail = imaplib.IMAP4_SSL('imap.gmail.com')
Note: Default is set up for Gmail
Within the terminal, go into the corresponding directory and use the following command:
$ python mlc.py
-list name to get a list of all mailing lists names
-list address to get a list of all mailing lists addresses
-unsub all [del] to unsubscribe from all / add 'del' to delete emails as well
-unsub # [del] list multiple with commas Ex. -unsub 4, 3, 20 / add 'del' to delete emails as well
-options get list of options
-exit to exit program and logout
Want to contribute? Great!
Current TODOs are:
- testing
- optimize mailing list retrievals
MIT License