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:
parent
beb1c689f2
commit
8137e53c14
12
ChangeLog
12
ChangeLog
@ -2,6 +2,18 @@
|
||||
# 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
|
||||
|
||||
Summary:
|
||||
|
@ -282,6 +282,12 @@ class IMAPFolder(BaseFolder):
|
||||
self.processmessagesflags('-', 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()
|
||||
try:
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user