can I use more than one status condition name in imaplib.status()

harryos oswald.harry at gmail.com
Wed Oct 13 09:37:30 EDT 2010


Hi

In the signature of  of imaplib.status() method
MAP4.status(mailbox, names)
why is the 'names ' argument plural?Can I pass more than one name to
the method?
I can get correct  result when I call,
imapclient.status('Inbox', "(UNSEEN)")
or
imapclient.status('Inbox', "(RECENT)")

Is it possible to pass both these names ?
I tried,
imapclient.status('Inbox', "(UNSEEN,RECENT)")
which thows imaplib.error: STATUS command error: BAD ['Invalid
Command']

Any suggestions most welcome
harry



More information about the Python-list mailing list