<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt">Thanks Jamie.  <br>When running on OSX, it seems that imaplib2 version 2.36, included with the latest release of OI 6.5.5, probably has a bug.<br><br>Best person to troubleshoot on OSX might be the imaplib2 maintainer. <br><br>Or, possibly Nicholas, Sebastian, konvpalto, Eygene. And others from the current OLI maintainer team + distinguished recent maintainers.<br><br>I hope they're reading and could give some input?<br><br><div style="display: block;" class="yahoo_quoted"> <br> <br> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> On Tuesday, January 7, 2014
 1:44 PM, Jamie Allen <jsdckr@me.com> wrote:<br> </font> </div>  <div class="y_msg_container">Thanks, Chris <br clear="none"><br clear="none">I've done that - please find attached, with thanks... I await your reflections with interest :)<br clear="none"><br clear="none">All the best,<br clear="none"><br clear="none">Jamie<br clear="none"><div class="yqt0383118687" id="yqtfd86102"><br clear="none">On Tue, Jan 07, 2014 at 06:05:52AM -0800, chris coleman wrote:<br clear="none">> If you would, try and run on your mac osx machine:<br clear="none">>  offlineimap -1 -d imap -l logfile.txt<br clear="none">> <br clear="none">> This will send more detailed debug info about the imap protocol, including hopefully that authentication error, to a file named logfile.txt<br clear="none">> Then if you could attach or copy/paste that logfile.txt and myself or possibly one of the official maintainers might see why exactly the plain auth is failing
 for you on osx.  <br clear="none">> <br clear="none">> <br clear="none">> <br clear="none">> <br clear="none">> <br clear="none">> On Monday, January 6, 2014 9:32 PM, Jamie Allen <<a shape="rect" ymailto="mailto:jsdckr@me.com" href="mailto:jsdckr@me.com">jsdckr@me.com</a>> wrote:<br clear="none">>  <br clear="none">> Hi Chris<br clear="none">> <br clear="none">> Yes, I'd be delighted to do that, and to help with fixing this issue if I can.<br clear="none">> <br clear="none">> Specifically, what would be most useful to you, over and above what's captured below? I'm more than happy to run anything and capture whatever material is useful.<br clear="none">> <br clear="none">> I have now set up a linux server which is running the offlineimap job beautifully, connecting to icloud... And the Mac is connecting absolutely fine to gmail and others.<br clear="none">> <br clear="none">> All the best,
 and thanks for your kind attention to this.<br clear="none">> <br clear="none">> Jamie<br clear="none">> <br clear="none">> <br clear="none">> On Sun, Jan 05, 2014 at 03:23:51PM -0800, chris coleman wrote:<br clear="none">> > Interesting- this means the OI code must've run differently on OSX vs.. Linux.  Do you have any log lines to share, that show different errors on OSX, vs. the logged errors/messages on Linux?  If you could run OI on both os's and generate logs on purpose and then copy/paste the relevant sections that would be very helpful tracking this bug down.<br clear="none">> > <br clear="none">> > <br clear="none">> > <br clear="none">> > <br clear="none">> > On Sunday, January 5, 2014 5:58 PM, Jamie Allen <<a shape="rect" ymailto="mailto:jsdckr@me.com" href="mailto:jsdckr@me.com">jsdckr@me.com</a>> wrote:<br clear="none">> >  <br clear="none">> > Greetings
 again<br clear="none">> > <br clear="none">> > Well, the problem is now fixed, if not solved. Precisely the same set-up run on Linux rather than Mac works perfectly. Go figure. <br clear="none">> > <br clear="none">> > All the best,<br clear="none">> > <br clear="none">> > Jamie<br clear="none">> >  <br clear="none">> > <br clear="none">> > On 5/01/2014, at 12:36 am, Jamie Allen <<a shape="rect" ymailto="mailto:jsdckr@me.com" href="mailto:jsdckr@me.com">jsdckr@me.com</a>> wrote:<br clear="none">> > <br clear="none">> > Warmest greetings to you<br clear="none">> > <br clear="none">> > I wonder if anyone is successfully using offlineimap to connect to Apple's icloud service on imap.mail.me.com?<br clear="none">> > <br clear="none">> > My login fails to authenticate, and I have not been able to find any advice on this specific situation. Please excuse
 my ignorance. <br clear="none">> > <br clear="none">> > I'm running offlineimap on a Mac OS X 10.9, and am successfully downloading from gmail. However, icloud gives the following :<br clear="none">> > <br clear="none">> > ERROR: Exceptions occurred during the run!<br clear="none">> > > ERROR: All authentication types failed:<br clear="none">> > >        PLAIN: [AUTHENTICATIONFAILED] Authentication failed<br clear="none">> > >        LOGIN: command: LOGIN => socket error: <type 'exceptions.IOError'> - Too many read 0<br clear="none">> > <br clear="none">> > <br clear="none">> > also :-<br clear="none">> > <br clear="none">> > [imap]:   52:29.20 Account sync home CAPABILITY: ('ST11P00MM-ISCREAM002', '1U25', 'XAPPLEPUSHSERVICE', 'IMAP4', 'IMAP4REV1', 'SASL-IR', 'AUTH=ATOKEN', 'AUTH=PLAIN')<br clear="none">>
 > > [imap]:   52:29.20 Account sync home [sync] AUTHENTICATE ('PLAIN',)<br clear="none">> > > [imap]:   52:32.91 imap.mail.me.com handler NO response: [AUTHENTICATIONFAILED] Authentication failed<br clear="none">> > > <br clear="none">> > ><br clear="none">> > <br clear="none">> > Here is the relevant section of .offlineimaprc :<br clear="none">> > <br clear="none">> > remotehost = imap.mail.me.com<br clear="none">> > ># remotehost = p02-imap.mail.me.com<br clear="none">> > >remoteuser = xxx<br clear="none">> > ># remotepass = xxxx<br clear="none">> > >type = IMAP<br clear="none">> > >ssl = yes<br clear="none">> > >cert_fingerprint = 13db1ba7073b75443c52a14c3bae0cc9d478567c<br clear="none">> > <br clear="none">> > How can I configure offlineimap to authenticate in one of the ways icloud accepts (obviously
 although it specifies 'AUTH=PLAIN' it doesn't mean it?!)<br clear="none">> > <br clear="none">> > I see that on Mail.app, the account setting specifies "Apple Token" - I'm not sure what that is...., but it is presumably what is offered with 'AUTH=ATOKEN'<br clear="none">> > <br clear="none">> > Any advice or help would be very very gratefully received!<br clear="none">> > <br clear="none">> > Thanks,<br clear="none">> > <br clear="none">> > Jamie<br clear="none">> > <br clear="none">> > <br clear="none">> > _______________________________________________<br clear="none">> > OfflineIMAP-project mailing list<br clear="none">> > <a shape="rect" ymailto="mailto:OfflineIMAP-project@lists.alioth.debian.org" href="mailto:OfflineIMAP-project@lists.alioth.debian.org">OfflineIMAP-project@lists.alioth.debian.org</a><br clear="none">> > <a shape="rect"
 href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/offlineimap-project" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/offlineimap-project</a><br clear="none">> > <br clear="none">> > OfflineIMAP homepage: <a shape="rect" href="http://software.complete.org/offlineimap" target="_blank">http://software.complete.org/offlineimap</a></div><br><br></div>  </div> </div>  </div> </div></body></html>