[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [imapsync] imapsync dies...


From Phil Lobbes <plobbes at zimbra dot com>
Subject Re: [imapsync] imapsync dies...
Date Thu, 14 May 2009 23:00:58 -0700 (PDT)

I have seen similar behavior when a SIGPIPE is encountered.  The latest Mail::IMAPClient 3.x now handles SIGPIPE but older versions did not.

I'd recommmend trying imapsync with '--allow3xx' and getting the latest Mail::IMAPClient from CPAN.

However, that by itself likely won't fix the problem, but just catch the error condition.  I would guess that your host2 (or some firewall/router in between perhaps) is closing the imap connection due to inactivity.

I've got a patched version of imapsync that does a 'noop' between things (this is sometimes not enough... and appears it probably isn't in your case) and I also added an option to Mail::IMAPClient to support enabling SO_KEEPALIVE on a connection (but even with this you may still need to tune your OS to have keepalives sent before an aggressive firewall closes a connection) -- imapsync doesn't currently try to do anything for Keepalives as this option was only introduced a few weeks ago in Mail::IMAPClient.

Not sure any of this helps... but hopefully gets you headed down the right path.

Phil

----- Original Message -----
From: "Ronald Vyhmeister" <rvyhmeister at aiias dot edu>
To: imapsync at linux-france dot org
Sent: Friday, May 15, 2009 1:53:15 AM GMT -05:00 US/Canada Eastern
Subject: [imapsync] imapsync dies...

Here is the startup...

get options: [1]
VERSION_IMAPClient 2.2.9
$RCSfile: imapsync,v $ $Revision: 1.279 $ $Date: 2009/03/22 00:12:15 $
Here is a [linux] system (Linux mba 2.6.26-1-686 #1 SMP Sat Jan 10 18:29:31
UTC
2009 i686)
with perl 5.10.0
Mail::IMAPClient  2.2.9
IO::Socket        1.30_01
IO::Socket::SSL   1.23
Digest::MD5       2.36_01
Digest::HMAC_MD5  1.01
Term::ReadKey
Date::Manip
 and the module Mail::IMAPClient version used here is 2.2.9
Command line used:
imapsync --syncinternaldates --host1 server1 --user1 user1 -
-password1 MASKED --ssl1 --port1 993 --authmech1 PLAIN --authmech2 LOGIN
--host2
 imap.gmail.com --port2 993 --ssl2 --user2 user at gmail dot com --useheader
Message-Id --skipsize --folder INBOX.Test Folder
 --delete2 --expunge2 --debug --debugimap --password2  PWCHANGED
Turned ON syncinternaldates, will set the internal dates (arrival dates) on
host
2 same as host1.
TimeZone:[PHT]

Imapsync then goes through a bunch of stuff (I'm only working with one
folder)... and at the end it dies with this... And back to the command
prompt... no error message, no nothing....

--0-1184816685-1173347732=:10955--
F message content ended on previous line
============================================================================
====
internal date from 1: [08-Mar-2007 17:56:04 +0800]
internal date from 1: ["08-Mar-2007 17:56:04 +0800"] (fixed)
flags from: [\Seen]["08-Mar-2007 17:56:04 +0800"]
Sending: 100 APPEND "InFo Journal Subscriptions" (\Seen) "08-Mar-2007
17:56:04 +0800" {7120}

Any ideas?

Ron


--------------------------------------
Ronald Vyhmeister, PhD
rvyhmeister at aiias dot edu
Professor and Chair, Department of Business
Assistant to the President for HR and Administration 
AIIAS 
Technology is dominated by two kinds of people:
Those who manage what they do not understand and 
those who understand that which they do not manage.

 



---- imapsync mailing-list ----
unsubscribe, mailto:imapsync-unsubscribe at listes dot linux-france dot org
imapsync,    http://linux-france.org/prj/imapsync/