jadolg / webpymail

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

Fetched parts keys not normolized #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
As I've understood, IMAP could answer with upper or lower case. Some servers 
(e.g. imap.yandex.ru and mail.rambler.ru) returns response in lowercase. So, 
the body_fld_param keys (e.g. NAME for filename) could not be found, and we 
have unnamed attachments. 
I've tested folowing:
    self.body_fld_param[name.upper()] = value
in parsefetch.py:191 and it seems to work.

Original issue reported on code.google.com by akimov.alex on 27 Aug 2010 at 7:29

GoogleCodeExporter commented 9 years ago
Yap, that does the trick. However I suspect that this can bring us problems in 
the future, according to the RFC we have:

body-fld-param  = "(" string SP string *(SP string SP string) ")" / nil

So the strings can be, indeed, lower case. 

Anyway, I'll commit the change.

Original comment by hguerreiro@gmail.com on 28 Aug 2010 at 1:51

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r44.

Original comment by hguerreiro@gmail.com on 28 Aug 2010 at 1:52