Package: imapsync Version: 1.182-1 Severity: normal Whilst moving email from a Courier IMAP server to a MS Exchange 2007 server, I am finding that Exchange is disconnecting and causing imapsync to die silently.
I traced it do libmail-imapclient-perl dying silently if it receives a SIGPIPE when doing syswrite(). I don't know if this is a bug in libmail-imapclient-perl or whether it is expected for users of the library to trap the signal and act as they see fit, but by all means reassign this to libmail-imapclient-perl if need be. I wonder if Exchange is killing the connection after seeing what it thinks of as too many errors? A --debug --debugimap trace ends as follows: Sent 23 bytes Read: * 11 FETCH (UID 49 FLAGS (\Seen \Deleted Junk)) 40 OK FETCH completed. flags: line = '40 UID FETCH 49 FLAGS ' flags: line = '* 11 FETCH (UID 49 FLAGS (\Seen \Deleted Junk)) ' flags: line = '* 11 FETCH (UID 49 FLAGS (\Seen \Deleted Junk)) ' and 1,2,3,4 = 11,49,\Seen \Deleted Junk, flags: line = '40 OK FETCH completed. ' Autoloading: UID store 35 +FLAGS (\Seen \Deleted Junk) Sending: 106 UID store 35 +FLAGS (\Seen \Deleted Junk) Sent 47 bytes Read: 106 BAD Command Argument Error. 11 Sending: 107 UID FETCH 35 FLAGS Sent 24 bytes flags from : \Seen \Deleted Junk flags to : Looking dates idate from : 05-May-2009 14:58:34 +0100 idate to : 12-Aug-2009 16:46:52 +0100 Message H11MEAbHMu8CQ+WNgMzF9g SZ_GOOD f:49:66236 t:35:49314 Deleting msg #49 in folder INBOX.Claudette Autoloading: UID store 49 +FLAGS.SILENT (\Deleted) Sending: 41 UID store 49 +FLAGS.SILENT (\Deleted) Sent 42 bytes Read: 41 OK STORE completed. + key wy/mAEhL2Sj5K6lFnAduAA #50 Message id [wy/mAEhL2Sj5K6lFnAduAA] found in t:/Claudette Setting flags Sending: 42 UID FETCH 50 FLAGS Sent 23 bytes Read: * 12 FETCH (UID 50 FLAGS (\Deleted Junk)) 42 OK FETCH completed. flags: line = '42 UID FETCH 50 FLAGS ' flags: line = '* 12 FETCH (UID 50 FLAGS (\Deleted Junk)) ' flags: line = '* 12 FETCH (UID 50 FLAGS (\Deleted Junk)) ' and 1,2,3,4 = 12,50,\Deleted Junk, flags: line = '42 OK FETCH completed. ' Autoloading: UID store 36 +FLAGS (\Deleted Junk) Sending: 108 UID store 36 +FLAGS (\Deleted Junk) The trace is from the $to->store(... line on 1116 of imapsync which eventually ends up calling syswrite on line 1467 of IMAPClient.pm (all line numbers from files included in Debian stable). The real answer will probably be to work out why Exchange keeps disconnecting, but that's a project for tomorrow I think! -- System Information: Debian Release: 4.0 APT prefers oldstable APT policy: (500, 'oldstable') Architecture: amd64 (x86_64) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-6-xen-amd64 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Versions of packages imapsync depends on: ii libdigest-hmac-perl 1.01-5 create standard message integrity ii libio-socket-ssl-perl 1.01-1 Perl module implementing object or ii libmail-imapclient-perl 2.2.9+deb-4 Perl library for manipulating IMAP ii libterm-readkey-perl 2.30-3 A perl module for simple terminal ii perl 5.8.8-7etch6 Larry Wall's Practical Extraction imapsync recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org