#import <SoObjects/Mailer/SOGoMailAccounts.h>
#import <SoObjects/Mailer/SOGoMailIdentity.h>
#import <SoObjects/SOGo/SOGoUser.h>
-#import <SoObjects/SOGo/WOContext+Agenor.h>
#import <SOGoUI/UIxComponent.h>
/*
return [self labelForKey:@"Compose Mail"];
}
-/* detect webmail being accessed from the outside */
-
-- (BOOL)isInternetRequest {
- // DEPRECATED
- return [[self context] isAccessFromIntranet] ? NO : YES;
-}
-
-- (BOOL)showInternetMarker {
- if (!showInternetMarker)
- return NO;
- return [[self context] isAccessFromIntranet] ? NO : YES;
-}
-
/* info loading */
- (void)loadInfo:(NSDictionary *)_info {
{
NSException *error;
NSString *mailPath;
- NSDictionary *h;
id <WOActionResults> result;
// TODO: need to validate whether we have a To etc
/* setup some extra headers if required */
- h = [[self context] isAccessFromIntranet] ? nil : internetMailHeaders;
-
/* save mail to file (so that we can upload the mail to Cyrus) */
// TODO: all this could be handled by the SOGoDraftObject?
- mailPath = [[self clientObject] saveMimeMessageToTemporaryFileWithHeaders:h];
+ mailPath = [[self clientObject] saveMimeMessageToTemporaryFileWithHeaders: internetMailHeaders];
/* then, send mail */