Browse Source

Fix some operator bugs that cause some problems (mainly when forwarding messages).

Jimmy Conner 22 years ago
parent
commit
c2b4a1796f
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/compose.php
  2. 1 1
      src/move_messages.php

+ 1 - 1
src/compose.php

@@ -818,7 +818,7 @@ function getMessage_RFC822_Attachment($message, $composeMessage, $passed_id,
                                      TRUE, $response, $readmessage, $uid_support);
         $message = $message->parent;
     }
-    if ($response = 'OK') {
+    if ($response == 'OK') {
         $subject = encodeHeader($message->rfc822_header->subject);
         array_shift($body_a);
         $body = implode('', $body_a) . "\r\n";

+ 1 - 1
src/move_messages.php

@@ -89,7 +89,7 @@ function attachSelectedMessages($msg, $imapConnection) {
         if (isset($msg[$i])) {
     	    $id = $msg[$i];
     	    $body_a = sqimap_run_command($imapConnection, "FETCH $id RFC822",true, $response, $readmessage, $uid_support);
-    	    if ($response = 'OK') {
+    	    if ($response == 'OK') {
 	        $k = $i + $start_index;
 		$subject = $msgs[$k]['SUBJECT'];