mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-13 15:57:12 +00:00
Merge pull request #201 from inverse-inc/warning-removal-again
Warning removal, next part.
This commit is contained in:
commit
9d5de9afb7
14 files changed
+43
-23
No files matched your search
@@ -339,7 +339,7 @@ size_t curl_body_function_freebusy(void *ptr, size_t size, size_t nmemb, void *i
|
|||||||
NSMutableString *s;
|
NSMutableString *s;
|
||||||
|
|
||||||
s = [NSMutableString stringWithCapacity: 64];
|
s = [NSMutableString stringWithCapacity: 64];
|
||||||
[s appendFormat:@"<0x%08X[%@]:", (unsigned int)self, NSStringFromClass([self class])];
|
[s appendFormat:@"<%p[%@]:", self, NSStringFromClass([self class])];
|
||||||
if (freeBusyViewType)
|
if (freeBusyViewType)
|
||||||
[s appendFormat:@" freeBusyViewType='%@'", freeBusyViewType];
|
[s appendFormat:@" freeBusyViewType='%@'", freeBusyViewType];
|
||||||
if (mergedFreeBusy)
|
if (mergedFreeBusy)
|
||||||
|
|||||||
@@ -130,6 +130,16 @@
|
|||||||
return aclManager;
|
return aclManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void) setIsNew: (BOOL) newIsNew
|
||||||
|
{
|
||||||
|
[super setIsNew: newIsNew];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (BOOL) isNew
|
||||||
|
{
|
||||||
|
return [super isNew];
|
||||||
|
}
|
||||||
|
|
||||||
- (NSException *) changeParticipationStatus: (NSString *) newPartStat
|
- (NSException *) changeParticipationStatus: (NSString *) newPartStat
|
||||||
withDelegate: (iCalPerson *) delegate
|
withDelegate: (iCalPerson *) delegate
|
||||||
alarm: (iCalAlarm *) alarm
|
alarm: (iCalAlarm *) alarm
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ extern NSNumber *iCalDistantFutureNumber;
|
|||||||
|
|
||||||
- (iCalPerson *) participantForUser: (SOGoUser *) theUser
|
- (iCalPerson *) participantForUser: (SOGoUser *) theUser
|
||||||
attendee: (iCalPerson *) theAttendee;
|
attendee: (iCalPerson *) theAttendee;
|
||||||
- (NSArray *) attendeeUIDs;
|
/* - (NSArray *) attendeeUIDs; */
|
||||||
- (BOOL) isStillRelevant;
|
- (BOOL) isStillRelevant;
|
||||||
|
|
||||||
- (id) itipEntryWithMethod: (NSString *) method;
|
- (id) itipEntryWithMethod: (NSString *) method;
|
||||||
|
|||||||
@@ -114,7 +114,7 @@
|
|||||||
- (NSArray *) allBareRecipients;
|
- (NSArray *) allBareRecipients;
|
||||||
|
|
||||||
- (NSException *) delete;
|
- (NSException *) delete;
|
||||||
- (NSException *) sendMail;
|
/* - (NSException *) sendMail; */
|
||||||
- (NSException *) sendMailAndCopyToSent: (BOOL) copyToSent; /* default: YES */
|
- (NSException *) sendMailAndCopyToSent: (BOOL) copyToSent; /* default: YES */
|
||||||
- (NSException *) save;
|
- (NSException *) save;
|
||||||
|
|
||||||
|
|||||||
@@ -69,6 +69,7 @@
|
|||||||
|
|
||||||
#import "SOGoDraftObject.h"
|
#import "SOGoDraftObject.h"
|
||||||
|
|
||||||
|
|
||||||
static NSString *contentTypeValue = @"text/plain; charset=utf-8";
|
static NSString *contentTypeValue = @"text/plain; charset=utf-8";
|
||||||
static NSString *htmlContentTypeValue = @"text/html; charset=utf-8";
|
static NSString *htmlContentTypeValue = @"text/html; charset=utf-8";
|
||||||
static NSString *headerKeys[] = {@"subject", @"to", @"cc", @"bcc",
|
static NSString *headerKeys[] = {@"subject", @"to", @"cc", @"bcc",
|
||||||
@@ -1115,7 +1116,7 @@ static NSString *userAgent = nil;
|
|||||||
pmime = [self pathToAttachmentWithName: [NSString stringWithFormat: @".%@.mime", name]];
|
pmime = [self pathToAttachmentWithName: [NSString stringWithFormat: @".%@.mime", name]];
|
||||||
if (![[mimeType dataUsingEncoding: NSUTF8StringEncoding] writeToFile: pmime atomically: YES])
|
if (![[mimeType dataUsingEncoding: NSUTF8StringEncoding] writeToFile: pmime atomically: YES])
|
||||||
{
|
{
|
||||||
[[NSFileManager defaultManager] removeItemAtPath: p error: nil];
|
[[NSFileManager defaultManager] removeItemAtPath: p error: NULL];
|
||||||
return [NSException exceptionWithHTTPStatus: 500 /* Server Error */
|
return [NSException exceptionWithHTTPStatus: 500 /* Server Error */
|
||||||
reason: @"Could not write attachment to draft!"];
|
reason: @"Could not write attachment to draft!"];
|
||||||
}
|
}
|
||||||
@@ -1782,6 +1783,7 @@ static NSString *userAgent = nil;
|
|||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
/*
|
||||||
- (NSException *) sendMail
|
- (NSException *) sendMail
|
||||||
{
|
{
|
||||||
SOGoUserDefaults *ud;
|
SOGoUserDefaults *ud;
|
||||||
@@ -1843,6 +1845,7 @@ static NSString *userAgent = nil;
|
|||||||
}
|
}
|
||||||
return [self sendMailAndCopyToSent: YES];
|
return [self sendMailAndCopyToSent: YES];
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -234,7 +234,7 @@
|
|||||||
labelNode = [labelNodes objectAtIndex: count];
|
labelNode = [labelNodes objectAtIndex: count];
|
||||||
|
|
||||||
label = [labelNode attribute: @"id"];
|
label = [labelNode attribute: @"id"];
|
||||||
name = [labelNode textValue];
|
name = [[labelNode firstChild] nodeValue];
|
||||||
color = [labelNode attribute: @"color"];
|
color = [labelNode attribute: @"color"];
|
||||||
|
|
||||||
[values addObject: name];
|
[values addObject: name];
|
||||||
|
|||||||
@@ -99,8 +99,8 @@
|
|||||||
|
|
||||||
- (NSString *) davCollectionTag;
|
- (NSString *) davCollectionTag;
|
||||||
|
|
||||||
- (NSArray *) syncTokenFieldsWithProperties: (NSDictionary *) properties
|
- (NSArray *) syncTokenFieldsWithProperties: (NSDictionary *) theProperties
|
||||||
matchingSyncToken: (NSString *) syncToken
|
matchingSyncToken: (NSString *) theSyncToken
|
||||||
fromDate: (NSCalendarDate *) theStartDate
|
fromDate: (NSCalendarDate *) theStartDate
|
||||||
initialLoad: (BOOL) initialLoadInProgress;
|
initialLoad: (BOOL) initialLoadInProgress;
|
||||||
/* flags */
|
/* flags */
|
||||||
|
|||||||
@@ -895,7 +895,7 @@ _compareFetchResultsByMODSEQ (id entry1, id entry2, void *data)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return error;
|
return (WOResponse *) error;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSDictionary *) statusForFlags: (NSArray *) flags
|
- (NSDictionary *) statusForFlags: (NSArray *) flags
|
||||||
@@ -2234,7 +2234,7 @@ _compareFetchResultsByMODSEQ (id entry1, id entry2, void *data)
|
|||||||
//
|
//
|
||||||
// FIXME: refactor MAPIStoreMailFolder.m - synchroniseCache to use this method
|
// FIXME: refactor MAPIStoreMailFolder.m - synchroniseCache to use this method
|
||||||
//
|
//
|
||||||
- (NSArray *) syncTokenFieldsWithProperties: (NSArray *) theProperties
|
- (NSArray *) syncTokenFieldsWithProperties: (NSDictionary *) theProperties
|
||||||
matchingSyncToken: (NSString *) theSyncToken
|
matchingSyncToken: (NSString *) theSyncToken
|
||||||
fromDate: (NSCalendarDate *) theStartDate
|
fromDate: (NSCalendarDate *) theStartDate
|
||||||
initialLoad: (BOOL) initialLoadInProgress
|
initialLoad: (BOOL) initialLoadInProgress
|
||||||
@@ -2245,18 +2245,13 @@ _compareFetchResultsByMODSEQ (id entry1, id entry2, void *data)
|
|||||||
NSDictionary *d;
|
NSDictionary *d;
|
||||||
id fetchResults;
|
id fetchResults;
|
||||||
|
|
||||||
int uidnext, highestmodseq, i;
|
int highestmodseq = 0, i;
|
||||||
|
|
||||||
allTokens = [NSMutableArray array];
|
allTokens = [NSMutableArray array];
|
||||||
|
|
||||||
if ([theSyncToken isEqualToString: @"-1"])
|
if (![theSyncToken isEqualToString: @"-1"])
|
||||||
{
|
|
||||||
uidnext = highestmodseq = 0;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
a = [theSyncToken componentsSeparatedByString: @"-"];
|
a = [theSyncToken componentsSeparatedByString: @"-"];
|
||||||
uidnext = [[a objectAtIndex: 0] intValue];
|
|
||||||
highestmodseq = [[a objectAtIndex: 1] intValue];
|
highestmodseq = [[a objectAtIndex: 1] intValue];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -600,7 +600,7 @@ static NSDictionary *BSONTypes()
|
|||||||
|
|
||||||
/* We may have the zone using the UTC offset
|
/* We may have the zone using the UTC offset
|
||||||
or abbreviation (deprecated) */
|
or abbreviation (deprecated) */
|
||||||
if (timezone && strlen(timezone) > 0 && (timezone[0] == '+' || timezone[0] == '-'))
|
if (strlen(timezone) > 0 && (timezone[0] == '+' || timezone[0] == '-'))
|
||||||
{
|
{
|
||||||
NSCalendarDate *tzDate;
|
NSCalendarDate *tzDate;
|
||||||
|
|
||||||
|
|||||||
@@ -1043,8 +1043,8 @@
|
|||||||
if (nameInContainer)
|
if (nameInContainer)
|
||||||
[_ms appendFormat:@" name=%@", nameInContainer];
|
[_ms appendFormat:@" name=%@", nameInContainer];
|
||||||
if (container)
|
if (container)
|
||||||
[_ms appendFormat:@" container=0x%08X/%@",
|
[_ms appendFormat:@" container=%p/%@",
|
||||||
(unsigned int)container, [container valueForKey:@"nameInContainer"]];
|
container, [container valueForKey:@"nameInContainer"]];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSString *) description
|
- (NSString *) description
|
||||||
@@ -1052,7 +1052,7 @@
|
|||||||
NSMutableString *ms;
|
NSMutableString *ms;
|
||||||
|
|
||||||
ms = [NSMutableString stringWithCapacity:64];
|
ms = [NSMutableString stringWithCapacity:64];
|
||||||
[ms appendFormat:@"<0x%08X[%@]:", (unsigned int) self, NSStringFromClass([self class])];
|
[ms appendFormat:@"<%p[%@]:", self, NSStringFromClass([self class])];
|
||||||
[self appendAttributesToDescription:ms];
|
[self appendAttributesToDescription:ms];
|
||||||
[ms appendString:@">"];
|
[ms appendString:@">"];
|
||||||
|
|
||||||
@@ -1061,8 +1061,8 @@
|
|||||||
|
|
||||||
- (NSString *) loggingPrefix
|
- (NSString *) loggingPrefix
|
||||||
{
|
{
|
||||||
return [NSString stringWithFormat:@"<0x%08X[%@]:%@>",
|
return [NSString stringWithFormat:@"<%p[%@]:%@>",
|
||||||
(unsigned int) self, NSStringFromClass([self class]),
|
self, NSStringFromClass([self class]),
|
||||||
[self nameInContainer]];
|
[self nameInContainer]];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -91,6 +91,7 @@
|
|||||||
test ([obtained compare: expected] == NSOrderedSame);
|
test ([obtained compare: expected] == NSOrderedSame);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
locale = nil;
|
||||||
result = [parser objectWithString: @"[ -312.3456 ]"];
|
result = [parser objectWithString: @"[ -312.3456 ]"];
|
||||||
obtained = [result objectAtIndex: 0];
|
obtained = [result objectAtIndex: 0];
|
||||||
expected = [NSDecimalNumber decimalNumberWithString: @"-312.3456" locale: locale];
|
expected = [NSDecimalNumber decimalNumberWithString: @"-312.3456" locale: locale];
|
||||||
|
|||||||
@@ -39,6 +39,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (iCalEvent *) authorativeEvent;
|
- (iCalEvent *) authorativeEvent;
|
||||||
|
- (NSString *) endDate;
|
||||||
|
- (NSString *) endTime;
|
||||||
|
- (NSString *) startDate;
|
||||||
|
- (NSString *) startTime;
|
||||||
|
- (BOOL) isEndDateOnSameDay;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|||||||
@@ -869,7 +869,7 @@ static NSArray *infoKeys = nil;
|
|||||||
{
|
{
|
||||||
error = [self validateForSend];
|
error = [self validateForSend];
|
||||||
if (!error)
|
if (!error)
|
||||||
error = [co sendMail];
|
error = [co sendMailAndCopyToSent: YES];
|
||||||
else
|
else
|
||||||
error = [self failedToSaveFormResponse: [error reason]];
|
error = [self failedToSaveFormResponse: [error reason]];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,9 +21,15 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#import <Foundation/NSValue.h>
|
#import <Foundation/NSValue.h>
|
||||||
|
|
||||||
|
#import <NGHttp/NGHttpRequest.h>
|
||||||
#import <NGObjWeb/NSException+HTTP.h>
|
#import <NGObjWeb/NSException+HTTP.h>
|
||||||
|
#define COMPILING_NGOBJWEB 1 /* httpRequest is needed in
|
||||||
|
importAction */
|
||||||
#import <NGObjWeb/WORequest.h>
|
#import <NGObjWeb/WORequest.h>
|
||||||
|
#undef COMPILING_NGOBJWEB
|
||||||
#import <NGObjWeb/WOResponse.h>
|
#import <NGObjWeb/WOResponse.h>
|
||||||
|
#import <NGMime/NGMimeMultipartBody.h>
|
||||||
|
|
||||||
#import <NGCards/iCalCalendar.h>
|
#import <NGCards/iCalCalendar.h>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user