see changelog

Monotone-Parent: a9323afc29bd494143d2c78639e7a02f3d3804cb
Monotone-Revision: 1af347fe96abc17587172e207fcbf80e98d7f6f8

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2008-08-22T13:52:24
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Ludovic Marcotte
2008-08-22 13:52:24 +00:00
parent c10afe743c
commit 98d6032638
5 changed files with 51 additions and 11 deletions
@@ -22,6 +22,8 @@
#import <NGImap4/NGImap4Envelope.h>
#import <NGImap4/NGImap4EnvelopeAddress.h>
#import <NGExtensions/NSString+Encoding.h>
#import <SoObjects/Mailer/NSData+Mail.h>
#import <SoObjects/Mailer/NSString+Mail.h>
@@ -154,7 +156,13 @@
NSString *subject;
baseSubject = [[self envelope] subject];
// We avoid uber-lamenesses in SOPE - see sope-core/NGExtensions/NGQuotedPrintableCoding.m
// -stringByDecodingQuotedPrintable for all details
if ([baseSubject isKindOfClass: [NSString class]])
baseSubject = [baseSubject dataUsingEncoding: NSASCIIStringEncoding];
subject = [baseSubject decodedSubject];
if (![subject length])
subject = [self labelForKey: @"Untitled"];