Ticket #13298: 0001-Removed-INBOX-check-inside-IMAP-protocol-s-GetFolder.patch

File 0001-Removed-INBOX-check-inside-IMAP-protocol-s-GetFolder.patch, 1.1 KB (added by davewthompson, 7 years ago)

Patch file to remove inbox

  • src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/Protocol.cpp

    From 03634eabd071cc3ec51b93de01439ccf470e904a Mon Sep 17 00:00:00 2001
    From: Dave Thompson <dwt@outlook.com>
    Date: Wed, 1 Mar 2017 09:59:37 +0000
    Subject: [PATCH 1/1] Removed INBOX check inside IMAP protocol's GetFolder
     method
    
    ---
     src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/Protocol.cpp | 3 +--
     1 file changed, 1 insertion(+), 2 deletions(-)
    
    diff --git a/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/Protocol.cpp b/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/Protocol.cpp
    index 61c98c0..3e070f3 100644
    a b Protocol::GetFolders(FolderList& folders, BString& separator)  
    166166        FolderEntry entry;
    167167        entry.folder = allFolders.StringAt(i);
    168168        for (int32 j = 0; j < subscribedFolders.CountStrings(); j++) {
    169             if (entry.folder == subscribedFolders.StringAt(j)
    170                 || entry.folder.ICompare("INBOX") == 0) {
     169            if (entry.folder == subscribedFolders.StringAt(j)) {
    171170                entry.subscribed = true;
    172171                break;
    173172            }