+2005-07-18 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * UIxMailEditor.m: removed -emailForUser usage and replaced with
+ 'official' activeUser API (v0.9.142)
+
2005-07-15 Helge Hess <helge.hess@opengroupware.org>
* product.plist: only enable folder add/remove buttons when the user
#include <SoObjects/Mailer/SOGoMailFolder.h>
#include <SoObjects/Mailer/SOGoMailAccount.h>
#include <SoObjects/SOGo/WOContext+Agenor.h>
+#include <SoObjects/SOGo/SOGoUser.h>
#include <NGMail/NGMimeMessage.h>
#include <NGMail/NGMimeMessageGenerator.h>
#include "common.h"
-@interface UIxComponent (Scheduler_Privates)
-- (NSString *)emailForUser;
-@end
-
@implementation UIxMailEditor
static BOOL keepMailTmpFile = NO;
}
- (NSString *)from {
if (![self->from isNotNull])
- return [self emailForUser];
+ return [[[self context] activeUser] email];
return self->from;
}
return self->fromEMails;
uid = [[self user] login];
- primary = [self emailForUser];
+ primary = [[[self context] activeUser] email];
if (![[self context] isAccessFromIntranet]) {
self->fromEMails = [[NSArray alloc] initWithObjects:&primary count:1];
return self->fromEMails;