Coder Social home page Coder Social logo

Comments (4)

jschreuder avatar jschreuder commented on May 22, 2024 1

Hmm, I solved it by using --ssl1 even though the first server doesn't actually have a valid certificate as far as I know. But it works which is good enough for me.

from imapsync.

gilleslamiral avatar gilleslamiral commented on May 22, 2024

Hi Jelmer,

It looks like the host1 server disconnects when imapsync try to fetch a message.
Look at the host1 imap log.
Add --debugimap1 and see if it helps.

++++ Looping on each folder
[.procmailrc] -> [_procmailrc]
[Clienten] -> [Clienten]

  • msg Clienten/1 {0} S[2054] F[\Seen] I[23-Feb-2011 20:04:38 +0100] could not be fetched: socket closed while reading data from server (4x)
  • msg Clienten/1 skipped. Could not be fetched

Au revoir, 09 51 84 42 42
Gilles Lamiral. France, Baulon (35580) 06 20 79 76 06

from imapsync.

jschreuder avatar jschreuder commented on May 22, 2024

Hi Gilles,

Thanks for the quick reply!

Regretably I don't have access to all the logs on the first host. But with --debugimap1 I get a lot of the following:

msg Trash/21 copying to Trash 
Sending: 427 UID FETCH 21 BODY.PEEK[]
Sent 30 bytes
ERROR: socket closed while reading data from server at Mail/IMAPClient.pm line 1629.
    Mail::IMAPClient::_read_line('Mail::IMAPClient=HASH(0x313563c)', 'GLOB(0x31d2b7c)') called at Mail/IMAPClient.pm line 1381
    Mail::IMAPClient::_get_response('Mail::IMAPClient=HASH(0x313563c)', 'HASH(0x319925c)', 427, undef) called at Mail/IMAPClient.pm line 1315
    Mail::IMAPClient::_imap_command_do('Mail::IMAPClient=HASH(0x313563c)', 'HASH(0x319a214)', 'UID FETCH 21 BODY.PEEK[]') called at Mail/IMAPClient.pm line 1214
    Mail::IMAPClient::_imap_command('Mail::IMAPClient=HASH(0x313563c)', 'HASH(0x319a214)', 'UID FETCH 21 BODY.PEEK[]') called at Mail/IMAPClient.pm line 1425
    Mail::IMAPClient::_imap_uid_command('Mail::IMAPClient=HASH(0x313563c)', 'HASH(0x319a214)', 'FETCH', 21, 'BODY.PEEK[]') called at Mail/IMAPClient.pm line 927
    Mail::IMAPClient::message_to_file('Mail::IMAPClient=HASH(0x313563c)', 'SCALAR(0x2cb8324)', 21) called at Mail/IMAPClient.pm line 852
    Mail::IMAPClient::message_string('Mail::IMAPClient=HASH(0x313563c)', 21) called at script/imapsync line 3654
    main::message_for_host2(21, 'Trash', 6398, '\Seen', '11-Aug-2011 17:12:52 +0200', 'HASH(0x2cb1d8c)') called at script/imapsync line 3590
    main::copy_message(21, 'Trash', 'Trash', 'HASH(0x2cb1d8c)', '', 'C:\Users\...\AppData\Local\Temp/imapsync_cache/...') called at script/imapsync line 1619
    require main called at c:/strawberry/perl/vendor/lib/PAR.pm line 636
    PAR::_run_member('Archive::Zip::ZipFileMember=HASH(0x2b4e3f4)', 1) called at script/main.pl line 26
    require main called at c:/strawberry/perl/vendor/lib/PAR.pm line 636
    PAR::_run_member('Archive::Zip::ZipFileMember=HASH(0x2b4e5c4)') called at c:/strawberry/perl/vendor/lib/PAR.pm line 428
    PAR::import('PAR') called at -e line 953
    eval {...} called at -e line 209
    __par_pl::BEGIN() called at script/imapsync line 0
    eval {...} called at script/imapsync line 0
reconnecting to xx.xx.xx.xx, last error: socket closed while reading data from server
Connecting with IO::Socket::INET PeerAddr xx.xx.xx.xx PeerPort 143 Proto tcp Timeout 120 Debug 1
Connected to xx.xx.xx.xx errno(Er is een verbindingsaanvraag gedaan voor socket dat al verbonden is.)
Read:   * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5] Dovecot ready.
Sending: 428 LOGIN <<<REMOVED>>>
Sent 56 bytes
Read:   428 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS] Logged in
Sending: 429 SELECT Trash
Sent 18 bytes
Read:   * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
    * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.
    * 21 EXISTS
    * 0 RECENT
    * OK [UNSEEN 2] First unseen.
    * OK [UIDVALIDITY 1298903262] UIDs valid
    * OK [UIDNEXT 22] Predicted next UID
    * OK [HIGHESTMODSEQ 1] Highest
    429 OK [READ-WRITE] Select completed.
reconnect success(1) on try #1/3
Sending: 430 UID FETCH 21 BODY.PEEK[]
Sent 30 bytes

The error in Dutch Er is een verbindingsaanvraag gedaan voor socket dat al verbonden is. translates as "There was a connection request for a socket that is already connected."

from imapsync.

gilleslamiral avatar gilleslamiral commented on May 22, 2024

Good but strange.

Le 10/08/2014 14:19, Jelmer Schreuder a écrit :

Hmm, I solved it by using |--ssl1| even though the first server doesn't actually have a valid certificate as far as I know. But it works which is good enough for me.

Au revoir, 09 51 84 42 42
Gilles Lamiral. France, Baulon (35580) 06 20 79 76 06

from imapsync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.