Monotone-Parent: 4f6055656f29743c9da3d3dcce84f449939717bf

Monotone-Revision: 60ad639c204e75de92c1111a09d2ecfe2cbd655b

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-07-11T17:53:09
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-07-11 17:53:09 +00:00
parent 77d9730062
commit fcd86bfa96
10 changed files with 147 additions and 97 deletions

View File

@@ -102,11 +102,20 @@ static NSArray *headers = nil;
/* accessors */
- (void)setTo:(NSArray *)_to {
- (void)setTo:(NSArray *)_to
{
_to = [self properlySplitAddresses:_to];
ASSIGNCOPY(self->to, _to);
}
- (NSArray *)to {
- (NSArray *) to
{
NSString *mailto;
mailto = [self queryParameterForKey:@"mailto"];
if ([mailto length] > 0 && ![to count])
to = [NSArray arrayWithObject: mailto];
return self->to;
}
@@ -114,6 +123,7 @@ static NSArray *headers = nil;
_cc = [self properlySplitAddresses:_cc];
ASSIGNCOPY(self->cc, _cc);
}
- (NSArray *)cc {
return self->cc;
}