Fix listcommands plugin to behave like normal reply/compose links, and
authorjangliss <jangliss@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 3 Jan 2005 08:11:53 +0000 (08:11 +0000)
committerjangliss <jangliss@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 3 Jan 2005 08:11:53 +0000 (08:11 +0000)
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
plugins/listcommands/setup.php

index 4f115f45af94accba113eda4eba843a07a0ded25..4467a02d3d1e3e0de8712d6334f596381cab522d 100644 (file)
--- 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
 --------------------
index 503102c7a9a578b03648ff46c5966a67ebc5813b..8812a627b9a3b8e812e18cdbf79bc6ac4f441784 100644 (file)
@@ -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.'&amp;'?'');
             } else {
                 $url = "plugins/listcommands/mailout.php?action=$cmd&amp;";
             }
@@ -89,4 +90,4 @@ function plugin_listcommands_menu() {
     }
 }
 
-?>
\ No newline at end of file
+?>