From 32fe20005e60b44f64f84507ede8df26bf070670 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 26 Jun 2009 11:11:50 -0600 Subject: [PATCH] Fix deletion of auto-save drafts. --- imp/lib/Compose.php | 3 +++ 1 file changed, 3 insertions(+) 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, -- 2.11.0