On 06/23/2010 05:22 PM, Xianwen Chen wrote:
I need to send one line of commands to an IMAP server. The commands
are not standard IMAP protocols, hence it's not specified in
http://docs.python.org/library/imaplib.html.

Sounds like you want to use the imaplib's IMAP4.xatom() to send a custom command to your IMAP server:

http://docs.python.org/library/imaplib.html#imaplib.IMAP4.xatom

Given that you don't detail what you want to send or expect back, it's a little hard to give you more than that, but at least that should get you started. However, the full source to imaplib is in your $PYTHONLIB directory so you can see how other commands are implemented and responses are interpreted.

-tkc







--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to