<div dir="ltr"><div>I have these errors, when running offlineimap:<br></div><div><br></div><div><div>PLAIN authentication failed: command: AUTHENTICATE => socket error: <type 'exceptions.IOError'> - Too many read 0</div><div> LOGIN authentication failed: connection closed</div><div> ERROR: All authentication types failed:</div><div> PLAIN: command: AUTHENTICATE => socket error: <type 'exceptions.IOError'> - Too many read 0</div><div> LOGIN: connection closed</div></div><div><br></div><div><div>ERROR: Exceptions occurred during the run!</div><div>ERROR: All authentication types failed:</div><div> PLAIN: command: AUTHENTICATE => socket error: <type 'exceptions.IOError'> - Too many read 0</div><div> LOGIN: connection closed</div><div><br></div><div>Traceback:</div><div> File "/usr/share/offlineimap/offlineimap/accounts.py", line 278, in syncrunner</div><div> self.__sync()</div><div> File "/usr/share/offlineimap/offlineimap/accounts.py", line 342, in __sync</div><div> localrepos.getfolders()</div><div> File "/usr/share/offlineimap/offlineimap/repository/IMAP.py", line 452, in getfolders</div><div> imapobj = self.imapserver.acquireconnection()</div><div> File "/usr/share/offlineimap/offlineimap/imapserver.py", line 540, in acquireconnection</div><div> self.__authn_helper(imapobj)</div><div> File "/usr/share/offlineimap/offlineimap/imapserver.py", line 415, in __authn_helper</div><div> "failed:\n\t%s"% msg, OfflineImapError.ERROR.REPO)</div></div><div><br></div><div><br></div><div>how to troubleshoot this?</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-07-16 22:54 GMT+02:00 Nicolas Sebrecht <span dir="ltr"><<a href="mailto:nicolas.s-dev@laposte.net" target="_blank">nicolas.s-dev@laposte.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sun, Jul 16, 2017 at 08:06:36PM +0200, Wojciech Żuk wrote:<br>
<br>
> as you can see I have in my config reverse nametrans rules, my config is<br>
> OK as it worked over a last year before offlineimap upgrade<br>
<br>
Sorry, I didn't read the rules because they are badly rendered and<br>
formated due to the HTML format of the emails.<br>
<br>
> I found something:<br>
> when I hash this on remote-repository:<br>
> #createfolders = false<br>
> then offlineimap start to create on Gmail side folders but with different<br>
> names that it should:<br>
> [1]<a href="mailto:account@wp.pl">account@wp.pl</a><br>
> [2]<a href="http://account@wp.pl/Mbank" rel="noreferrer" target="_blank">account@wp.pl/Mbank</a><br>
> [3]<a href="http://account@wp.pl/Citibank" rel="noreferrer" target="_blank">account@wp.pl/Citibank</a><br>
> but it does this:<br>
> Creating folder account@wp/pl[Gmail-wp]<br>
> Creating folder account@wp/pl/Mbank[Gmail-wp]<br>
> Creating folder account@wp/pl/Citibank[Gmail-<wbr>wp]<br>
> it changes names from [4]<a href="mailto:account@wp.pl">account@wp.pl</a> to account@wp/pl<br>
> something is wrong with unicode or characters encoding?<br>
<br>
The dot is the default local separator and the slash is the usual IMAP<br>
separator. When translated back to the remote name, the local separators<br>
are updated to the remote separators. Hence, each dot becomes a slash<br>
when synced back on remote.<br>
<br>
The separator character is highly discouraged and not supported in the<br>
folder names when using nametrans with reversed nametrans rules.<br>
Offlineimap has no way to know it's the literal char as-is or the<br>
separator char that must be translated.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Nicolas Sebrecht<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="font-size:12.8px"><span style="font-size:12.8px">Pozdrawiam</span><br></div><div style="font-size:12.8px"><span style="font-size:12.8px">Wojtek Żuk</span></div></div></div></div></div>
</div></div>