Преглед изворни кода

another stupidy. It looks that i wasn't awake yesterday.
Thnx Seth Randall for spotting my mistakes ;)

stekkel пре 20 година
родитељ
комит
41cdce4ffb
1 измењених фајлова са 5 додато и 5 уклоњено
  1. 5 5
      src/compose.php

+ 5 - 5
src/compose.php

@@ -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;