Add option to use imap constructor imaplib.IMAP_stream(), to let users do alternative IMAP authentications, such as via ssh tunnel.
E.g.: let there be option '-t' '--imap-tunnel='
which will be passed directly as argument of IMAP_stream(). Also don't forget to NOT call imap_srv.login() (and do not require password!).
Ha, that's a cool feature request. I'm just learning that IMAP actually can be tunnelled and how. :-) Okay, this isn't high priority, but it looks interesting and I guess it's quite easy to do, so I'll probably implement it when I need some relaxing from my current, unfortunately less rewarding tasks. :-)
any news on this feature request? I was about reporting an identical one :)