Hi. I wanted to suggest a slight change -- grabbing the password off the environment.
This avoids constantly having to type it into the commandline or writing a wrapper script...
+ import os
...
if not options.password and not options.process:
- options.password = getpass.getpass()
+ options.password = os.getenv('IMAPdedup_pass') or getpass.getpass()
so then you just invoke it as:
export IMAPdedup_pass=sekrit
./imapdedup.py -s foo -u bar -x "INBOX"
./imapdedup.py -s foo -u bar -x "INBOX.2"
./imapdedup.py -s foo -u bar -x "INBOX.3"
Hi. I wanted to suggest a slight change -- grabbing the password off the environment.
This avoids constantly having to type it into the commandline or writing a wrapper script...
so then you just invoke it as:
and you're not prompted for the password.