Thanks ya.It helped me a lot
--
http://mail.python.org/mailman/listinfo/python-list
[Raghul]
>>> Is it posssible to read only the new messages or unread
>>> messages using imaplib in python? If it is possible pls
>>> specify the module or give a sample code.
[Tony Meyer]
>> This will print out the first 20 chars of each undeleted message.
>> You should be able to figure out how
Raghul said the following on 2/22/2005 11:24 PM:
Is it posssible to read only the new messages or unread messages using
imaplib in python? If it is possible pls specify the module or give a
sample code.
Thanks in advance
import imaplib, sys
conn = imaplib.IMAP4_SSL(host='mail.example.com')
# or co
eceived: from web50
Received: by twmail.
Received: from mail.
Received: from mail.
Received: by twmail.
Received: from adams
Received: by twmail.
Received: by twmail.
Received: by twmail.
Received: from ns2.T
Received: by twmail.
Received: by twmail.
Received: from chat3
Received: by twmail.
Receiv
> Is it posssible to read only the new messages or unread
> messages using imaplib in python? If it is possible pls
> specify the module or give a sample code.
This will print out the first 20 chars of each undeleted message. You
should be able to figure out how to do what you want from it.
>>