diff --git a/SoObjects/SOGo/SOGoUser.m b/SoObjects/SOGo/SOGoUser.m index 27cee8ba9..fc224abaf 100644 --- a/SoObjects/SOGo/SOGoUser.m +++ b/SoObjects/SOGo/SOGoUser.m @@ -1109,9 +1109,10 @@ static const NSString *kEncryptedUserNamePrefix = @"uenc"; tmpIdentities = [NSMutableArray array]; for (identity in identities) { tmpIdentity = [NSMutableDictionary dictionaryWithDictionary: identity]; - if ([tmpIdentity objectForKey: @"signature"]) { + if ([tmpIdentity objectForKey: @"signature"] ) { // Add raw html embed class - if ([[tmpIdentity objectForKey: @"signature"] rangeOfString:@"raw-html-embed"].location == NSNotFound) { + if ([[tmpIdentity objectForKey: @"signature"] rangeOfString:@"raw-html-embed"].location == NSNotFound + && [[[self userDefaults] mailComposeMessageType] isEqualToString: @"html"]) { signature = [NSString stringWithFormat:@"
", [tmpIdentity objectForKey: @"signature"]]; [tmpIdentity setObject:signature forKey:@"signature"]; }