uid support?
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 5 Jul 2002 14:13:57 +0000 (14:13 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 5 Jul 2002 14:13:57 +0000 (14:13 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3050 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/move_messages.php

index 17841ea..bd12145 100644 (file)
@@ -43,7 +43,8 @@ function putSelectedMessagesIntoString($msg) {
 
 function attachSelectedMessages($msg, $imapConnection) {
 
-    global $mailbox, $username, $attachment_dir, $attachments, $identity, $data_dir, $composesession, $lastTargetMailbox;
+    global $mailbox, $username, $attachment_dir, $attachments, $identity, 
+           $data_dir, $composesession, $lastTargetMailbox, $uid_support;
 
 
     if (!isset($attachments)) {
@@ -81,10 +82,10 @@ function attachSelectedMessages($msg, $imapConnection) {
     while ($j < count($msg)) {
         if (isset($msg[$i])) {
            $id = $msg[$i];
-           $body_a = sqimap_run_command($imapConnection, "FETCH $id RFC822",true, $response, $readmessage);
+           $body_a = sqimap_run_command($imapConnection, "FETCH $id RFC822",true, $response, $readmessage, $uid_support);
            if ($response = 'OK') {
                    // get subject so we can set the remotefilename
-                       $read = sqimap_run_command ($imapConnection, "FETCH $id BODY.PEEK[HEADER.FIELDS (Subject)]", true, $response, $readmessage);
+                       $read = sqimap_run_command ($imapConnection, "FETCH $id BODY.PEEK[HEADER.FIELDS (Subject)]", true, $response, $readmessage, $uid_support);
                        $subject = substr($read[1], strpos($read[1], ' '));
                    $subject = trim($subject);