X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fmove_messages.php;h=bd121451773fa75c7a7e6dcd3b628b74a4dffdb8;hp=17841ea8673ba33be12ef93256f854417deaa79b;hb=5b8d68ca2263cc828546f629c7cd63a78783a3d0;hpb=d81e351b2f345643213edbf94fd37e7866dc8c86;ds=sidebyside diff --git a/src/move_messages.php b/src/move_messages.php index 17841ea8..bd121451 100644 --- a/src/move_messages.php +++ b/src/move_messages.php @@ -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);