From d5aaaa7c165f7dfd7eef6703a8f2aaaef7e56ae9 Mon Sep 17 00:00:00 2001 From: stekkel Date: Fri, 16 Aug 2002 13:03:56 +0000 Subject: [PATCH] store attachments in user_pref for restoring compose sessions git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3328 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/compose.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compose.php b/src/compose.php index 86844989..acda70a9 100644 --- a/src/compose.php +++ b/src/compose.php @@ -648,15 +648,14 @@ function getAttachments($message, $session, $passed_id, $entities, $imapConnecti $passed_id, $message->entity_id), $message->header->encoding)); fclose ($fp); - $attachments[] = $newAttachment; - setPref($data_dir, $username, 'attachments', $attachments); } } else { for ($i = 0; $i < count($message->entities); $i++) { getAttachments($message->entities[$i], $session, $passed_id, $entities, $imapConnection); } } + setPref($data_dir, $username, 'attachments', serialize($attachments)); return; } @@ -693,6 +692,7 @@ function getMessage_RFC822_Attachment($message, $session, $passed_id, $newAttachment['session'] = $session; $attachments[] = $newAttachment; } + setPref($data_dir, $username, 'attachments', serialize($attachments)); return; } -- 2.25.1