Fwd: Re[2]: [imp] Switch to prefs at first login?

Chuck Hagenbuch chuck at horde.org
Fri Apr 11 15:29:51 PDT 2003



----- Forwarded message from ad at ixx.com -----
    Date: Fri, 11 Apr 2003 20:33:19 +0200
    From: Andreas Danzer <ad at ixx.com>
Reply-To: Andreas Danzer <ad at ixx.com>
 Subject: Re[2]: [imp] Switch to prefs at first login?
      To: Chuck Hagenbuch <chuck at horde.org>

Hi Chuck,

>> is there an easy way to force first time IMP users to fill out their
>> identity settings before they can proceed to send mail etc. ?

CH> Not currently, but a patch for that would be great.

I'm no programmer, but the following small addition to redirect.php seems
to work for me. There are no links to prefs.php etc. yet but maybe it's
useful
anyway.


--- redirect.php        Fri Apr 11 20:23:01 2003
+++ /usr/src/server/apps/imp-3.2.1/redirect.php Mon Mar  3 11:18:44 2003
@@ -98,17 +98,10 @@ if (!is_null($imapuser) && !is_null($pas
             $url = Horde::getFormData('url');
             $url = IMP::addParameter($url, 'actionID=' . $actionID);
         } else {
             $url = _getInitialUrl($actionID);
         }
-
-           require_once IMP_BASE . '/lib/Identity/IMP.php';
-            $identity = new Identity_IMP();
-            $from = $identity->getValue('from_addr');
-           if (empty($from)) $url = "identities.php";
-
-
         header('Location: ' . $url);
         exit;
     } else {
         header('Location: ' .
Horde::applicationUrl(IMP::logoutUrl('login.php', $reason), true));
         exit;

Best regards
A. Danzer



----- End forwarded message -----


-chuck

--
Charles Hagenbuch, <chuck at horde.org>
"... It is not more light we need, but more warmth! We die of cold, not of
darkness. It is not the night that kills, but the frost." - Miguel de
Unamuno


More information about the imp mailing list