X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fread_body.php;h=b83a6392b2932bb7bc4f6160b6ac7829dc2b95de;hp=aeff2e7ee4000a95c0da41942c8a10744c64da67;hb=HEAD;hpb=977ce51a70dcf49e75f13d7075c7d755bc8127c3 diff --git a/src/read_body.php b/src/read_body.php index aeff2e7e..9e8bb97a 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -8,7 +8,7 @@ * * @copyright 1999-2022 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License - * @version $Id$ + * @version $Id: read_body.php 14845 2020-01-07 08:09:34Z pdontthink $ * @package squirrelmail */ @@ -653,6 +653,8 @@ function formatMenubar($aMailbox, $passed_id, $passed_ent_id, $message, $oTemplate->assign('move_delete_form_action', $base_uri.'src/read_body.php'); $oTemplate->assign('delete_form_extra', addHidden('mailbox', $aMailbox['NAME'])."\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" ); if (!(isset($passed_ent_id) && $passed_ent_id)) { $oTemplate->assign('can_be_moved', true); @@ -940,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? */