fix(mail): identify junk mailbox in lookup

Fixes #5482
This commit is contained in:
Francis Lachapelle committed 2022-02-16 08:35:07 -05:00
1 parent 401a80078c
commit 557ff59ea5
2 files changed
+7 -1

No files matched your search

+4 -1
View File
@@ -1,6 +1,6 @@
/* SOGoMailNamespace.m - this file is part of SOGo /* SOGoMailNamespace.m - this file is part of SOGo
* *
* Copyright (C) 2010-2013 Inverse inc. * Copyright (C) 2010-2022 Inverse inc.
* *
* This file is free software; you can redistribute it and/or modify * This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@@ -49,6 +49,9 @@
else if ([fullFolderName isEqualToString: else if ([fullFolderName isEqualToString:
[mailAccount trashFolderNameInContext: _ctx]]) [mailAccount trashFolderNameInContext: _ctx]])
className = @"SOGoTrashFolder"; className = @"SOGoTrashFolder";
else if ([fullFolderName isEqualToString:
[mailAccount junkFolderNameInContext: _ctx]])
className = @"SOGoJunkFolder";
/* else if ([folderName isEqualToString: /* else if ([folderName isEqualToString:
[mailAccount sieveFolderNameInContext: _ctx]]) [mailAccount sieveFolderNameInContext: _ctx]])
obj = [self lookupFiltersFolder: _key inContext: _ctx]; */ obj = [self lookupFiltersFolder: _key inContext: _ctx]; */
+3
View File
@@ -44,6 +44,9 @@
SOGoTrashFolder = { SOGoTrashFolder = {
superclass = "SOGoMailFolder"; superclass = "SOGoMailFolder";
}; };
SOGoJunkFolder = {
superclass = "SOGoMailFolder";
};
SOGoMailObject = { SOGoMailObject = {
superclass = "SOGoMailBaseObject"; superclass = "SOGoMailBaseObject";
}; };