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

Imapsync 1.9.9 useheader and ssl parameters


From Al Haraka <alharaka at gmail dot com>
Subject Imapsync 1.9.9 useheader and ssl parameters
Date Thu, 11 Nov 2010 16:24:07 -0500

Gilles,

First off, thanks for your awesome scripts.  I followed your
instructions from the FAQ.  I was originally lazy, and used the
packaged imapsync deb for Lenny 5.0.5, which is a very old version
(1.252).  Anyway, I followed your advice to get to the stage I needed,
running the following commands:

imapsync --host1 imap.host1.edu --port1 993 --ssl1 --user1 username1
--passfile1 /etc/secret1 --noauthmd5 --host2 imap.gmail.com  --port2
993 --ssl2 --user2 user2 at googleapphosteddomain dot edu --passfile2
/etc/secret2 --noauthmd5 --useheader 'Message-Id' --skipsize
--regextrans2 's/(.*)/Import Collectionsl\ Import\ 20101106\/$1/'
--dry --justfolders | tee -a imapsync.log

And then:

imapsync --host1 imap.host1.edu --port1 993 --ssl1 --user1 username1
--passfile1 /etc/secret1 --noauthmd5 --host2 imap.gmail.com  --port2
993 --ssl2 --user2 user2 at googleapphosteddomain dot edu --passfile2
/etc/secret2 --noauthmd5 --useheader 'Message-Id' --skipsize
--regextrans2 's/(.*)/Import Collectionsl\ Import\ 20101106\/$1/'
--justfolders | tee -a imapsync.log

And then:

imapsync --host1 imap.host1.edu --port1 993 --ssl1 --user1 username1
--passfile1 /etc/secret1 --noauthmd5 --host2 imap.gmail.com  --port2
993 --ssl2 --user2 user2 at googleapphosteddomain dot edu --passfile2
/etc/secret2 --noauthmd5 --useheader 'Message-Id' --skipsize
--regextrans2 's/(.*)/Import Collectionsl\ Import\ 20101106\/$1/'  |
tee -a imapsync.log

And here is where some slight problems started.  Thanks so much for
the info on the useheader directive; original attempts prior to
talking to you on StackOverflow turned a dead halt somewhere in the
process to something much faster.  However, a new issue arose.  Many
emails were not transferring, and all shared this error:

parse_headers want an ARRAY ref

I assume this has something to do with how I used useheader, but I was
confused because this was a GMail specific suggestion, and that is the
intended target as discussed in your docs on the website.  Searched
around the mailing list archives, and decided I needed to upgrade.  I
download the 1.9.9 tarball and extracted it.  All I did was add the
following, to point to the non-standard location of IMAPClient.pm
(v.2.2.9).

use lib "/usr/share/imapsync";

Then I tried the orig --dry --just-folders command, but it told me
that ssl and useheader parameters were unknown.

Useless localization of scalar assignment at
/usr/share/imapsync/Mail/IMAPClient.pm line 2562.
Unknown option: ssl1
Unknown option: ssl2
Unknown option: useheader

I then applied the ssl patch like so,

 patch imapsync < patches/imapsync-ssl.diff

But still no dice with useheader.


Useless localization of scalar assignment at
/usr/share/imapsync/Mail/IMAPClient.pm line 2562.
Unknown option: useheader

Let me know if you want the logs, but is there something obvious I am
missing?  It basically stalls without the useheader parameter, so it
is obviously important and I cannot ignore it if I want this to happen
in a reasonable amount of time.  Your tool is SO powerful, and I
really want to get it to work to migrate a bunch of work email before
I hit quota, and this has the potential to make it an easily scheuled
process for me.  Thanks.

Best,
_AJS