Can't copy message from local to remote
Ming Su
mingsu at rcees.ac.cn
Sun May 10 16:06:36 BST 2015
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.
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
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.
I still appreciated your help.
Regards,
--
Dr. SU, Ming
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
Email: me at suming.me (peasonal)
Website: http://suming.me
On Sat, May 09, 2015 at 08:58:25PM +0200, Nicolas Sebrecht wrote:
> On Sun, May 10, 2015 at 12:07:12AM +0800, Ming Su wrote:
> > Hi all,
> >
> > According to the configuration in the manual, I can download remote messages to local driver, however, I can't upload the local sent items to remote.
> >
> > The following is some information might be useful for analysis.
> >
> > Thank you for your help!
> >
> >
> > After run:
> > =====================================
> > ╭─ming at x1 ~ ‹x1*›
> > ╰─$ offlineimap -u basic 137 ↵
> > OfflineIMAP 6.5.7-rc4
>
> Does it work with a previous release (v6.5.6 or v6.5.5)?
>
> > Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)
> > *** Processing account rcees
> > Establishing connection to mail.cstnet.cn:993
> > Creating folder /[Remote]
> > Syncing Drafts: IMAP -> Maildir
> > Syncing Junk E-mail: IMAP -> Maildir
> > Establishing connection to mail.cstnet.cn:993
> > Syncing Trash: IMAP -> Maildir
> > Syncing Sent Items: IMAP -> Maildir
> > Establishing connection to mail.cstnet.cn:993
> > Establishing connection to mail.cstnet.cn:993
> > Syncing INBOX: IMAP -> Maildir
> > Establishing connection to mail.cstnet.cn:993
> > Syncing Virus Items: IMAP -> Maildir
> > Copy message 1385970569 (1 of 1) Remote:INBOX -> Local
> > Copy message -1 (1 of 1) Local:INBOX -> Remote
> >
> > =====================================
> > and it stop here forever.
>
> Bad. Once you don't see anymore network consumption, send a SIGQUIT
> signal to see where it's stopped. Wait enough to make sure it's really
> stopped.
>
> Outside of the above debugging check, you can try with socktimeout
> enabled.
>
> >
> > My
> >
> > ==========================================
> > ╭─ming at x1 ~ ‹x1*›
> > ╰─$ cat ~/offlineimaprc 138 ↵
> > [general]
> > ui = Noninteractive.Quiet
> > # list of the configured accounts
> > accounts = rcees
> > fsync = False
> >
> > [Account rcees]
> > localrepository = Local
> > remoterepository = Remote
> > #autorefresh = 10 # no autorefresh, i run it one-shot each time
> > quick = 30
> > status_backend = sqlite
> > maxage = 900
> >
> > [Repository Local]
> > type = Maildir
> > localfolders = ~/mail/rcees_imap/
> >
> > [Repository Remote]
> > type = IMAP
> > remotehost = mail.cstnet.cn
> > ssl = yes
> > remoteport = 993
> > remoteuser = mingsu at rcees.ac.cn
> > remotepass = ********
> >
> > realdelete = no
> > # google app-specific password
> > maxconnections = 5
> > holdconnectionopen = yes
> > sslcacertfile = /etc/ssl/certs/ca-certificates.crt
> > postsynchook = notmuch new
> > ==========================================
> >
> > And here is my maildir structure.
> > ===============================================
> > ╭─ming at x1 ~ ‹x1*›
> > ╰─$ tree -L 2 ~/mail/rcees_imap
> > ~/mail/rcees_imap
> > ├── Drafts
> > │ ├── cur
> > │ ├── new
> > │ └── tmp
> > ├── INBOX
> > │ ├── cur
> > │ ├── new
> > │ └── tmp
> > ├── Junk E-mail
> > │ ├── cur
> > │ ├── new
> > │ └── tmp
> > ├── Sent Items
> > │ ├── cur
> > │ ├── new
> > │ └── tmp
> > ├── Trash
> > │ ├── cur
> > │ ├── new
> > │ └── tmp
> > └── Virus Items
> > ├── cur
> > ├── new
> > └── tmp
> >
> > ===============================================
>
> --
> Nicolas Sebrecht
More information about the OfflineIMAP-project
mailing list