Minor syntax and comments improvements

This commit is contained in:
Francis Lachapelle
2014-06-05 12:14:34 -04:00
parent e118a72eab
commit fe38518a36
3 changed files with 5 additions and 4 deletions

View File

@@ -926,7 +926,7 @@ static NSString *userAgent = nil;
sourceEnvelope = [sourceMail envelope];
[self _fillInReplyAddresses: info replyToAll: toAll
envelope: sourceEnvelope];
envelope: sourceEnvelope];
msgID = [sourceEnvelope messageID];
if ([msgID length] > 0)
[self setInReplyTo: msgID];
@@ -982,7 +982,7 @@ static NSString *userAgent = nil;
@"message/rfc822", @"mimetype",
nil];
[self saveAttachment: [sourceMail content]
withMetadata: attachment];
withMetadata: attachment];
}
[self storeInfo];

View File

@@ -1264,6 +1264,8 @@ static NSArray *reminderValues = nil;
account = [folder lookupName: @"0" inContext: context acquire: NO];
if ([account updateFilters])
// If Sieve is not enabled, the SOGoSieveManager will immediatly return a positive answer
// See [SOGoSieveManager updateFiltersForAccount:withUsername:andPassword:]
results = [self responseWithStatus: 200
andJSONRepresentation: [NSDictionary dictionaryWithObjectsAndKeys: [NSNumber numberWithBool:hasChanged], @"hasChanged", nil]];

View File

@@ -1057,8 +1057,7 @@ _computeBlocksPosition (NSArray *blocks)
[self _prepareEventBlocks: &blocks withAllDays: &allDayBlocks];
events = [self _fetchFields: eventsFields
forComponentOfType: @"vevent"];
eventsBlocks
= [NSArray arrayWithObjects: events, allDayBlocks, blocks, nil];
eventsBlocks = [NSArray arrayWithObjects: events, allDayBlocks, blocks, nil];
max = [events count];
for (count = 0; count < max; count++)
{