瀏覽代碼

support for picking up attachments in case of a expired session

stekkel 23 年之前
父節點
當前提交
79934e088a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/move_messages.php

+ 1 - 1
src/move_messages.php

@@ -46,7 +46,6 @@ function attachSelectedMessages($msg, $imapConnection) {
     global $mailbox, $username, $attachment_dir, $attachments, $identity, 
            $data_dir, $composesession, $lastTargetMailbox, $uid_support;
 
-
     if (!isset($attachments)) {
 	    $attachments = array();
 	    session_register('attachments');
@@ -120,6 +119,7 @@ function attachSelectedMessages($msg, $imapConnection) {
 	    $i++;	
 	
     }
+    setPref($data_dir, $username, 'attachments', serialize($attachments));
     return $composesession;
 }