Can't copy message from local to remote

Ming Su mingsu at rcees.ac.cn
Mon May 11 02:37:38 BST 2015


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

====================================================

-- 
Dr. Ming Su
State Key Lab. of Environmental Aquatic Chemistry
Research Center for Eco-Environmental Sciences
Chinese Academy of Sciences 
P.O.Box 2871, Beijing, 100085 China
Tel: +86-10-62849149-805
Fax: +86-10-62923541
Email: mingsu at rcees.ac.cn, me at suming.me (peasonal)
Homepage: http://suming.me


On Sun, May 10, 2015 at 07:22:06PM +0200, Nicolas Sebrecht wrote:
> On Sun, May 10, 2015 at 11:06:36PM +0800, Ming Su wrote:
> 
> > Thanks very much!
> > 
> > According to your reply, I have tried v6.5.6 and v6.5.5, and also more older versions.
> > 
> > it comes to the same error.
> 
> Ok.
> 
> > And I have also enabled socktimeout in ~/.offlineimaprc, in this case, it can jump out the error, but it can only go one more step, as show below:
> > 
> > |─ming at x1  ~  ‹x1*› 
> > |─$ offlineimap -u basic
> > 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 INBOX: IMAP -> Maildir
> > Establishing connection to mail.cstnet.cn:993
> > Syncing Trash: IMAP -> Maildir
> > Syncing Virus Items: IMAP -> Maildir
> > Copy message 1385970712 (1 of 2) Remote:INBOX -> Local
> > Copy message 1385970713 (2 of 2) Remote:INBOX -> Local
> > Copy message -1 (1 of 1) Local:INBOX -> Remote
> > ERROR: command: APPEND => no response after 20.0 secs
> 
> Ok.
> 
> > Inspired by your suggestion, I just kill offlineimap process after 20 seconds in crontab, as show below:
> > 
> > |─ming at x1  ~  ‹x1*› 
> > |─$ crontab -e
> > # ...
> > * * * * * /usr/local/bin/offlineimap -u basic & sleep 30 && killall -9 offlineimap
> > # ...
> > 
> > I sent an email in mutt, then I found it showed in the web mail system. It works in a very dirty way.
> 
> Send a SIGQUIT instead of SIGKILL on a stopped process to get a detailed
> traceback.
> 
> -- 
> Nicolas Sebrecht
> 
> _______________________________________________
> OfflineIMAP-project mailing list: OfflineIMAP-project at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/offlineimap-project
> 
> OfflineIMAP homepages:
> - https://github.com/OfflineIMAP
> - http://offlineimap.org





More information about the OfflineIMAP-project mailing list