-fix: mark as read (for read_when_deleted) only when moving messages to trash

release-0.6
alecpl 16 years ago
parent 2855518f1d
commit 09fc3f3087

@ -30,7 +30,7 @@ if ($RCMAIL->action=='moveto' && !empty($_POST['_uid']) && !empty($_POST['_targe
$mbox = get_input_value('_mbox', RCUBE_INPUT_POST); $mbox = get_input_value('_mbox', RCUBE_INPUT_POST);
// flag messages as read before moving them // flag messages as read before moving them
if ($CONFIG['read_when_deleted']) if ($CONFIG['read_when_deleted'] && $target == $CONFIG['trash_mbox'])
$IMAP->set_flag($uids, 'SEEN'); $IMAP->set_flag($uids, 'SEEN');
$moved = $IMAP->move_message($uids, $target, $mbox); $moved = $IMAP->move_message($uids, $target, $mbox);

Loading…
Cancel
Save