Return to message list after sending a resumed draft; previous behavior was a bit...
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 13 Mar 2005 01:54:30 +0000 (01:54 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 13 Mar 2005 01:54:30 +0000 (01:54 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8998 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/delete_message.php

index d7f56b91d5eb2da935787afb710d558307fe3503..fcde0e72c24f39192778d9a159756242409e6f9f 100644 (file)
@@ -75,16 +75,11 @@ $location = get_location();
 if (isset($where) && isset($what)) {
     header("Location: $location/search.php?where=" . $where .
            '&what=' . $what . '&mailbox=' . urlencode($mailbox));
-} else {
-    if (!empty($saved_draft) || !empty($mail_sent)) {
-          header("Location: $location/compose.php?mail_sent=$mail_sent&saved_draft=$saved_draft");
-    }
-    else {
-        header("Location: $location/right_main.php?sort=$sort&startMessage=$startMessage&mailbox=" .
-               urlencode($mailbox));
-    }
 }
 
+header("Location: $location/right_main.php?sort=$sort&startMessage=$startMessage&mailbox=" .
+    urlencode($mailbox));
+
 sqimap_logout($imapConnection);
 
-?>
\ No newline at end of file
+?>