fix for handling other incoming vars (Thnx Bruce <itsbruce@uklinux.net>)
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 30 Jul 2002 10:27:00 +0000 (10:27 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 30 Jul 2002 10:27:00 +0000 (10:27 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3176 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/compose.php

index 3c83ce4..c179562 100644 (file)
@@ -359,6 +359,17 @@ elseif (isset($sigappend)) {
     if (!isset($action)) $action = '';
 
     $values = newMail($imapConnection,$mailbox,$passed_id,$passed_ent_id, $action, $session);
+    /* in case the origin is not read_body.php */
+    if (isset($send_to)) {
+       $values['send_to'] = $send_to;
+    }
+    if (isset($send_to_cc)) {
+       $values['send_to_cc'] = $send_cc;
+    }
+    if (isset($send_to_bcc)) {
+       $values['send_to_bcc'] = $send_bcc;
+    }
+    
     showInputForm($session, $values);
     sqimap_logout($imapConnection);
 
@@ -384,6 +395,17 @@ elseif (isset($sigappend)) {
     if (!isset($action)) $action = '';
     
     $values = newMail($imapConnection,$mailbox,$passed_id,$passed_ent_id, $action, $session);
+
+    /* in case the origin is not read_body.php */
+    if (isset($send_to)) {
+       $values['send_to'] = $send_to;
+    }
+    if (isset($send_to_cc)) {
+       $values['send_to_cc'] = $send_cc;
+    }
+    if (isset($send_to_bcc)) {
+       $values['send_to_bcc'] = $send_bcc;
+    }
     showInputForm($session, $values);
     sqimap_logout($imapConnection);
 }