Can't copy message from local to remote
Nicolas Sebrecht
nicolas.s-dev at laposte.net
Mon May 11 08:17:44 BST 2015
Hi guys,
It looks like imaplib2 v2.43 is blocking on a network poll while on
the first APPEND.
I've had positive feedbacks from other users of OfflineIMAP so I expect
it blocking for specific IMAP servers.
Ming Su, could you please put a detailed log "-l log.txt -d imap" at
https://gist.github.com/ of a blocked run (remember to remove the
password). Also attach the output of "offlineimap --info".
AFAICT, the mail is uploaded on the remote server.
Full discussion at
http://thread.gmane.org/gmane.mail.imap.offlineimap.general/7245 .
Thanks,
On Mon, May 11, 2015 at 09:37:38AM +0800, Ming Su wrote:
> Hi,
>
> Here is the out put affet sending a SIGQUIT.
>
> Thanks,
>
> =========================================
> ╭─ming at workstation ~ ‹workstation*›
> ╰─$ offlineimap -u basic 1 ↵
> OfflineIMAP 6.5.7-rc4
> Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)
> *** Processing account rcees
> Establishing connection to mail.cstnet.cn:993
> Syncing Drafts: IMAP -> Maildir
> Syncing Junk E-mail: IMAP -> Maildir
> Syncing Send Items: IMAP -> Maildir
> Establishing connection to mail.cstnet.cn:993
> Establishing connection to mail.cstnet.cn:993
> Syncing Sent Items: IMAP -> Maildir
> Establishing connection to mail.cstnet.cn:993
> Syncing Trash: IMAP -> Maildir
> Syncing INBOX: IMAP -> Maildir
> Establishing connection to mail.cstnet.cn:993
> Syncing Virus Items: IMAP -> Maildir
> Copy message 1385970755 (1 of 4) Remote:INBOX -> Local
> Copy message 1385970756 (2 of 4) Remote:INBOX -> Local
> Copy message 1385970757 (3 of 4) Remote:INBOX -> Local
> Copy message 1385970758 (4 of 4) Remote:INBOX -> Local
> Adding flag S to 3 messages on INBOX
> Copy message -2 (1 of 2) Local:INBOX -> Remote
> ^\
> # Thread #0 (id=139849336076032), mail.cstnet.cn handler
> File: "/usr/lib/python2.7/threading.py", line 524, in __bootstrap self.__bootstrap_inner()
> File: "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner self.run()
> File: "/usr/lib/python2.7/threading.py", line 504, in run self.__target(*self.__args, **self.__kwargs)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 1698, in _handler line = self.inq.get(True, timeout)
> File: "/usr/lib/python2.7/Queue.py", line 168, in get self.not_empty.wait()
> File: "/usr/lib/python2.7/threading.py", line 243, in wait waiter.acquire()
>
> # Thread #1 (id=139848228796160), mail.cstnet.cn reader
> File: "/usr/lib/python2.7/threading.py", line 524, in __bootstrap self.__bootstrap_inner()
> File: "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner self.run()
> File: "/usr/lib/python2.7/threading.py", line 504, in run self.__target(*self.__args, **self.__kwargs)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 1781, in _reader r = poll.poll(timeout)
>
> # Thread #2 (id=139848732096256), mail.cstnet.cn handler
> File: "/usr/lib/python2.7/threading.py", line 524, in __bootstrap self.__bootstrap_inner()
> File: "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner self.run()
> File: "/usr/lib/python2.7/threading.py", line 504, in run self.__target(*self.__args, **self.__kwargs)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 1698, in _handler line = self.inq.get(True, timeout)
> File: "/usr/lib/python2.7/Queue.py", line 168, in get self.not_empty.wait()
> File: "/usr/lib/python2.7/threading.py", line 243, in wait waiter.acquire()
>
> # Thread #3 (id=139849369646848), Folder INBOX [acc: rcees]
> File: "/usr/lib/python2.7/threading.py", line 524, in __bootstrap self.__bootstrap_inner()
> File: "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner self.run()
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/threadutil.py", line 239, in run ExitNotifyThread.run(self)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/threadutil.py", line 163, in run Thread.run(self)
> File: "/usr/lib/python2.7/threading.py", line 504, in run self.__target(*self.__args, **self.__kwargs)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/accounts.py", line 575, in syncfolder localfolder.syncmessagesto(remotefolder, statusfolder)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/folder/Base.py", line 979, in syncmessagesto action(dstfolder, statusfolder)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/folder/Base.py", line 853, in __syncmessagesto_copy register = 0)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/folder/Base.py", line 775, in copymessageto new_uid = dstfolder.savemessage(uid, message, flags, rtime)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/folder/IMAP.py", line 583, in savemessage imaputil.flagsmaildir2imap(flags), date, content)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 638, in append return self._simple_command(name, mailbox, flags, date_time, **kw)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 1633, in _simple_command return self._command_complete(self._command(name, *args), kw)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 1393, in _command_complete typ, dat = rqb.get_response('command: %s => %%s' % rqb.name)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 182, in get_response self.ready.wait()
> File: "/usr/lib/python2.7/threading.py", line 403, in wait self.__cond.wait(timeout)
> File: "/usr/lib/python2.7/threading.py", line 243, in wait waiter.acquire()
>
> # Thread #4 (id=139849742210816), mail.cstnet.cn writer
> File: "/usr/lib/python2.7/threading.py", line 524, in __bootstrap self.__bootstrap_inner()
> File: "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner self.run()
> File: "/usr/lib/python2.7/threading.py", line 504, in run self.__target(*self.__args, **self.__kwargs)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 1920, in _writer rqb = self.ouq.get()
> File: "/usr/lib/python2.7/Queue.py", line 168, in get self.not_empty.wait()
> File: "/usr/lib/python2.7/threading.py", line 243, in wait waiter.acquire()
>
> # Thread #5 (id=139848740488960), mail.cstnet.cn reader
> File: "/usr/lib/python2.7/threading.py", line 524, in __bootstrap self.__bootstrap_inner()
> File: "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner self.run()
> File: "/usr/lib/python2.7/threading.py", line 504, in run self.__target(*self.__args, **self.__kwargs)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 1781, in _reader r = poll.poll(timeout)
>
> # Thread #6 (id=139849717032704), mail.cstnet.cn writer
> File: "/usr/lib/python2.7/threading.py", line 524, in __bootstrap self.__bootstrap_inner()
> File: "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner self.run()
> File: "/usr/lib/python2.7/threading.py", line 504, in run self.__target(*self.__args, **self.__kwargs)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 1920, in _writer rqb = self.ouq.get()
> File: "/usr/lib/python2.7/Queue.py", line 168, in get self.not_empty.wait()
> File: "/usr/lib/python2.7/threading.py", line 243, in wait waiter.acquire()
>
> # Thread #7 (id=139849839699712), MainThread
> File: "/usr/local/bin/offlineimap", line 23, in <module> oi.run()
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/init.py", line 51, in run self.__sync(options)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/init.py", line 336, in __sync threadutil.exitnotifymonitorloop(threadutil.threadexited)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/threadutil.py", line 112, in exitnotifymonitorloop thrd = exitthreads.get(True, 60)
> File: "/usr/lib/python2.7/Queue.py", line 177, in get self.not_empty.wait(remaining)
> File: "/usr/lib/python2.7/threading.py", line 262, in wait _sleep(delay)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/init.py", line 313, in sig_handler stacktrace.dump(sys.stderr)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/utils/stacktrace.py", line 20, in dump for f, lno, name, line in traceback.extract_stack (stack):
>
> # Thread #8 (id=139848748881664), mail.cstnet.cn reader
> File: "/usr/lib/python2.7/threading.py", line 524, in __bootstrap self.__bootstrap_inner()
> File: "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner self.run()
> File: "/usr/lib/python2.7/threading.py", line 504, in run self.__target(*self.__args, **self.__kwargs)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 1781, in _reader r = poll.poll(timeout)
>
> # Thread #9 (id=139849765652224), Sync Runner
> File: "/usr/lib/python2.7/threading.py", line 524, in __bootstrap self.__bootstrap_inner()
> File: "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner self.run()
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/threadutil.py", line 163, in run Thread.run(self)
> File: "/usr/lib/python2.7/threading.py", line 504, in run self.__target(*self.__args, **self.__kwargs)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/syncmaster.py", line 39, in syncitall threads.reset()
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/threadutil.py", line 78, in reset thread.join()
> File: "/usr/lib/python2.7/threading.py", line 667, in join self.__block.wait()
> File: "/usr/lib/python2.7/threading.py", line 243, in wait waiter.acquire()
>
> # Thread #10 (id=139849757259520), Account sync rcees
> File: "/usr/lib/python2.7/threading.py", line 524, in __bootstrap self.__bootstrap_inner()
> File: "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner self.run()
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/threadutil.py", line 239, in run ExitNotifyThread.run(self)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/threadutil.py", line 163, in run Thread.run(self)
> File: "/usr/lib/python2.7/threading.py", line 504, in run self.__target(*self.__args, **self.__kwargs)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/accounts.py", line 263, in syncrunner self.__sync()
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/accounts.py", line 360, in __sync thr.join()
> File: "/usr/lib/python2.7/threading.py", line 667, in join self.__block.wait()
> File: "/usr/lib/python2.7/threading.py", line 243, in wait waiter.acquire()
>
> # Thread #11 (id=139848757274368), mail.cstnet.cn writer
> File: "/usr/lib/python2.7/threading.py", line 524, in __bootstrap self.__bootstrap_inner()
> File: "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner self.run()
> File: "/usr/lib/python2.7/threading.py", line 504, in run self.__target(*self.__args, **self.__kwargs)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 1920, in _writer rqb = self.ouq.get()
> File: "/usr/lib/python2.7/Queue.py", line 168, in get self.not_empty.wait()
> File: "/usr/lib/python2.7/threading.py", line 243, in wait waiter.acquire()
>
> # Thread #12 (id=139849733818112), mail.cstnet.cn reader
> File: "/usr/lib/python2.7/threading.py", line 524, in __bootstrap self.__bootstrap_inner()
> File: "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner self.run()
> File: "/usr/lib/python2.7/threading.py", line 504, in run self.__target(*self.__args, **self.__kwargs)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 1781, in _reader r = poll.poll(timeout)
>
> # Thread #13 (id=139848765667072), mail.cstnet.cn handler
> File: "/usr/lib/python2.7/threading.py", line 524, in __bootstrap self.__bootstrap_inner()
> File: "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner self.run()
> File: "/usr/lib/python2.7/threading.py", line 504, in run self.__target(*self.__args, **self.__kwargs)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 1698, in _handler line = self.inq.get(True, timeout)
> File: "/usr/lib/python2.7/Queue.py", line 168, in get self.not_empty.wait()
> File: "/usr/lib/python2.7/threading.py", line 243, in wait waiter.acquire()
>
> # Thread #14 (id=139849319290624), mail.cstnet.cn reader
> File: "/usr/lib/python2.7/threading.py", line 524, in __bootstrap self.__bootstrap_inner()
> File: "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner self.run()
> File: "/usr/lib/python2.7/threading.py", line 504, in run self.__target(*self.__args, **self.__kwargs)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 1781, in _reader r = poll.poll(timeout)
>
> # Thread #15 (id=139849327683328), mail.cstnet.cn writer
> File: "/usr/lib/python2.7/threading.py", line 524, in __bootstrap self.__bootstrap_inner()
> File: "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner self.run()
> File: "/usr/lib/python2.7/threading.py", line 504, in run self.__target(*self.__args, **self.__kwargs)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 1920, in _writer rqb = self.ouq.get()
> File: "/usr/lib/python2.7/Queue.py", line 168, in get self.not_empty.wait()
> File: "/usr/lib/python2.7/threading.py", line 243, in wait waiter.acquire()
>
> # Thread #16 (id=139849725425408), mail.cstnet.cn handler
> File: "/usr/lib/python2.7/threading.py", line 524, in __bootstrap self.__bootstrap_inner()
> File: "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner self.run()
> File: "/usr/lib/python2.7/threading.py", line 504, in run self.__target(*self.__args, **self.__kwargs)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 1698, in _handler line = self.inq.get(True, timeout)
> File: "/usr/lib/python2.7/Queue.py", line 168, in get self.not_empty.wait()
> File: "/usr/lib/python2.7/threading.py", line 243, in wait waiter.acquire()
>
> # Thread #17 (id=139848715310848), mail.cstnet.cn writer
> File: "/usr/lib/python2.7/threading.py", line 524, in __bootstrap self.__bootstrap_inner()
> File: "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner self.run()
> File: "/usr/lib/python2.7/threading.py", line 504, in run self.__target(*self.__args, **self.__kwargs)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 1920, in _writer rqb = self.ouq.get()
> File: "/usr/lib/python2.7/Queue.py", line 168, in get self.not_empty.wait()
> File: "/usr/lib/python2.7/threading.py", line 243, in wait waiter.acquire()
>
> # Thread #18 (id=139848723703552), mail.cstnet.cn handler
> File: "/usr/lib/python2.7/threading.py", line 524, in __bootstrap self.__bootstrap_inner()
> File: "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner self.run()
> File: "/usr/lib/python2.7/threading.py", line 504, in run self.__target(*self.__args, **self.__kwargs)
> File: "/usr/local/lib/python2.7/dist-packages/offlineimap/imaplib2.py", line 1698, in _handler line = self.inq.get(True, timeout)
> File: "/usr/lib/python2.7/Queue.py", line 168, in get self.not_empty.wait()
> File: "/usr/lib/python2.7/threading.py", line 243, in wait waiter.acquire()
> [1] 19256 abort (core dumped) offlineimap -u basic
>
> ====================================================
--
Nicolas Sebrecht
More information about the OfflineIMAP-project
mailing list