Changeset 9281884 in github
- Timestamp:
- Sep 18, 2008 5:29:57 AM (5 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 095d05e
- Parents:
- b8817ea
- File:
-
- 1 edited
-
program/steps/mail/move_del.inc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/steps/mail/move_del.inc
rd224551 r9281884 28 28 $count = sizeof(explode(',', ($uids = get_input_value('_uid', RCUBE_INPUT_POST)))); 29 29 $target = get_input_value('_target_mbox', RCUBE_INPUT_POST); 30 $moved = $IMAP->move_message($uids, $target, get_input_value('_mbox', RCUBE_INPUT_POST)); 30 $mbox = get_input_value('_mbox', RCUBE_INPUT_POST); 31 $moved = $IMAP->move_message($uids, $target, $mbox); 31 32 32 if ($moved) { 33 // flag old messages as read because rcube_imap will not send expunge command after moving 34 if ($CONFIG['read_when_deleted']) 35 $IMAP->set_flag($uids, 'SEEN'); 36 } 37 else { 33 if (!$moved) { 38 34 // send error message 39 35 $OUTPUT->command('list_mailbox'); … … 42 38 exit; 43 39 } 40 41 // flag old messages as read because rcube_imap will not send expunge command after moving 42 if ($CONFIG['read_when_deleted']) 43 $IMAP->set_flag($uids, 'SEEN'); 44 45 if (!$CONFIG['flag_for_deletion']) 46 $addrows = true; 44 47 } 45 48 // delete messages 46 49 else if ($RCMAIL->action=='delete' && !empty($_POST['_uid'])) { 47 50 $count = sizeof(explode(',', ($uids = get_input_value('_uid', RCUBE_INPUT_POST)))); 48 $del = $IMAP->delete_message($uids, get_input_value('_mbox', RCUBE_INPUT_POST)); 51 $mbox = get_input_value('_mbox', RCUBE_INPUT_POST); 52 $del = $IMAP->delete_message($uids, $mbox); 49 53 50 54 if (!$del) { … … 55 59 exit; 56 60 } 61 62 $addrows = true; 57 63 } 58 64 // unknown action or missing query param … … 83 89 $OUTPUT->command('set_rowcount', rcmail_get_messagecount_text($msg_count)); 84 90 85 86 91 // update mailboxlist 87 92 $mbox = $IMAP->get_mailbox_name(); … … 95 100 96 101 // add new rows from next page (if any) 97 if ($ _POST['_from']!='show' && ($jump_back || $nextpage_count > 0)) {102 if ($addrows && $_POST['_from']!='show' && ($jump_back || $nextpage_count > 0)) { 98 103 $sort_col = isset($_SESSION['sort_col']) ? $_SESSION['sort_col'] : $CONFIG['message_sort_col']; 99 104 $sort_order = isset($_SESSION['sort_order']) ? $_SESSION['sort_order'] : $CONFIG['message_sort_order'];
Note: See TracChangeset
for help on using the changeset viewer.
