See ChangeLog.

Monotone-Parent: 20ed9d28f7e0284da6a03803be4b44515ff13153
Monotone-Revision: 84638520098e5b0e2cebc6efed95a3c49beac705

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2012-07-25T15:31:40
maint-2.0.2
Francis Lachapelle 2012-07-25 15:31:40 +00:00
parent 31e71ae502
commit 36bde4e042
2 changed files with 21 additions and 19 deletions

View File

@ -1,5 +1,9 @@
2012-07-25 Francis Lachapelle <flachapelle@inverse.ca>
* SoObjects/SOGo/SOGoSieveManager.m
(-updateFiltersForLogin:authname:password:account:): write the
filters before the vacation auto-reply.
* SoObjects/Appointments/SOGoCalendarComponent.m
(-sendEMailUsingTemplateNamed:forObject:previousObject:toAttendees:withType:):
fixed the from header when the updated event has no mode organizer.

View File

@ -644,13 +644,26 @@ static NSString *sieveScriptName = @"sogo";
script = [NSMutableString string];
// Right now, we handle Sieve filters here and only for vacation
// and forwards. Traditional filters support (for fileinto, for
// example) will be added later.
values = [ud vacationOptions];
// We first handle filters
filterScript = [self sieveScriptWithRequirements: req];
if (filterScript)
{
if ([filterScript length])
{
b = YES;
[script appendString: filterScript];
}
}
else
{
NSLog(@"Sieve generation failure: %@", [self lastScriptError]);
return NO;
}
// We handle vacation messages.
// See http://ietfreport.isoc.org/idref/draft-ietf-sieve-vacation/
values = [ud vacationOptions];
if (values && [[values objectForKey: @"enabled"] boolValue])
{
NSArray *addresses;
@ -717,21 +730,6 @@ static NSString *sieveScriptName = @"sogo";
[script appendString: @"keep;\r\n"];
}
filterScript = [self sieveScriptWithRequirements: req];
if (filterScript)
{
if ([filterScript length])
{
b = YES;
[script appendString: filterScript];
}
}
else
{
NSLog(@"Sieve generation failure: %@", [self lastScriptError]);
return NO;
}
if ([req count])
{
header = [NSString stringWithFormat: @"require [\"%@\"];\r\n",