mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-15 19:55:56 +00:00
Monotone-Parent: 283b38ddff29574db2599411b54c62d3643b3b5a
Monotone-Revision: 035a671feed8f154d8e786d8b3761b3e87ac550d Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-08-04T15:54:05 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -309,6 +309,44 @@ e)
|
||||
[self _saveAttachment: [attachmentKeys objectAtIndex: count]];
|
||||
}
|
||||
|
||||
- (int) getPrReceivedByEmailAddress: (void **) data
|
||||
inMemCtx: (TALLOC_CTX *) memCtx
|
||||
{
|
||||
NSString *stringValue;
|
||||
NGMailAddress *currentAddress;
|
||||
NGMailAddressParser *parser;
|
||||
NSArray *to;
|
||||
|
||||
if ([sogoObject isKindOfClass: SOGoDraftObjectK])
|
||||
{
|
||||
stringValue = @"";
|
||||
|
||||
if (!headerSetup)
|
||||
{
|
||||
[sogoObject fetchInfo];
|
||||
headerSetup = YES;
|
||||
}
|
||||
|
||||
to = [[sogoObject headers] objectForKey: @"to"];
|
||||
if ([to count] > 0)
|
||||
{
|
||||
parser = [NGMailAddressParser
|
||||
mailAddressParserWithString: [to objectAtIndex: 0]];
|
||||
currentAddress = [parser parse];
|
||||
if ([currentAddress isKindOfClass: NGMailAddressK])
|
||||
{
|
||||
stringValue = [currentAddress address];
|
||||
if (!stringValue)
|
||||
stringValue = @"";
|
||||
}
|
||||
}
|
||||
*data = [stringValue asUnicodeInMemCtx: memCtx];
|
||||
}
|
||||
else
|
||||
[super getPrReceivedByEmailAddress: data inMemCtx: memCtx];
|
||||
|
||||
return MAPISTORE_SUCCESS;
|
||||
}
|
||||
|
||||
- (NSArray *) attachmentKeysMatchingQualifier: (EOQualifier *) qualifier
|
||||
andSortOrderings: (NSArray *) sortOrderings
|
||||
|
||||
Reference in New Issue
Block a user