summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rwxr-xr-xscript/qmauth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/qmauth.py b/script/qmauth.py
index c306e1f..c05e75f 100755
--- a/script/qmauth.py
+++ b/script/qmauth.py
@@ -219,7 +219,7 @@ def _get_body(mail):
ret = mail.get_content()
if ret.isascii():
return ret.decode(encoding='ascii')
- elif len(ret) <= 512*1024:
+ elif len(ret) <= 128*1024:
return b64encode(ret).decode(encoding='ascii')
else:
raise QMAuthError("non attachment part too large (>512kB)", size=len(ret))