Monotone-Parent: 10ffe772d1b4699a4fc8aa41c3f3354e492d3e35
Monotone-Revision: 2f3c94605759601f796021ed2469cb5eb7910364 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-03-30T15:01:55 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
5708eb23a3
commit
e8026e67c8
|
@ -1,5 +1,7 @@
|
||||||
2011-03-30 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
2011-03-30 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||||
|
|
||||||
|
* SoObjects/SOGo/SOGoBuild.m: export new SOGoVersion NSString.
|
||||||
|
|
||||||
* Main/SOGo.m (+initialize): moved most initialization code from
|
* Main/SOGo.m (+initialize): moved most initialization code from
|
||||||
-init and -run here since this method is invoked before forking
|
-init and -run here since this method is invoked before forking
|
||||||
and data memory is in "copy-on-write" mode, slightly reducing
|
and data memory is in "copy-on-write" mode, slightly reducing
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
# compile settings
|
# compile settings
|
||||||
|
|
||||||
ADDITIONAL_CPPFLAGS += \
|
ADDITIONAL_CPPFLAGS += \
|
||||||
-D_GNU_SOURCE \
|
-D_GNU_SOURCE
|
||||||
-DSOGO_MAJOR_VERSION=$(MAJOR_VERSION) \
|
|
||||||
-DSOGO_MINOR_VERSION=$(MINOR_VERSION) \
|
|
||||||
-DSOGO_SUBMINOR_VERSION=$(SUBMINOR_VERSION)
|
|
||||||
|
|
||||||
ADDITIONAL_INCLUDE_DIRS += \
|
ADDITIONAL_INCLUDE_DIRS += \
|
||||||
-I../SOPE/ \
|
-I../SOPE/ \
|
||||||
|
|
|
@ -106,9 +106,8 @@ static BOOL debugLeaks;
|
||||||
SoClassSecurityInfo *sInfo;
|
SoClassSecurityInfo *sInfo;
|
||||||
NSArray *basicRoles;
|
NSArray *basicRoles;
|
||||||
|
|
||||||
[self logWithFormat: @"version %d.%d.%d (build %@) -- starting",
|
[self logWithFormat: @"version %@ (build %@) -- starting",
|
||||||
SOGO_MAJOR_VERSION, SOGO_MINOR_VERSION, SOGO_SUBMINOR_VERSION,
|
SOGoVersion, SOGoBuildDate];
|
||||||
SOGoBuildDate];
|
|
||||||
|
|
||||||
defaults = [SOGoSystemDefaults sharedSystemDefaults];
|
defaults = [SOGoSystemDefaults sharedSystemDefaults];
|
||||||
doCrashOnSessionCreate = [defaults crashOnSessionCreate];
|
doCrashOnSessionCreate = [defaults crashOnSessionCreate];
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
#import <NGCards/iCalCalendar.h>
|
#import <NGCards/iCalCalendar.h>
|
||||||
#import <NGCards/iCalTimeZone.h>
|
#import <NGCards/iCalTimeZone.h>
|
||||||
|
|
||||||
|
#import <SOGo/SOGoBuild.h>
|
||||||
#import <SOGo/SOGoDomainDefaults.h>
|
#import <SOGo/SOGoDomainDefaults.h>
|
||||||
#import <SOGo/SOGoUser.h>
|
#import <SOGo/SOGoUser.h>
|
||||||
|
|
||||||
|
@ -220,7 +221,9 @@ static NSArray *contentFields = nil;
|
||||||
calendar = [iCalCalendar groupWithTag: @"vcalendar"];
|
calendar = [iCalCalendar groupWithTag: @"vcalendar"];
|
||||||
[calendar setMethod: @"PUBLISH"];
|
[calendar setMethod: @"PUBLISH"];
|
||||||
[calendar setVersion: @"2.0"];
|
[calendar setVersion: @"2.0"];
|
||||||
[calendar setProdID: @"-//Inverse inc./SOGo 1.0//EN"];
|
[calendar setProdID: [NSString stringWithFormat:
|
||||||
|
@"-//Inverse inc./SOGo %@//EN",
|
||||||
|
SOGoVersion]];
|
||||||
[calendar addChildren: [timeZones allValues]];
|
[calendar addChildren: [timeZones allValues]];
|
||||||
[calendar addChildren: components];
|
[calendar addChildren: components];
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,7 @@
|
||||||
#import <SOGo/NSObject+DAV.h>
|
#import <SOGo/NSObject+DAV.h>
|
||||||
#import <SOGo/NSObject+Utilities.h>
|
#import <SOGo/NSObject+Utilities.h>
|
||||||
#import <SOGo/NSString+Utilities.h>
|
#import <SOGo/NSString+Utilities.h>
|
||||||
|
#import <SOGo/SOGoBuild.h>
|
||||||
#import <SOGo/SOGoDomainDefaults.h>
|
#import <SOGo/SOGoDomainDefaults.h>
|
||||||
#import <SOGo/SOGoMailer.h>
|
#import <SOGo/SOGoMailer.h>
|
||||||
#import <SOGo/SOGoGroup.h>
|
#import <SOGo/SOGoGroup.h>
|
||||||
|
@ -428,7 +429,7 @@ static inline BOOL _occurenceHasID (iCalRepeatableEntityObject *occurence,
|
||||||
{
|
{
|
||||||
iCalRepeatableEntityObject *newComponent;
|
iCalRepeatableEntityObject *newComponent;
|
||||||
iCalCalendar **calendar, *returnedCopy;
|
iCalCalendar **calendar, *returnedCopy;
|
||||||
NSString *iCalString, *tag;
|
NSString *iCalString, *tag, *prodID;
|
||||||
|
|
||||||
if (secure)
|
if (secure)
|
||||||
calendar = &safeCalendar;
|
calendar = &safeCalendar;
|
||||||
|
@ -454,7 +455,10 @@ static inline BOOL _occurenceHasID (iCalRepeatableEntityObject *occurence,
|
||||||
{
|
{
|
||||||
ASSIGN (*calendar, [iCalCalendar groupWithTag: @"vcalendar"]);
|
ASSIGN (*calendar, [iCalCalendar groupWithTag: @"vcalendar"]);
|
||||||
[*calendar setVersion: @"2.0"];
|
[*calendar setVersion: @"2.0"];
|
||||||
[*calendar setProdID: @"-//Inverse inc./SOGo 1.0//EN"];
|
prodID = [NSString stringWithFormat:
|
||||||
|
@"-//Inverse inc./SOGo %@//EN",
|
||||||
|
SOGoVersion];
|
||||||
|
[*calendar setProdID: prodID];
|
||||||
tag = [[self componentTag] uppercaseString];
|
tag = [[self componentTag] uppercaseString];
|
||||||
newComponent = [[*calendar classForTag: tag]
|
newComponent = [[*calendar classForTag: tag]
|
||||||
groupWithTag: tag];
|
groupWithTag: tag];
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
#import <NGCards/iCalFreeBusy.h>
|
#import <NGCards/iCalFreeBusy.h>
|
||||||
#import <NGCards/iCalPerson.h>
|
#import <NGCards/iCalPerson.h>
|
||||||
|
|
||||||
|
#import <SOGo/SOGoBuild.h>
|
||||||
#import <SOGo/SOGoDomainDefaults.h>
|
#import <SOGo/SOGoDomainDefaults.h>
|
||||||
#import <SOGo/SOGoUser.h>
|
#import <SOGo/SOGoUser.h>
|
||||||
#import <SOGo/SOGoUserDefaults.h>
|
#import <SOGo/SOGoUserDefaults.h>
|
||||||
|
@ -106,7 +107,9 @@
|
||||||
user = [SOGoUser userWithLogin: login];
|
user = [SOGoUser userWithLogin: login];
|
||||||
|
|
||||||
calendar = [iCalCalendar groupWithTag: @"vcalendar"];
|
calendar = [iCalCalendar groupWithTag: @"vcalendar"];
|
||||||
[calendar setProdID: @"//Inverse inc./SOGo 1.0//EN"];
|
[calendar setProdID: [NSString stringWithFormat:
|
||||||
|
@"-//Inverse inc./SOGo %@//EN",
|
||||||
|
SOGoVersion]];
|
||||||
[calendar setVersion: @"2.0"];
|
[calendar setVersion: @"2.0"];
|
||||||
if (method)
|
if (method)
|
||||||
[calendar setMethod: method];
|
[calendar setMethod: method];
|
||||||
|
|
|
@ -28,6 +28,8 @@
|
||||||
#import <NGCards/NGVCard.h>
|
#import <NGCards/NGVCard.h>
|
||||||
#import <NGCards/CardVersitRenderer.h>
|
#import <NGCards/CardVersitRenderer.h>
|
||||||
|
|
||||||
|
#import <SOGo/SOGoBuild.h>
|
||||||
|
|
||||||
#import "SOGoContactGCSEntry.h"
|
#import "SOGoContactGCSEntry.h"
|
||||||
#import "SOGoContactLDIFEntry.h"
|
#import "SOGoContactLDIFEntry.h"
|
||||||
|
|
||||||
|
@ -115,7 +117,9 @@
|
||||||
{
|
{
|
||||||
vcard = [[NGVCard alloc] initWithUid: [self nameInContainer]];
|
vcard = [[NGVCard alloc] initWithUid: [self nameInContainer]];
|
||||||
[vcard setVClass: @"PUBLIC"];
|
[vcard setVClass: @"PUBLIC"];
|
||||||
[vcard setProdID: @"-//Inverse inc./SOGo 1.0//EN"];
|
[vcard setProdID: [NSString
|
||||||
|
stringWithFormat: @"-//Inverse inc./SOGo %@//EN",
|
||||||
|
SOGoVersion]];
|
||||||
[vcard setProfile: @"VCARD"];
|
[vcard setProfile: @"VCARD"];
|
||||||
info = [ldifEntry objectForKey: @"c_cn"];
|
info = [ldifEntry objectForKey: @"c_cn"];
|
||||||
if (![info length])
|
if (![info length])
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
# compilation settings
|
# compilation settings
|
||||||
|
|
||||||
SOGo_INCLUDE_DIRS += -I.. -I../../UI -DSOGO_MAJOR_VERSION="\"$(MAJOR_VERSION)\"" -DSOGO_MINOR_VERSION="\"$(MINOR_VERSION)\""
|
SOGo_INCLUDE_DIRS += -I.. -I../../UI \
|
||||||
|
-DSOGO_MAJOR_VERSION="@\"$(MAJOR_VERSION)\"" \
|
||||||
|
-DSOGO_MINOR_VERSION="@\"$(MINOR_VERSION)\"" \
|
||||||
|
-DSOGO_SUBMINOR_VERSION="@\"$(SUBMINOR_VERSION)\""
|
||||||
|
|
||||||
HOSTNAME = $(shell hostname -f)
|
HOSTNAME = $(shell hostname -f)
|
||||||
BUILD_DATE = $(shell echo $$USER@$(HOSTNAME); date +"%Y%m%d%H%M")
|
BUILD_DATE = $(shell echo $$USER@$(HOSTNAME); date +"%Y%m%d%H%M")
|
||||||
|
|
|
@ -24,5 +24,6 @@
|
||||||
#define BUILD_H
|
#define BUILD_H
|
||||||
|
|
||||||
extern NSString *SOGoBuildDate;
|
extern NSString *SOGoBuildDate;
|
||||||
|
extern NSString *SOGoVersion;
|
||||||
|
|
||||||
#endif /* BUILD_H */
|
#endif /* BUILD_H */
|
||||||
|
|
|
@ -23,3 +23,6 @@
|
||||||
#import <Foundation/NSString.h>
|
#import <Foundation/NSString.h>
|
||||||
|
|
||||||
NSString *SOGoBuildDate = SOGO_BUILD_DATE;
|
NSString *SOGoBuildDate = SOGO_BUILD_DATE;
|
||||||
|
NSString *SOGoVersion = (SOGO_MAJOR_VERSION
|
||||||
|
@"." SOGO_MINOR_VERSION
|
||||||
|
@"." SOGO_SUBMINOR_VERSION);
|
||||||
|
|
|
@ -38,6 +38,7 @@
|
||||||
#import <NGImap4/NGImap4EnvelopeAddress.h>
|
#import <NGImap4/NGImap4EnvelopeAddress.h>
|
||||||
|
|
||||||
#import <SOGo/NSString+Utilities.h>
|
#import <SOGo/NSString+Utilities.h>
|
||||||
|
#import <SOGo/SOGoBuild.h>
|
||||||
#import <SOGo/SOGoMailer.h>
|
#import <SOGo/SOGoMailer.h>
|
||||||
#import <SOGo/SOGoUser.h>
|
#import <SOGo/SOGoUser.h>
|
||||||
#import <SOGo/SOGoUserDefaults.h>
|
#import <SOGo/SOGoUserDefaults.h>
|
||||||
|
@ -399,10 +400,7 @@ static NSString *mailETag = nil;
|
||||||
[map release];
|
[map release];
|
||||||
|
|
||||||
mdnPartMessage = [[NSMutableString alloc] initWithCapacity: 100];
|
mdnPartMessage = [[NSMutableString alloc] initWithCapacity: 100];
|
||||||
[mdnPartMessage appendFormat: @"Reporting-UA: SOGoMail %d.%d.%d\n",
|
[mdnPartMessage appendFormat: @"Reporting-UA: SOGoMail %@\n", SOGoVersion];
|
||||||
SOGO_MAJOR_VERSION,
|
|
||||||
SOGO_MINOR_VERSION,
|
|
||||||
SOGO_SUBMINOR_VERSION];
|
|
||||||
[mdnPartMessage appendFormat: @"Final-Recipient: rfc822;%@\n",
|
[mdnPartMessage appendFormat: @"Final-Recipient: rfc822;%@\n",
|
||||||
[self _matchingIdentityEMail]];
|
[self _matchingIdentityEMail]];
|
||||||
messageId = [[self clientObject] messageId];
|
messageId = [[self clientObject] messageId];
|
||||||
|
|
Loading…
Reference in New Issue