Added code to limit command line length for very large mailboxes

Keywords: 


(jgoerzen@complete.org--projects/offlineimap--head--1.0--patch-4)
This commit is contained in:
John Goerzen 2004-11-16 23:41:09 +01:00
parent beb1c689f2
commit 8137e53c14
2 changed files with 18 additions and 0 deletions

View File

@ -2,6 +2,18 @@
# arch-tag: automatic-ChangeLog--jgoerzen@complete.org--projects/offlineimap--head--1.0 # arch-tag: automatic-ChangeLog--jgoerzen@complete.org--projects/offlineimap--head--1.0
# #
2004-11-16 16:41:09 GMT John Goerzen <jgoerzen@complete.org> patch-4
Summary:
Added code to limit command line length for very large mailboxes
Revision:
offlineimap--head--1.0--patch-4
modified files:
ChangeLog offlineimap/folder/IMAP.py
2004-10-18 14:01:50 GMT John Goerzen <jgoerzen@complete.org> patch-3 2004-10-18 14:01:50 GMT John Goerzen <jgoerzen@complete.org> patch-3
Summary: Summary:

View File

@ -282,6 +282,12 @@ class IMAPFolder(BaseFolder):
self.processmessagesflags('-', uidlist, flags) self.processmessagesflags('-', uidlist, flags)
def processmessagesflags(self, operation, uidlist, flags): def processmessagesflags(self, operation, uidlist, flags):
if len(uidlist) > 101:
# Hack for those IMAP ervers with a limited line length
self.processmessagesflags(operation, uidlist[:100], flags)
self.processmessagesflags(operation, uidlist[100:], flags)
return
imapobj = self.imapserver.acquireconnection() imapobj = self.imapserver.acquireconnection()
try: try:
try: try: