The script checks for a file named 'accounts.csv' (or a file that is provided using the -f flag) and deletes emails from the specified folders. Each row of the CSV should have the following info (in this order):
host, email, password, folder, port, connection type
Example:
imap.gmail.com, email@gmail.com, password1, [Gmail]/Trash, 993, imap
--help, -h Show help info
--list, -l [filename] List available folders and exit. Takes in file location.
--file, -f [filename] Path to CSV file with accounts list. If not provided, will default to 'accounts'csv.
--before, -b [date] delete emails sent before provided date. Format: 01-JAN-2016