[Twisted-Python] Trouble with example imap client on unread messages
Andy Gayton
andy at thecablelounge.com
Fri Jul 8 00:46:03 MDT 2005
I'm having trouble running Twisted/doc/mail/examples/imap4client.py on
imap folders which have unread messages. When the client issues:
proto.fetchSpecific('1:*',
headerType='HEADER.FIELDS',
headerArgs=['SUBJECT']
)
My server is returning:
* 243 FETCH (BODY[HEADER.FIELDS ("SUBJECT")] {47}
Subject: DELIVERY REPORTS ABOUT YOUR E-MAIL
)
* 244 FETCH (BODY[HEADER.FIELDS ("SUBJECT")] {42}
Subject: AW: [syslinux] bug(?) in 2.11
)
* 244 FETCH (FLAGS (\Seen))
243 is a previously read message, 244 is an unread message.
The callback for the above fetchSpecific call is receiving:
{ 243 : [['BODY', ['HEADER.FIELDS', ['SUBJECT']], 'Subject: DELIVERY
REPORTS ABOUT YOUR E-MAIL\r\n\r\n']], 244 : [['FLAGS', ['\\Seen']]] }
ie, I'm not getting the subject for unread messages.
Just wondering if this is a problem at twisted's end (is it incorrectly
reducing the server response for 244 to [['FLAGS', ['\\Seen']]]?), my
imap server (is it incorrect that my server is including the extra * 244
FETCH (FLAGS (\Seen)) line ? I'm using BincIMAP v1.2.12) or me :) (am I
running something wrong here?)
cheers,
Andy.
More information about the Twisted-Python
mailing list