Browse Source

clean up the stored serialized attachment var in the user.pref file.

stekkel 23 years ago
parent
commit
a163a3569e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      functions/smtp.php

+ 2 - 1
functions/smtp.php

@@ -189,7 +189,7 @@ function attachFiles ($fp, $session, $rn="\r\n") {
 /* Delete files that are uploaded for attaching
  */
 function deleteAttachments($session) {
-    global $username, $attachments, $attachment_dir;
+    global $username, $attachments, $attachment_dir, $data_dir;
     $hashed_attachment_dir = getHashedDir($username, $attachment_dir);
 
     $rem_attachments = array();
@@ -204,6 +204,7 @@ function deleteAttachments($session) {
         }
     }
     $attachments = $rem_attachments;
+    setPref($data_dir, $username, 'attachments', serialize($attachments));
 }
 
 /* Return a nice MIME-boundary