See ChangeLog

Monotone-Parent: e0268121f41f4a9ac6226ffcf9e54efb36a9d2d3
Monotone-Revision: 5ca46341daec14901e918e991004a22b7ada9f49

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2008-09-28T14:02:40
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Ludovic Marcotte
2008-09-28 14:02:40 +00:00
parent 7693e9df82
commit 26e2ab38de
15 changed files with 700 additions and 340 deletions
+28 -3
View File
@@ -181,7 +181,7 @@ static BOOL showTextAttachmentsInline = NO;
{
id headerValue;
unsigned int count;
NSString *messageID;
NSString *messageID, *priority;
for (count = 0; count < 8; count++)
{
@@ -199,6 +199,29 @@ static BOOL showTextAttachmentsInline = NO;
messageID = [self _generateMessageID];
[headers setObject: messageID forKey: @"message-id"];
}
priority = [newHeaders objectForKey: @"priority"];
if (!priority || [priority isEqualToString: @"NORMAL"])
{
[headers removeObjectForKey: @"X-Priority"];
}
else if ([priority isEqualToString: @"HIGHEST"])
{
[headers setObject: @"1 (Highest)" forKey: @"X-Priority"];
}
else if ([priority isEqualToString: @"HIGH"])
{
[headers setObject: @"2 (High)" forKey: @"X-Priority"];
}
else if ([priority isEqualToString: @"LOW"])
{
[headers setObject: @"4 (Low)" forKey: @"X-Priority"];
}
else
{
[headers setObject: @"5 (Lowest)" forKey: @"X-Priority"];
}
}
- (NSDictionary *) headers
@@ -1235,8 +1258,10 @@ static BOOL showTextAttachmentsInline = NO;
[map addObject: userAgent forKey: @"User-Agent"];
/* add custom headers */
// [self _addHeaders: [lInfo objectForKey: @"headers"] toHeaderMap:map];
if ([(s = [headers objectForKey: @"X-Priority"]) length] > 0)
[map setObject: s
forKey: @"X-Priority"];
[self _addHeaders: _headers toHeaderMap: map];
return map;