From e527e60e090a54e16ef0e7014e8c40d4e605ea1a Mon Sep 17 00:00:00 2001 From: jangliss Date: Mon, 3 Jan 2005 08:11:53 +0000 Subject: [PATCH] Fix listcommands plugin to behave like normal reply/compose links, and return to message page that originally called from. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8561 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- ChangeLog | 2 ++ plugins/listcommands/setup.php | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4f115f45..4467a02d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -171,6 +171,8 @@ Version 1.5.1 -- CVS option. - Changing your JavaScript preference required a re-login to work. Fixes #983614. + - Fix listcommands plugin to behave like normal reply/compose + links, and return to message page that originally called from. Version 1.5.0 -------------------- diff --git a/plugins/listcommands/setup.php b/plugins/listcommands/setup.php index 503102c7..8812a627 100644 --- a/plugins/listcommands/setup.php +++ b/plugins/listcommands/setup.php @@ -26,7 +26,7 @@ function squirrelmail_plugin_init_listcommands () { } function plugin_listcommands_menu() { - global $passed_id, $passed_ent_id, $color, $mailbox, $message; + global $passed_id, $passed_ent_id, $color, $mailbox, $message, $startMessage; /** * Array of commands we can deal with from the header. The Reply option @@ -55,7 +55,8 @@ function plugin_listcommands_menu() { if ($proto == 'mailto') { if (($cmd == 'post') || ($cmd == 'owner')) { - $url = 'src/compose.php?'; + $url = 'src/compose.php?'. + (isset($startMessage)?'startMessage='.$startMessage.'&'?''); } else { $url = "plugins/listcommands/mailout.php?action=$cmd&"; } @@ -89,4 +90,4 @@ function plugin_listcommands_menu() { } } -?> \ No newline at end of file +?> -- 2.25.1