From: Marc G. K. <st...@us...> - 2002-08-16 13:03:59
|
Update of /cvsroot/squirrelmail/squirrelmail/src In directory usw-pr-cvs1:/tmp/cvs-serv8603 Modified Files: compose.php Log Message: store attachments in user_pref for restoring compose sessions Index: compose.php =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/src/compose.php,v retrieving revision 1.249 retrieving revision 1.250 diff -u -w -r1.249 -r1.250 --- compose.php 16 Aug 2002 12:19:11 -0000 1.249 +++ compose.php 16 Aug 2002 13:03:56 -0000 1.250 @@ -648,15 +648,14 @@ $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 @@ $newAttachment['session'] = $session; $attachments[] = $newAttachment; } + setPref($data_dir, $username, 'attachments', serialize($attachments)); return; } |