[issue23647] imaplib.py MAXLINE value is too low for gmail

2015-03-24 Thread Arnt Gulbrandsen
Arnt Gulbrandsen added the comment: Length limits has actually been discussed and rejected; noone had a proposal that solved more problems than it introduced. -- ___ Python tracker <http://bugs.python.org/issue23

[issue23647] imaplib.py MAXLINE value is too low for gmail

2015-03-23 Thread Arnt Gulbrandsen
Arnt Gulbrandsen added the comment: You're entirely right. I should've reread 2683 too (a decade has passed since I read that). The danger with accepting the unlimited line length is that batch scripts might accept an infinitely large batch. Which is a matter of python culture, real

[issue23647] imaplib.py MAXLINE value is too low for gmail

2015-03-12 Thread Arnt Gulbrandsen
Arnt Gulbrandsen added the comment: The RFC in question is 2683, which isn't a standard, it's just advice. What gmail breaks is the expectation that mailboxes and seach results are smallish. If you run a python script on gmail and it runs a search, the result can be a great deal b

[issue23647] imaplib.py MAXLINE value is too low for 2015 (patch attached)

2015-03-12 Thread Arnt Gulbrandsen
New submission from Arnt Gulbrandsen: http://stackoverflow.com/q/28923997 and various other SO questions point out that imaplib's _MAXLINE value is a bit behind the times. Fine for 1997, when people had 10MB mailbox quotas, not so fine for the age of gmail. I'm tired of seeing those