1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-30 05:02:26 -05:00

Escape backslashes in IMAP mailbox names

This commit is contained in:
Jesse Vincent 2011-01-05 13:12:30 +00:00
parent ead632aac6
commit 9f4790088e
2 changed files with 1 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -554,6 +554,7 @@ public class ImapStore extends Store
{ {
try try
{ {
name = name.replace("\\","\\\\"); // backslashs in folder names must be escaped
ByteBuffer bb = mModifiedUtf7Charset.encode(name); ByteBuffer bb = mModifiedUtf7Charset.encode(name);
byte[] b = new byte[bb.limit()]; byte[] b = new byte[bb.limit()];
bb.get(b); bb.get(b);