From 1eefa457ba2fba7b7140c0364c0e2796eb8a74ad Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 26 Jun 2009 10:59:22 -0600 Subject: [PATCH] Don't delete draft in dimp immediately after saving it. --- imp/compose-dimp.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/imp/compose-dimp.php b/imp/compose-dimp.php index 6bd8d46c3..d779c68ce 100644 --- a/imp/compose-dimp.php +++ b/imp/compose-dimp.php @@ -97,11 +97,13 @@ if (count($_POST)) { /* Save the draft. */ try { + $old_index = $imp_compose->getMetadata('draft_index'); + $res = $imp_compose->saveDraft($header, Horde_Util::getFormData('message', ''), NLS::getCharset(), Horde_Util::getFormData('html')); $result->success = 1; /* Delete existing draft. */ - _removeAutoSaveDraft($imp_compose->getMetadata('draft_index')); + _removeAutoSaveDraft($old_index); if ($action != 'auto_save_draft') { $notification->push($res); -- 2.11.0