Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion MailKit/Net/Imap/ImapUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ namespace MailKit.Net.Imap {
static class ImapUtils
{
static readonly Encoding Latin1 = Encoding.GetEncoding (28591);
const string FolderSpecialChars = "*/\\\"\n\t";
const string QuotedSpecials = " \t()<>@,;:\\\"/[]?=";
static int InboxLength = "INBOX".Length;

Expand Down Expand Up @@ -431,7 +432,7 @@ public static void ParseFolderList (ImapEngine engine, ImapCommand ic, int index
}

// parse the folder name
token = engine.ReadToken (ic.CancellationToken);
token = engine.ReadToken (FolderSpecialChars, ic.CancellationToken);

switch (token.Type) {
case ImapTokenType.Literal:
Expand Down