|
@@ -659,7 +659,10 @@ function formatMenubar($aMailbox, $passed_id, $passed_ent_id, $message,
|
|
|
if (!(isset($passed_ent_id) && $passed_ent_id)) {
|
|
|
$oTemplate->assign('can_be_moved', true);
|
|
|
$oTemplate->assign('move_form_extra', addHidden('mailbox', $aMailbox['NAME'])."\n" .
|
|
|
- addHidden('msg[0]', $passed_id)."\n" );
|
|
|
+ addHidden('msg[0]', $passed_id)."\n" .
|
|
|
+ // only need when $return_to_message_list_after_move is off
|
|
|
+ addHidden('passed_id', ($next >= 0 ? $next : $prev))."\n" .
|
|
|
+ addHidden('startMessage', $startMessage)."\n" );
|
|
|
$oTemplate->assign('last_move_target', isset($lastTargetMailbox) && !empty($lastTargetMailbox) ? $lastTargetMailbox : '');
|
|
|
$oTemplate->assign('can_be_copied', $show_copy_buttons==1);
|
|
|
} else {
|
|
@@ -939,6 +942,13 @@ if ( sqgetGlobalVar('delete_id', $delete_id, SQ_GET) ) {
|
|
|
handleMessageListForm($imapConnection,$aMailbox,$sButton='setDeleted', array($delete_id));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * or delete button... why is handleMessageListForm (per above) conditional anway?
|
|
|
+ */
|
|
|
+if ( sqgetGlobalVar('delete', $ignore, SQ_POST) ) {
|
|
|
+ $sError = handleMessageListForm($imapConnection,$aMailbox);
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* or move button... why is handleMessageListForm (per above) conditional anway?
|
|
|
*/
|