Skip to content

Commit

Permalink
Merge pull request #26 from vingeni/master
Browse files Browse the repository at this point in the history
fix #4 "Modoboa: command UID => got more than 10000 bytes"
  • Loading branch information
tonioo committed Jun 1, 2015
2 parents cf7b86b + 60d651f commit a9b4704
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modoboa_webmail/lib/imaputils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@

# imaplib.Debug = 4

# workaround for the "got more than 10000 bytes" exception. MAXLINE
# value set to 1M, as on latest python versions.
MAXLINE = 1000000
if hasattr(imaplib, "_MAXLINE") and getattr(imaplib, "_MAXLINE") < MAXLINE:
setattr(imaplib, "_MAXLINE", MAXLINE)


class capability(object):

Expand Down

0 comments on commit a9b4704

Please sign in to comment.