Skip to content

Commit

Permalink
Fixed filtering logic in ImapFolder.GetSubfolders()
Browse files Browse the repository at this point in the history
Fixes issue #255
  • Loading branch information
jstedfast committed Oct 27, 2015
1 parent 263f056 commit 195a6ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MailKit/Net/Imap/ImapFolder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ public override IEnumerable<IMailFolder> GetSubfolders (bool subscribedOnly = fa
prefix = ImapUtils.CanonicalizeMailboxName (prefix, DirectorySeparator);
foreach (var folder in list) {
var canonicalFullName = ImapUtils.CanonicalizeMailboxName (folder.FullName, folder.DirectorySeparator);
var canonicalName = ImapUtils.IsInbox (folder.Name) ? "INBOX" : folder.Name;
var canonicalName = ImapUtils.IsInbox (folder.FullName) ? "INBOX" : folder.Name;

if (canonicalFullName != prefix + canonicalName)
continue;
Expand Down

0 comments on commit 195a6ae

Please sign in to comment.