Updates a draft if saved again, instead of creating a second draft.
authorfallas <fallas@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 31 Oct 2001 11:54:08 +0000 (11:54 +0000)
committerfallas <fallas@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 31 Oct 2001 11:54:08 +0000 (11:54 +0000)
Does this by deleting the original.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1665 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/compose.php

index f008aee0b042c2593df37c53ff1c0d94db8a2bd8..6dfe911df49dff470ac33fd910be41aabd73fccb 100644 (file)
          exit();
       } else {
          $draft_message = _("Draft Email Saved");
-         Header("Location: right_main.php?mailbox=$draft_folder&sort=$sort&startMessage=1&note=$draft_message");
-         exit();
+         /* If this is a resumed draft, then delete the original */
+         if(isset($delete_draft)) {
+            Header("Location: delete_message.php?mailbox=$draft_folder&message=$delete_draft&sort=$sort&startMessage=1");
+            exit();
+         } else {
+            Header("Location: right_main.php?mailbox=$draft_folder&sort=$sort&startMessage=1&note=$draft_message");
+            exit();
+         }
       }
    }