jadolg / webpymail

Automatically exported from code.google.com/p/webpymail
GNU General Public License v3.0
0 stars 0 forks source link

hlimap MessageList.add_messages_range() FETCH data items list not full #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm not well well nown about IMAP4 request rules, but there is an Exceptions on 
some servers, fetching directory without UID data item in FETCH command options.
E.g. imap.yandex.ru returns FETCH list without UIDs.
For testing purposes you can use folowing settings:

host = imap.yandex.ru
port = 99
ssl = true

and login:passwod = webpymail:qweasdzxc

As I think, you can just add UID to FETCH data items list.

Original issue reported on code.google.com by akimov.alex on 22 Aug 2010 at 1:21

GoogleCodeExporter commented 9 years ago
Hi,

Thank you for your reports!

I wasn't able to reproduce the error, could you tell me what was the exception 
with the traceback? 

Please note that I wasn't able to login with the provided user/pass pair. The 
LOGIN command is unavailable on the server, and when I try to use the PLAIN 
mechanism to login it also fails...

However the server living in imap.yandex.ru doesn't advertise the UIDPLUS 
capability:

$ openssl s_client -crlf -connect imap.yandex.ru:993
[...SNIP...]
* OK Yandex IMAP4rev1 2.2.28 at imap28.mail.yandex.net:993 ready to talk with 
79.168.30.3:58104 2010-Aug-24 00:44:13
AA CAPABILITY
* CAPABILITY IMAP4rev1 CHILDREN UNSELECT LITERAL+ NAMESPACE XLIST BINARY 
AUTH=PLAIN

I was only issuing UID commands if we had the UIDPLUS extension on the server. 
When I wrote imapp it made perfect sense but, reading again the RFC it seems 
that all IMAP4rev1 servers should support the UID commands (with COPY, FETCH, 
STORE and SEARCH). I've changed the code to reflect that. Could you test it?

I'll keep this ticket open, waiting for more info.

Original comment by hguerreiro@gmail.com on 24 Aug 2010 at 12:07

GoogleCodeExporter commented 9 years ago
I've forgot to turn back on IMAP service.
You can experiment with it now (port = 993)

Original comment by akimov.alex on 26 Aug 2010 at 7:02

GoogleCodeExporter commented 9 years ago
I've just tested and got no exceptions. I think the problem resided in the 
UIDPLUS extension test (that should not have happened). Could you test it?

Original comment by hguerreiro@gmail.com on 26 Aug 2010 at 7:46

GoogleCodeExporter commented 9 years ago
Yep, now it's ok.

Original comment by akimov.alex on 26 Aug 2010 at 10:18

GoogleCodeExporter commented 9 years ago
Thanks!

Original comment by hguerreiro@gmail.com on 26 Aug 2010 at 10:41