Package: getmail4
Version: 4.20.0-1
Tags: patch

A colleague fought some hours with getmail4 rejecting
to copy an e-mail. The error message was sth. like:

operation error (IMAP error (command COPY ('123', 'archive') returned NO))

From this it was not clear to deduce the cause. After
adding one line (see patch), the culprit was found:

['[ALERT] You exceeded your mail quota.']


--- _retrieverbases.py  2010-07-03 02:34:07.000000000 +0200
+++ /tmp/_retrieverbases.py     2010-12-13 15:36:29.051492009 +0100
@@ -744,8 +744,8 @@
             raise getmailOperationError('IMAP error (%s)' % o)
         if result != 'OK':
             raise getmailOperationError(
-                'IMAP error (command %s returned %s)'
-                % ('%s %s' % (cmd, args), result)
+                'IMAP error (command %s returned %s, %s)'
+                % ('%s %s' % (cmd, args), result, resplist)
             )


I'm sure, this would be helpful for most getmail4 users.




--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to