Bug #8295: Fix mbox import
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 19 May 2009 18:45:18 +0000 (12:45 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 19 May 2009 18:45:24 +0000 (12:45 -0600)
imp/lib/Folder.php

index 3abd668..2d55f0f 100644 (file)
@@ -542,7 +542,7 @@ class IMP_Folder
             if (preg_match('/From (.+@.+|- )/A', $line)) {
                 if (!empty($message)) {
                     try {
-                        $GLOBALS['imp_imap']->ob->append($mbox, array(array('data' => $message)));
+                        $GLOBALS['imp_imap']->ob->append($folder, array(array('data' => $message)));
                         ++$msgcount;
                     } catch (Horde_Imap_Client_Exception $e) {}
                 }
@@ -555,7 +555,7 @@ class IMP_Folder
 
         if (!empty($message)) {
             try {
-                $GLOBALS['imp_imap']->ob->append($mbox, array(array('data' => $message)));
+                $GLOBALS['imp_imap']->ob->append($folder, array(array('data' => $message)));
                 ++$msgcount;
             } catch (Horde_Imap_Client_Exception $e) {}
         }