mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-22 21:39:28 +00:00
Monotone-Parent: 152425578a61ed0c1e8f2003e50224ca4097e4b4
Monotone-Revision: 4aae300745a9f879663e6201551f31afbe4aa8ff Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-12-12T15:57:40 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2007-12-12 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/SOGo/SOGoContentObject.m ([SOGoContentObject
|
||||
-davCreationDate])
|
||||
([SOGoContentObject -davLastModified])
|
||||
([SOGoContentObject -davContentLength]): implemented dav methods.
|
||||
|
||||
2007-12-10 Francis Lachapelle <flachapelle@inverse.ca>
|
||||
|
||||
* SoObjects/Mailer/SOGoMailBodyPart.m ([SOGoMailBodyPart
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#import <NGExtensions/NSObject+Logs.h>
|
||||
#import <GDLContentStore/GCSFolder.h>
|
||||
|
||||
#import "NSCalendarDate+SOGo.h"
|
||||
#import "SOGoGCSFolder.h"
|
||||
#import "SOGoUser.h"
|
||||
#import "SOGoPermissions.h"
|
||||
@@ -320,6 +321,30 @@
|
||||
}
|
||||
|
||||
/* WebDAV */
|
||||
- (NSString *) davCreationDate
|
||||
{
|
||||
NSCalendarDate *date;
|
||||
|
||||
date = [[self ocsFolder] creationDateOfEntryWithName: nameInContainer];
|
||||
|
||||
return [date rfc822DateString];
|
||||
}
|
||||
|
||||
- (NSString *) davLastModified
|
||||
{
|
||||
NSCalendarDate *date;
|
||||
|
||||
date = [[self ocsFolder] lastModificationOfEntryWithName: nameInContainer];
|
||||
|
||||
return [date rfc822DateString];
|
||||
}
|
||||
|
||||
- (NSString *) davContentLength
|
||||
{
|
||||
return [NSString stringWithFormat: @"%u",
|
||||
[content
|
||||
lengthOfBytesUsingEncoding: NSISOLatin1StringEncoding]];
|
||||
}
|
||||
|
||||
- (NSException *) davMoveToTargetObject: (id) _target
|
||||
newName: (NSString *) _name
|
||||
|
||||
Reference in New Issue
Block a user