another stupidy. It looks that i wasn't awake yesterday.
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 3 Nov 2005 18:14:20 +0000 (18:14 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 3 Nov 2005 18:14:20 +0000 (18:14 +0000)
Thnx Seth Randall for spotting my mistakes ;)

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10239 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/compose.php

index 854f03f86135667ff448140836ea095b3a3e3cf9..d6bc77491c891422706c651c4ffbd33d733b1af6 100644 (file)
@@ -1681,12 +1681,12 @@ function deliverMessage($composeMessage, $draft=false) {
                     $aMailbox['MSG_HEADERS'][$passed_id]['FLAGS'] = $aMsg['FLAGS'];
                 }
             }
+            /**
+             * Write mailbox with updated seen flag information back to cache.
+             */
+            $mailbox_cache[$iAccount.'_'.$aMailbox['NAME']] = $aMailbox;
+            sqsession_register($mailbox_cache,'mailbox_cache');
         }
-        /**
-         * Write mailbox with updated seen flag information back to cache.
-         */
-        $mailbox_cache[$iAccount.'_'.$aMailbox['NAME']] = $aMailbox;
-        sqsession_register($mailbox_cache,'mailbox_cache');
         sqimap_logout($imap_stream);
     }
     return $succes;