Monotone-Parent: eec670c1a42c0c0dc4d8fd262d9226a82b74a294

Monotone-Revision: fab115ed2ae60866132f76c69f795a2388ec8672

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-06-01T04:11:47
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-06-01 04:11:47 +00:00
parent 516f33d69f
commit d1a99f9b94
2 changed files with 7 additions and 32 deletions
+5
View File
@@ -1,5 +1,10 @@
2007-06-01 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/MailerUI/UIxMailView.m ([-isTrashingAllowed]): removed
useless method.
([-showMarkDeletedButton]): removed useless method.
([-showTrashButton]): removed useless method.
* SoObjects/Appointments/iCalEntityObject+SOGo.m
([iCalEntityObject -userIsParticipant:user]): new proxy method
that invoked isParticipant on self for each possible email
+2 -32
View File
@@ -97,37 +97,6 @@ static NSString *mailETag = nil;
[self objectTitle]];
}
/* expunge / delete setup and permissions */
- (BOOL) isTrashingAllowed
{
id trash;
trash = [[[self clientObject] mailAccountFolder]
trashFolderInContext:context];
if ([trash isKindOfClass:[NSException class]])
return NO;
return [trash isWriteAllowed];
}
- (BOOL) showMarkDeletedButton
{
// TODO: we might also want to add a default to always show delete
if (![[self clientObject] isDeletionAllowed])
return NO;
return [self isTrashingAllowed] ? NO : YES;
}
- (BOOL) showTrashButton
{
if (![[self clientObject] isDeletionAllowed])
return NO;
return [self isTrashingAllowed];
}
/* links (DUP to UIxMailPartViewer!) */
- (NSString *)linkToEnvelopeAddress:(NGImap4EnvelopeAddress *)_address {
@@ -162,7 +131,8 @@ static NSString *mailETag = nil;
/* actions */
- (id)defaultAction {
- (id) defaultAction
{
/* check etag to see whether we really must rerender */
if (mailETag != nil ) {
/*