<DKIM> moving mails between directories does not work

Jan Knížek jk at janknizek.cz
Sat Nov 4 18:15:20 GMT 2017


On Sat, Nov 04, 2017 at 05:00:14PM +0100, Nicolas Sebrecht wrote:
>On Sat, Nov 04, 2017 at 03:32:57PM +0100, Jan Knížek wrote:
>
>> Hi all,
>
>Hi,
>
>> I have been succesfully using offlineimap, but I got a new e-mail provider.
>> Synchronization works, but only as long as I do not move an e-mail from one
>> directory to another. Then I get the well-know error Connection aborted.
>
>Could you provide the logs with the error?

Sorry, it's in the attachment. It was moved from INBOX to mbox. I have created
the folder mbox manually.

JK
-------------- next part --------------
říj 29 10:18:23 holly offlineimap[6428]: *** Processing account h.knizek
říj 29 10:18:23 holly offlineimap[6428]: Establishing connection to imap.seznam.cz:993 (h.knizek-remote)
říj 29 10:18:24 holly offlineimap[6428]: Syncing archive: IMAP -> Maildir
říj 29 10:18:24 holly offlineimap[6428]: Syncing drafts: IMAP -> Maildir
říj 29 10:18:24 holly offlineimap[6428]: Syncing INBOX: IMAP -> Maildir
říj 29 10:18:24 holly offlineimap[6428]: Syncing mbox: IMAP -> Maildir
říj 29 10:18:24 holly offlineimap[6428]: Copy message UID 33799 (1/1) h.knizek-remote:INBOX -> h.knizek-local
říj 29 10:18:25 holly offlineimap[6428]: Copy message UID -1 (1/1) h.knizek-local:mbox -> h.knizek-remote
říj 29 10:18:25 holly offlineimap[6428]: Syncing newsletters: IMAP -> Maildir
říj 29 10:18:26 holly offlineimap[6428]: ERROR: Copying message -1 [acc: h.knizek]
říj 29 10:18:26 holly offlineimap[6428]:   connection closed
říj 29 10:18:26 holly offlineimap[6428]: Establishing connection to imap.seznam.cz:993 (h.knizek-remote)
říj 29 10:18:26 holly offlineimap[6428]: ERROR: while syncing mbox [account h.knizek]
říj 29 10:18:26 holly offlineimap[6428]:   connection closed
říj 29 10:18:26 holly offlineimap[6428]: ERROR: ERROR in syncfolder for h.knizek folder mbox: Traceback (most recent call last):
říj 29 10:18:26 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/accounts.py", line 643, in syncfolder
říj 29 10:18:26 holly offlineimap[6428]:     localfolder.syncmessagesto(remotefolder, statusfolder)
říj 29 10:18:26 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/folder/Base.py", line 1116, in syncmessagesto
říj 29 10:18:26 holly offlineimap[6428]:     action(dstfolder, statusfolder)
říj 29 10:18:26 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/folder/Base.py", line 944, in __syncmessagesto_copy
říj 29 10:18:26 holly offlineimap[6428]:     self.copymessageto(uid, dstfolder, statusfolder, register=0)
říj 29 10:18:26 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/folder/Base.py", line 844, in copymessageto
říj 29 10:18:26 holly offlineimap[6428]:     new_uid = dstfolder.savemessage(uid, message, flags, rtime)
říj 29 10:18:26 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/folder/IMAP.py", line 737, in savemessage
říj 29 10:18:26 holly offlineimap[6428]:     headervalue)
říj 29 10:18:26 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/folder/IMAP.py", line 453, in __savemessage_fetchheaders
říj 29 10:18:26 holly offlineimap[6428]:     result = imapobj.uid('FETCH', bytearray('%d:*'% start), 'rfc822.header')
říj 29 10:18:26 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/bundled_imaplib2.py", line 1267, in uid
říj 29 10:18:26 holly offlineimap[6428]:     return self._simple_command('UID', command, *args, **kw)
říj 29 10:18:26 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/bundled_imaplib2.py", line 1740, in _simple_command
říj 29 10:18:26 holly offlineimap[6428]:     return self._command_complete(self._command(name, *args), kw)
říj 29 10:18:26 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/bundled_imaplib2.py", line 1418, in _command
říj 29 10:18:26 holly offlineimap[6428]:     raise self.abort('connection closed')
říj 29 10:18:26 holly offlineimap[6428]: abort: connection closed
říj 29 10:18:26 holly offlineimap[6428]:   connection closed
říj 29 10:18:26 holly offlineimap[6428]: Syncing Odeslan&AOE-: IMAP -> Maildir
říj 29 10:18:26 holly offlineimap[6428]: Syncing sent: IMAP -> Maildir
říj 29 10:18:26 holly offlineimap[6428]: Syncing spam: IMAP -> Maildir
říj 29 10:18:27 holly offlineimap[6428]: Syncing trash: IMAP -> Maildir
říj 29 10:18:27 holly offlineimap[6428]: Deleting 10 messages (32860,32955,32984,32989,33005,33014,33019,33021:33022,33038) in Maildir[spam]
říj 29 10:18:28 holly offlineimap[6428]: Copy message UID 33794 (1/3) h.knizek-remote:trash -> h.knizek-local
říj 29 10:18:28 holly offlineimap[6428]: Copy message UID 33796 (2/3) h.knizek-remote:trash -> h.knizek-local
říj 29 10:18:28 holly offlineimap[6428]: Copy message UID 33798 (3/3) h.knizek-remote:trash -> h.knizek-local
říj 29 10:18:29 holly offlineimap[6428]: Deleting 128 messages (32861:32865,32867,32869:32870,32872,32874,32876:32877,32879,32884:32885,32887:32890,32892:32893,32895:32896,32898,32900,32902,32904:32905,32907:32910,32912,32914:32915,32917:32919,32921:32922,32924,32926,32928,32930:32933,32935,32937,32939:32940,32942,32944:32946,32948,32950:32954,32957:32960,32962,32964,32966:32967,32969:32970,32972:32973,32975:32977,32979,32981:32982,32985,32987,32991:32992,32994:32997,32999,33001,33003,33006:33007,33009,33011,33013,33016:33017,33020,33024:33032,33034,33036,33040,33042:33044,33046,33048,33050:33054,33056:33057,33059:33060,33062,33064,33066,33068) in Maildir[trash]
říj 29 10:18:29 holly offlineimap[6428]: *** Finished account 'h.knizek' in 0:06
říj 29 10:18:29 holly offlineimap[6428]: ERROR: Exceptions occurred during the run!
říj 29 10:18:29 holly offlineimap[6428]: ERROR: Copying message -1 [acc: h.knizek]
říj 29 10:18:29 holly offlineimap[6428]:   connection closed
říj 29 10:18:29 holly offlineimap[6428]: Traceback:
říj 29 10:18:29 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/folder/Base.py", line 844, in copymessageto
říj 29 10:18:29 holly offlineimap[6428]:     new_uid = dstfolder.savemessage(uid, message, flags, rtime)
říj 29 10:18:29 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/folder/IMAP.py", line 737, in savemessage
říj 29 10:18:29 holly offlineimap[6428]:     headervalue)
říj 29 10:18:29 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/folder/IMAP.py", line 453, in __savemessage_fetchheaders
říj 29 10:18:29 holly offlineimap[6428]:     result = imapobj.uid('FETCH', bytearray('%d:*'% start), 'rfc822.header')
říj 29 10:18:29 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/bundled_imaplib2.py", line 1267, in uid
říj 29 10:18:29 holly offlineimap[6428]:     return self._simple_command('UID', command, *args, **kw)
říj 29 10:18:29 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/bundled_imaplib2.py", line 1740, in _simple_command
říj 29 10:18:29 holly offlineimap[6428]:     return self._command_complete(self._command(name, *args), kw)
říj 29 10:18:29 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/bundled_imaplib2.py", line 1418, in _command
říj 29 10:18:29 holly offlineimap[6428]:     raise self.abort('connection closed')
říj 29 10:18:29 holly offlineimap[6428]: ERROR: while syncing mbox [account h.knizek]
říj 29 10:18:29 holly offlineimap[6428]:   connection closed
říj 29 10:18:29 holly offlineimap[6428]: Traceback:
říj 29 10:18:29 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/folder/Base.py", line 1116, in syncmessagesto
říj 29 10:18:29 holly offlineimap[6428]:     action(dstfolder, statusfolder)
říj 29 10:18:29 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/folder/Base.py", line 944, in __syncmessagesto_copy
říj 29 10:18:29 holly offlineimap[6428]:     self.copymessageto(uid, dstfolder, statusfolder, register=0)
říj 29 10:18:29 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/folder/Base.py", line 844, in copymessageto
říj 29 10:18:29 holly offlineimap[6428]:     new_uid = dstfolder.savemessage(uid, message, flags, rtime)
říj 29 10:18:29 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/folder/IMAP.py", line 737, in savemessage
říj 29 10:18:29 holly offlineimap[6428]:     headervalue)
říj 29 10:18:29 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/folder/IMAP.py", line 453, in __savemessage_fetchheaders
říj 29 10:18:29 holly offlineimap[6428]:     result = imapobj.uid('FETCH', bytearray('%d:*'% start), 'rfc822.header')
říj 29 10:18:29 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/bundled_imaplib2.py", line 1267, in uid
říj 29 10:18:29 holly offlineimap[6428]:     return self._simple_command('UID', command, *args, **kw)
říj 29 10:18:29 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/bundled_imaplib2.py", line 1740, in _simple_command
říj 29 10:18:29 holly offlineimap[6428]:     return self._command_complete(self._command(name, *args), kw)
říj 29 10:18:29 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/bundled_imaplib2.py", line 1418, in _command
říj 29 10:18:29 holly offlineimap[6428]:     raise self.abort('connection closed')
říj 29 10:18:29 holly offlineimap[6428]: ERROR: ERROR in syncfolder for h.knizek folder mbox: Traceback (most recent call last):
říj 29 10:18:29 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/accounts.py", line 643, in syncfolder
říj 29 10:18:29 holly offlineimap[6428]:     localfolder.syncmessagesto(remotefolder, statusfolder)
říj 29 10:18:29 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/folder/Base.py", line 1116, in syncmessagesto
říj 29 10:18:29 holly offlineimap[6428]:     action(dstfolder, statusfolder)
říj 29 10:18:29 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/folder/Base.py", line 944, in __syncmessagesto_copy
říj 29 10:18:29 holly offlineimap[6428]:     self.copymessageto(uid, dstfolder, statusfolder, register=0)
říj 29 10:18:29 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/folder/Base.py", line 844, in copymessageto
říj 29 10:18:29 holly offlineimap[6428]:     new_uid = dstfolder.savemessage(uid, message, flags, rtime)
říj 29 10:18:29 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/folder/IMAP.py", line 737, in savemessage
říj 29 10:18:29 holly offlineimap[6428]:     headervalue)
říj 29 10:18:29 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/folder/IMAP.py", line 453, in __savemessage_fetchheaders
říj 29 10:18:29 holly offlineimap[6428]:     result = imapobj.uid('FETCH', bytearray('%d:*'% start), 'rfc822.header')
říj 29 10:18:29 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/bundled_imaplib2.py", line 1267, in uid
říj 29 10:18:29 holly offlineimap[6428]:     return self._simple_command('UID', command, *args, **kw)
říj 29 10:18:29 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/bundled_imaplib2.py", line 1740, in _simple_command
říj 29 10:18:29 holly offlineimap[6428]:     return self._command_complete(self._command(name, *args), kw)
říj 29 10:18:29 holly offlineimap[6428]:   File "/usr/lib/python2.7/site-packages/offlineimap/bundled_imaplib2.py", line 1418, in _command
říj 29 10:18:29 holly offlineimap[6428]:     raise self.abort('connection closed')
říj 29 10:18:29 holly offlineimap[6428]: abort: connection closed
říj 29 10:18:29 holly offlineimap[6428]:   connection closed
říj 29 10:18:29 holly systemd[676]: offlineimap-oneshot.service: Main process exited, code=exited, status=1/FAILURE
říj 29 10:18:29 holly systemd[676]: offlineimap-oneshot.service: Failed with result 'exit-code'.
říj 29 10:18:29 holly systemd[676]: Failed to start Offlineimap Service (oneshot).


More information about the OfflineIMAP-project mailing list