imap-cli icon indicating copy to clipboard operation
imap-cli copied to clipboard

A few issues

Open jrvarma opened this issue 6 years ago • 0 comments

I am quite excited about imap_cli and would like to use it a lot. However, I have encountered a few issues:

  • In Python 3, imaplib expects bytes for authenticate while configparser returns string objects. So I am unable to use XOAUTH2 tokens read from the config file. Currently, I connect using my own code and then pass the connected imap_account to ImapShell. Most of the commands then work.

  • In Python 3, the data returned by imap_account.status needs to be decoded before invoking STATUS_RE.match. A similar decoding is done in the imap_cli.list_dir function but not in imap_cli.status.

  • I am unable to select a mailbox folder whose name contains a space. In my own code, imap_account.select('"[Gmail]/Sent Mail"') works fine because the double quote inside the single quote ensures that the entire name is treated as a single word. I am unable to figure out how to do this in imap_shell. I am not clear whether the argument parsing is done by docopt or by cmd or somewhere else. Perhaps, something like shlex might be needed to make this work.

  • I would like imap_shell to include a list_dirs feature.

jrvarma avatar Jan 26 '20 16:01 jrvarma