From: Michael M Slusarz Date: Fri, 26 Jun 2009 17:11:50 +0000 (-0600) Subject: Fix deletion of auto-save drafts. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=32fe20005e60b44f64f84507ede8df26bf070670;p=horde.git Fix deletion of auto-save drafts. --- diff --git a/imp/lib/Compose.php b/imp/lib/Compose.php index bbe6bad76..150eba287 100644 --- a/imp/lib/Compose.php +++ b/imp/lib/Compose.php @@ -271,9 +271,11 @@ class IMP_Compose try { $ids = $GLOBALS['imp_imap']->ob->append($drafts_mbox, array(array('data' => $data, 'flags' => $append_flags, 'messageid' => $headers->getValue('message-id')))); $this->_metadata['draft_index'] = reset($ids); + $this->_modified = true; return sprintf(_("The draft has been saved to the \"%s\" folder."), IMP::displayFolder($drafts_mbox)); } catch (Horde_Imap_Client_Exception $e) { unset($this->_metadata['draft_index']); + $this->_modified = true; return _("The draft was not successfully saved."); } } @@ -337,6 +339,7 @@ class IMP_Compose ); list($this->_metadata['draft_index'],) = explode(IMP::IDX_SEP, $index); + $this->_modified = true; return array( 'header' => $header,