A few issues
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,
imaplibexpects bytes forauthenticatewhileconfigparserreturns string objects. So I am unable to useXOAUTH2tokens read from the config file. Currently, I connect using my own code and then pass the connectedimap_accounttoImapShell. Most of the commands then work. -
In Python 3, the
datareturned byimap_account.statusneeds to be decoded before invokingSTATUS_RE.match. A similar decoding is done in theimap_cli.list_dirfunction but not inimap_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 inimap_shell. I am not clear whether the argument parsing is done bydocoptor bycmdor somewhere else. Perhaps, something likeshlexmight be needed to make this work. -
I would like
imap_shellto include alist_dirsfeature.