<table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top">Try it with the "remotepass"line uncommented! Let us know if that works.</td></tr></table>            <div id="_origMsg_">
                <div>
                    <br />
                    <div>
                        <div style="font-size:0.9em">
                            <hr size="1">
                            <b>
                                <span style="font-weight:bold">From:</span>
                            </b>
                            Jamie Allen <jsdckr@me.com>;                            <br>
                            <b>
                                <span style="font-weight:bold">To:</span>
                            </b>
                             <offlineimap-project@lists.alioth.debian.org>;                                                                                                     <br>
                            <b>
                                <span style="font-weight:bold">Subject:</span>
                            </b>
                            Help connecting to iCloud                             <br>
                            <b>
                                <span style="font-weight:bold">Sent:</span>
                            </b>
                            Sat, Jan 4, 2014 11:36:03 AM                            <br>
                        </div>
                            <br>
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                    <tr>
                                        <td valign="top">Warmest greetings to you<div><br></div><div>I wonder if anyone is successfully using offlineimap to connect to Apple's icloud service on <a rel="nofollow" target="_blank" href="http://imap.mail.me.com">imap.mail.me.com</a>?</div><div><br></div><div>My login fails to authenticate, and I have not been able to find any advice on this specific situation. Please excuse my ignorance. </div><div><br></div><div>I'm running offlineimap on a Mac OS X 10.9, and am successfully downloading from gmail. However, icloud gives the following :</div><div><br></div><div><blockquote type="cite"><div style="margin:0px;font-size:11px;font-family:Menlo;">ERROR: Exceptions occurred during the run!</div><div style="margin:0px;font-size:11px;font-family:Menlo;"> ERROR: All authentication types failed:</div><div style="margin:0px;font-size:11px;font-family:Menlo;">        PLAIN:
 [AUTHENTICATIONFAILED] Authentication failed</div><div style="margin:0px;font-size:11px;font-family:Menlo;">        LOGIN: command: LOGIN => socket error: <type 'exceptions.IOError'> - Too many read 0</div></blockquote></div><div><div style="margin:0px;font-size:11px;font-family:Menlo;"><br></div></div><div style="margin:0px;font-size:11px;font-family:Menlo;"><br></div><div style="margin:0px;font-size:11px;font-family:Menlo;">also :-</div><div style="margin:0px;font-size:11px;font-family:Menlo;"><br></div><div style="margin:0px;font-size:11px;font-family:Menlo;"><blockquote type="cite"><div style="margin:0px;">[imap]:   52:29.20 Account sync home CAPABILITY: ('ST11P00MM-ISCREAM002', '1U25', 'XAPPLEPUSHSERVICE', 'IMAP4', 'IMAP4REV1', 'SASL-IR', 'AUTH=ATOKEN', 'AUTH=PLAIN')</div><div style="margin:0px;"> [imap]:   52:29.20 Account sync home
 [sync] AUTHENTICATE ('PLAIN',)</div><div style="margin:0px;"> [imap]:   52:32.91 <a rel="nofollow" target="_blank" href="http://imap.mail.me.com">imap.mail.me.com</a> handler NO response: [AUTHENTICATIONFAILED] Authentication failed</div><p style="margin:0px;min-height:13px;"> <br class="webkit-block-placeholder"></p></blockquote><br></div><div style="margin:0px;font-size:11px;font-family:Menlo;">Here is the relevant section of .offlineimaprc :</div><div style="margin:0px;font-size:11px;font-family:Menlo;"><br></div><div style="margin:0px;font-size:11px;font-family:Menlo;"><blockquote type="cite"><div style="margin:0px;font-size:12px;font-family:Courier;color:rgb(76, 47, 45);background-color:rgb(223, 219, 196);">remotehost = <a rel="nofollow" target="_blank" href="http://imap.mail.me.com">imap.mail.me.com</a></div><div style="margin:0px;font-size:12px;font-family:Courier;color:rgb(76, 47, 45);background-color:rgb(223, 219,
 196);"># remotehost = <a rel="nofollow" target="_blank" href="http://p02-imap.mail.me.com">p02-imap.mail.me.com</a></div><div style="margin:0px;font-size:12px;font-family:Courier;color:rgb(76, 47, 45);background-color:rgb(223, 219, 196);">remoteuser = xxx</div><div style="margin:0px;font-size:12px;font-family:Courier;color:rgb(76, 47, 45);background-color:rgb(223, 219, 196);"># remotepass = xxxx</div><div style="margin:0px;font-size:12px;font-family:Courier;color:rgb(76, 47, 45);background-color:rgb(223, 219, 196);">type = IMAP</div><div style="margin:0px;font-size:12px;font-family:Courier;color:rgb(76, 47, 45);background-color:rgb(223, 219, 196);">ssl = yes</div><div style="margin:0px;font-size:12px;font-family:Courier;color:rgb(76, 47, 45);background-color:rgb(223, 219, 196);">cert_fingerprint = 13db1ba7073b75443c52a14c3bae0cc9d478567c</div></blockquote><div><div style="margin:0px;font-size:12px;font-family:Courier;color:rgb(76, 47,
 45);background-color:rgb(223, 219, 196);"><br></div></div><div style="margin:0px;font-size:12px;font-family:Courier;color:rgb(76, 47, 45);background-color:rgb(223, 219, 196);">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?!)</div><div style="margin:0px;font-size:12px;font-family:Courier;color:rgb(76, 47, 45);background-color:rgb(223, 219, 196);"><br></div><div style="margin:0px;font-size:12px;font-family:Courier;color:rgb(76, 47, 45);background-color:rgb(223, 219, 196);">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'</div><div style="margin:0px;font-size:12px;font-family:Courier;color:rgb(76, 47, 45);background-color:rgb(223, 219, 196);"><br></div><div
 style="margin:0px;font-size:12px;font-family:Courier;color:rgb(76, 47, 45);background-color:rgb(223, 219, 196);">Any advice or help would be very very gratefully received!</div><div style="margin:0px;font-size:12px;font-family:Courier;color:rgb(76, 47, 45);background-color:rgb(223, 219, 196);"><br></div><div style="margin:0px;font-size:12px;font-family:Courier;color:rgb(76, 47, 45);background-color:rgb(223, 219, 196);">Thanks,</div><div style="margin:0px;font-size:12px;font-family:Courier;color:rgb(76, 47, 45);background-color:rgb(223, 219, 196);"><br></div><div style="margin:0px;font-size:12px;font-family:Courier;color:rgb(76, 47, 45);background-color:rgb(223, 219, 196);">Jamie</div></div></td>
                                    </tr>
                                </tbody>
                            </table>
                    </div>
                </div>
            </div>