fix(mail): identify junk mailbox in lookup

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

View File

@@ -1,6 +1,6 @@
/* 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
* it under the terms of the GNU General Public License as published by
@@ -49,6 +49,9 @@
else if ([fullFolderName isEqualToString:
[mailAccount trashFolderNameInContext: _ctx]])
className = @"SOGoTrashFolder";
else if ([fullFolderName isEqualToString:
[mailAccount junkFolderNameInContext: _ctx]])
className = @"SOGoJunkFolder";
/* else if ([folderName isEqualToString:
[mailAccount sieveFolderNameInContext: _ctx]])
obj = [self lookupFiltersFolder: _key inContext: _ctx]; */

View File

@@ -44,6 +44,9 @@
SOGoTrashFolder = {
superclass = "SOGoMailFolder";
};
SOGoJunkFolder = {
superclass = "SOGoMailFolder";
};
SOGoMailObject = {
superclass = "SOGoMailBaseObject";
};