Browse Source

Return to message list after sending a resumed draft; previous behavior was a bit silly

pdontthink 20 years ago
parent
commit
a89346a1d3
1 changed files with 4 additions and 9 deletions
  1. 4 9
      src/delete_message.php

+ 4 - 9
src/delete_message.php

@@ -75,16 +75,11 @@ $location = get_location();
 if (isset($where) && isset($what)) {
 if (isset($where) && isset($what)) {
     header("Location: $location/search.php?where=" . $where .
     header("Location: $location/search.php?where=" . $where .
            '&what=' . $what . '&mailbox=' . urlencode($mailbox));
            '&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);
 sqimap_logout($imapConnection);
 
 
-?>
+?>