[BUG] APPEND command error (while sync-ing mail)

Randomcoder randomcoder1 at gmail.com
Tue Mar 17 07:54:13 GMT 2015


Oops, forgot to add the output

On Tue, Mar 17, 2015 at 09:52:46AM +0200, Randomcoder wrote:
> Hi all,
> 
> I like offlineimap and I use it often.
> Every now and then (maybe every 2-3 months) it fails sync-ing
> my mail.
> 
> I am attaching the output I get to this e-mail.
> Usually the "fix" is to delete the last messages I got that day
> and re-sync them using offlineimap.
> 
> 
>     find /home/Mail/rand1/\[Gmail\].All\ Mail/  -type f -printf '%T+\t%p\n' | \
>     sort | \
>     grep "2015-03-17+07:" | \
>     perl -F'\t' -ane 'print "$F[1]";' | xargs -I{} rm "{}"
> 
> 
> I'm using OfflineIMAP 6.3.4 from Debian Jessie's packages, more details bellow:
> 
>     Package: offlineimap                     
>     State: installed
>     Automatically installed: no
>     Version: 6.3.4-1
>     Priority: optional
>     Section: mail
>     Maintainer: John Francesco Ferlito <johnf at inodes.org>
>     Architecture: all
>     Uncompressed Size: 651 k
>     Depends: python (>= 2.6), python-support (>= 0.90.0)
>     Suggests: python-kerberos, doc-base
>     Description: IMAP/Maildir synchronization and reader support
> 
> I am posting to the mailing list, in case someone else has this problem.
> Not sure what part of OfflineIMAP's codebase is responsible for this.
> 
> 
> 
-------------- next part --------------
Folder sync [rand1]:
 Syncing [Gmail]/All Mail: Gmail -> Maildir
 Copy message -1 Maildir[[Gmail].All Mail] -> Gmail[[Gmail]/All Mail]
 WARNING: ERROR attempting to copy message -1 for account rand1:Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/offlineimap/folder/Base.py", line 255, in copymessageto
    newuid = dstfolder.savemessage(uid, message, flags, rtime)
  File "/usr/lib/pymodules/python2.7/offlineimap/folder/IMAP.py", line 459, in savemessage
    date, content)
  File "/usr/lib/pymodules/python2.7/offlineimap/imaplib2.py", line 577, in append
    return self._simple_command(name, mailbox, flags, date_time, **kw)
  File "/usr/lib/pymodules/python2.7/offlineimap/imaplib2.py", line 1549, in _simple_command
    return self._command_complete(self._command(name, *args), kw)
  File "/usr/lib/pymodules/python2.7/offlineimap/imaplib2.py", line 1314, in _command_complete
    raise self.error('%s command error: %s %s. Data: %.100s' % (rqb.name, typ, dat, rqb.data))
error: APPEND command error: BAD ['Invalid Arguments: Unable to parse message']. Data: LAOF10 APPEND "[Gmail]/All Mail" () "17-Mar-2015 07:20:27 +0200"
 {1177}



 WARNING: ERROR attempting to sync flags for account rand1:Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/offlineimap/folder/Base.py", line 421, in syncmessagesto
    action(dstfolder, statusfolder)
  File "/usr/lib/pymodules/python2.7/offlineimap/folder/Base.py", line 318, in syncmessagesto_copy
    self.copymessageto(uid, dstfolder, statusfolder, register = 0)
  File "/usr/lib/pymodules/python2.7/offlineimap/folder/Base.py", line 255, in copymessageto
    newuid = dstfolder.savemessage(uid, message, flags, rtime)
  File "/usr/lib/pymodules/python2.7/offlineimap/folder/Base.py", line 255, in copymessageto                                                  [37/1932]
    newuid = dstfolder.savemessage(uid, message, flags, rtime)
  File "/usr/lib/pymodules/python2.7/offlineimap/folder/IMAP.py", line 459, in savemessage
    date, content)
  File "/usr/lib/pymodules/python2.7/offlineimap/imaplib2.py", line 577, in append
    return self._simple_command(name, mailbox, flags, date_time, **kw)
  File "/usr/lib/pymodules/python2.7/offlineimap/imaplib2.py", line 1549, in _simple_command
    return self._command_complete(self._command(name, *args), kw)
  File "/usr/lib/pymodules/python2.7/offlineimap/imaplib2.py", line 1314, in _command_complete
    raise self.error('%s command error: %s %s. Data: %.100s' % (rqb.name, typ, dat, rqb.data))
error: APPEND command error: BAD ['Invalid Arguments: Unable to parse message']. Data: LAOF10 APPEND "[Gmail]/All Mail" () "17-Mar-2015 07:20:27 +0200"
 {1177}


 WARNING: ERROR in syncfolder for rand1 folder [Gmail]/All Mail: Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/offlineimap/accounts.py", line 355, in syncfolder
    localfolder.syncmessagesto(remotefolder, statusfolder)
  File "/usr/lib/pymodules/python2.7/offlineimap/folder/Base.py", line 421, in syncmessagesto
    action(dstfolder, statusfolder)
  File "/usr/lib/pymodules/python2.7/offlineimap/folder/Base.py", line 318, in syncmessagesto_copy
    self.copymessageto(uid, dstfolder, statusfolder, register = 0)
  File "/usr/lib/pymodules/python2.7/offlineimap/folder/Base.py", line 255, in copymessageto
    newuid = dstfolder.savemessage(uid, message, flags, rtime)
  File "/usr/lib/pymodules/python2.7/offlineimap/folder/IMAP.py", line 459, in savemessage
    date, content)
  File "/usr/lib/pymodules/python2.7/offlineimap/imaplib2.py", line 577, in append
    return self._simple_command(name, mailbox, flags, date_time, **kw)
  File "/usr/lib/pymodules/python2.7/offlineimap/imaplib2.py", line 1549, in _simple_command
    return self._command_complete(self._command(name, *args), kw)
  File "/usr/lib/pymodules/python2.7/offlineimap/imaplib2.py", line 1314, in _command_complete
    raise self.error('%s command error: %s %s. Data: %.100s' % (rqb.name, typ, dat, rqb.data))
error: APPEND command error: BAD ['Invalid Arguments: Unable to parse message']. Data: LAOF10 APPEND "[Gmail]/All Mail" () "17-Mar-2015 07:20:27 +0200"
 {1177}


More information about the OfflineIMAP-project mailing list