Sunday, July 18, 2010

 

How to use IMAPSYNC with Yahoo IMAP

It took me quite a while to get this all worked out. So once i figured it out I figured I should document it for prosperities sake.

IMAPSYNC is a cool tool that let's you sync folders between 2 IMAP style mailboxes. If you use Ubuntu (and why don't you?). You can get it from apt-get with this command

sudo apt-get install imapsync

The syntax is fairly straight forward, until you want to sync with a "Yahoo" IMAP server, because the Yahoo server has a few 'tricks'.

So to make it easy just grab a copy of this perl script

BWebCentral - imapsync-yahoo

Which will allow you to select the imap yahoo server correctly

Technical Details:

The servers for syncing with Yahoo are

1) imap.mail.yahoo.com - For standard unencpted imap
2) imap-sll.mail.yahoo.com - For SSL Encrypted imap

How it Works:

The orginal imapsync, sends the login command as "Login".  For strange reasons yahoo will not authentice with "Login". Instead you have to use "login" or "LOGON". So a simple change to remove the uppercase "L" fixes this

Yahoo IMAP requires a secret command to be sent at the start of the session, otherwise it will not authenticate you.

This command is "ID ("GUID" "1")".  Thanks to



http://ameir.net/blog/archives/43-Yahoo!-Mail-IMAP-Proxy.htmlhttp://ameir.net/blog/archives/43-Yahoo!-Mail-IMAP-Proxy.html for explaining how this works

Have fun syncing your imap folders

Comments:
Hi,
I am trying to use this and get the following error. I have imapsync 1.315 installed and working except for the yahoo issue. I am a beginner of Ubuntu so I could be doing some dumb.
I just copied the perl script at http://www.bwebcentral.com/utils/imapsync-yahoo then then made it executable.
Thanks for your help.
Best,
Patrick

./imapsyncy.pl
Subroutine Authuser redefined at ./imapsyncy.pl line 1877.
imapsync needs perl lib Mail::IMAPClient release 2.2.9 exactly, future imapsync release may suppoort 3.0.x, but sorry not now
# Looks like your test exited with 2 before it could output anything.
 
Hi Patrick,

It sounds like you are using an earlier version of imapsync. There is a known problem with compatibility described here

https://bugzilla.redhat.com/show_bug.cgi?id=454953

Are you using an earlier version of Ubuntu that perhaps only has the buggy version of imapsync. I tihnk if you can get the patched version of imapsync working from the link above, then my yahoo version should work okay
 
Thanks for the feedback. It seems like the current version cost 30 euros. While this script would be useful it is not worth that much to me. Let me know if I am wrong.
Thanks!
Patrick
 
Hi,

I'm using it fine here, and I didn't pay anything for it,

the imapsync program as far as I know is free

There is another program called Zimbra which uses imapsync, it might cost money I'm not sure.
 
Sorry, I am being dumb then. The only place I can find the latest version is http://www.linux-france.org/prj/imapsync/ which costs 30 euros.
I am using Ubuntu 10.10 which has imapsync 1.315.
Thanks,
Patrick
 
Post a Comment

Subscribe to Post Comments [Atom]





<< Home

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]