Browse Source

Fix listcommands plugin to behave like normal reply/compose links, and
return to message page that originally called from.

jangliss 20 năm trước cách đây
mục cha
commit
bd06a2b1d3
2 tập tin đã thay đổi với 6 bổ sung3 xóa
  1. 2 0
      ChangeLog
  2. 4 3
      plugins/listcommands/setup.php

+ 2 - 0
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
 --------------------

+ 4 - 3
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() {
     }
 }
 
-?>
+?>