From 906ac45e65e0ed0d39998f6fab757592ff58f0c5 Mon Sep 17 00:00:00 2001 From: helge Date: Fri, 8 Jul 2005 10:56:41 +0000 Subject: [PATCH] use common method to check for internet access git-svn-id: http://svn.opengroupware.org/SOGo/trunk@702 d1b88da0-ebda-0310-925b-ed51d893ca5b --- SOGo/UI/MailerUI/ChangeLog | 5 +++++ SOGo/UI/MailerUI/UIxMailEditor.m | 7 ++----- SOGo/UI/MailerUI/Version | 3 ++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/SOGo/UI/MailerUI/ChangeLog b/SOGo/UI/MailerUI/ChangeLog index 1855f6f3..e16806c5 100644 --- a/SOGo/UI/MailerUI/ChangeLog +++ b/SOGo/UI/MailerUI/ChangeLog @@ -1,3 +1,8 @@ +2005-07-08 Helge Hess + + * UIxMailEditor.m: use WOContext method from libSOGo to detect + Internet access (v0.9.134) + 2005-07-08 Helge Hess * UIxMailMainFrame.m: added help button and extra space for that in the diff --git a/SOGo/UI/MailerUI/UIxMailEditor.m b/SOGo/UI/MailerUI/UIxMailEditor.m index a10dd378..551d2491 100644 --- a/SOGo/UI/MailerUI/UIxMailEditor.m +++ b/SOGo/UI/MailerUI/UIxMailEditor.m @@ -45,6 +45,7 @@ #include #include #include +#include #include #include #include "common.h" @@ -169,11 +170,7 @@ static NSArray *infoKeys = nil; /* detect webmail being accessed from the outside */ - (BOOL)isInternetRequest { - WORequest *rq; - - rq = [[self context] request]; - return [(id)internetDetectQualifier - evaluateWithObject:[rq headers]]; + return [[self context] isAccessFromIntranet] ? NO : YES; } - (BOOL)showInternetMarker { diff --git a/SOGo/UI/MailerUI/Version b/SOGo/UI/MailerUI/Version index 119da930..2b0ec3eb 100644 --- a/SOGo/UI/MailerUI/Version +++ b/SOGo/UI/MailerUI/Version @@ -1,7 +1,8 @@ # version file -SUBMINOR_VERSION:=133 +SUBMINOR_VERSION:=134 +# v0.9.134 requires libSOGo v0.9.41 # v0.9.100 requires libNGMime v4.5.213 # v0.9.99 requires libNGMime v4.5.212 # v0.9.97 requires SoObjects/Mailer v0.9.71 -- 2.39.5