[imp] Start in folders instead of mailbox
Atif
aghaffar@developer.ch
Wed, 14 Nov 2001 00:14:14 +0100
---------------------- multipart/mixed attachment
Ok,
please find attached two patches
mailbox.php.patch (apply in horde/imp)
and
prefs.php.patch (apply in horde/imp/config)
your prefs.php maybe different then mine, in that case, you may need to=20
apply this one manually.
Jon, I just followed the LOGIN_COMPOSE exception example.
regards,
Jeff Tucker wrote:
> Atif,
>=20
> I'm using Horde and IMP updated from CVS just yesterday. So, I should b=
e=20
> up-to-date. And, my users never go to the horde login at all. I have my=
=20
> horde authentication set to authenticate by imp and my users just go to=
=20
> /horde/imp to login.
--=20
Atif Ghaffar
---------------------------.
+41 78 845 31 64 =A6 voice/sms
+41 21 254 53 62 =A6 fax
atif@developer.ch =A6 email
http://atifghaffar.com =A6 homepage
---------------------- multipart/mixed attachment
Index: mailbox.php
===================================================================
RCS file: /home/cvs/horde/imp/mailbox.php,v
retrieving revision 2.296
diff -u -r2.296 mailbox.php
--- mailbox.php 2001/11/06 14:27:03 2.296
+++ mailbox.php 2001/11/13 23:04:36
@@ -101,6 +101,9 @@
header('Location: ' . Horde::applicationUrl('compose.php'));
}
}
+ if ($prefs->getValue('log_to_folders')) {
+ header('Location: ' . Horde::applicationUrl('folders.php'));
+ }
}
/* Massage data coming in via GET/POST to be where we expect it. */
---------------------- multipart/mixed attachment
--- prefs.php.dist Sun Oct 28 13:40:49 2001
+++ prefs.php Tue Nov 13 23:30:13 2001
@@ -78,7 +78,7 @@
'column' => _("Other Options"),
'label' => _("Login Tasks"),
'desc' => _("Customize tasks to run upon logon to IMP."),
- 'members' => array('show_last_login')
+ 'members' => array('show_last_login', 'log_to_folders')
);
$prefGroups['newmail'] = array(
@@ -293,6 +293,15 @@
'shared' => false,
'type' => 'checkbox',
'desc' => _("Show last login time when logging in")
+);
+
+// Log to folders or mailbox upon login
+$_prefs['log_to_folders'] = array(
+ 'value' => 0,
+ 'locked' => false,
+ 'shared' => false,
+ 'type' => 'checkbox',
+ 'desc' => _("Go to folder list upon login")
);
// rename sent-mail folder every month?
---------------------- multipart/mixed attachment--