(fix) find the proper container (fixes #4371)

This commit is contained in:
Ludovic Marcotte
2018-01-11 11:10:35 -05:00
parent 8d0f419acf
commit 5767419554
+10 -1
View File
@@ -292,7 +292,16 @@ static BOOL debugOn = NO;
- (NSData *) fetchBLOB
{
if ([[self container] isEncrypted])
id o;
// We check if the associated SOGoMailObject is encrypted, we must navigate
// in the container list until we find the proper container.
o = [self container];
while (![o isKindOfClass: [SOGoMailObject class]])
o = [o container];
if ([o isEncrypted])
{
NSData *certificate;