p.add_option('-p', '--password', dest='password', action='store',
help='Password to login with')
p.add_option('-P', '--port', dest='port', action='store', type=int,
- default=None, help='IMAP port to use (default is 143)')
+ default=None,
+ help='IMAP port to use (default is 143, or 993 for SSL)')
p.add_option('-s', '--ssl', dest='ssl', action='store_true', default=False,
help='Use SSL connection')
p.add_option('-f', '--file', dest='file', action='store', default=None,
for opt_name in ('host', 'username', 'password'):
if not getattr(opts, opt_name):
setattr(opts, opt_name, getpass(opt_name + ': '))
- if not opts.port:
- opts.port = 143
# Options not supported on the command line
opts.oauth = False
opts.oauth2 = False