<tr>
<td align="left" colspan="3" class="control">
<?php if ($imp_headers->getFlag('deleted')): ?>
<?php echo Horde::widget(Util::addParameter($self_link, 'actionID', 'undelete_message'), _("Undelete"), 'widget', '', '', _("Undelete"), true) ?>
<?php else: ?>
<?php echo Horde::widget(Util::addParameter($self_link, 'actionID', 'delete_message'), _("Delete"), 'widget', '', $delete_warning, _("_Delete"), true) ?>
<?php endif; ?>
 | <?php echo Horde::widget(IMP::composeLink($reply_author, array('actionID' => 'reply', 'index' => $index, 'identity' => $identity, 'array_index' => $array_index)), _("Reply"), 'widget', '', '', _("_Reply"), true); ?>
<?php if (!is_null($reply_list)): ?>
 | <?php echo Horde::widget(IMP::composeLink($reply_list, array('actionID' => 'reply_list', 'index' => $index, 'identity' => $identity, 'array_index' => $array_index)), _("Reply to List"), 'widget', '', '', _("Repl_y to List"), true) ?>
<?php endif; ?>
<?php if ($show_reply_all): ?>
 | <?php echo Horde::widget(IMP::composeLink(array(), array('actionID' => 'reply_all', 'index' => $index, 'identity' => $identity, 'array_index' => $array_index)), _("Reply to All"), 'widget', '', '', _("Reply to _All"), true) ?>
<?php endif; ?>
 | <?php echo Horde::widget(IMP::composeLink(array(), array('actionID' => 'forward', 'index' => $index, 'identity' => $identity, 'array_index' => $array_index)), _("Forward"), 'widget', '', '', _("Fo_rward"), true) ?>
 | <?php echo Horde::widget(IMP::composeLink(array(), array('actionID' => 'redirect_compose', 'index' => $index, 'array_index' => $array_index)), _("Redirect"), 'widget', '', '', _("Redirec_t"), true) ?>
 | <?php echo Horde::widget($thread_link, _("View Thread"), 'widget', '', '', _("_View Thread"), true) ?>
<?php if ($show_blacklist_link): ?>
 | <?php echo Horde::widget(Util::addParameter($self_link, 'actionID', 'blacklist'), _("Blacklist"), 'widget', '', '', _("_Blacklist"), true) ?>
<?php endif; ?>
<?php if ($show_whitelist_link): ?>
 | <?php echo Horde::widget(Util::addParameter($self_link, 'actionID', 'whitelist'), _("Whitelist"), 'widget', '', '', _("_Whitelist"), true) ?>
<?php endif; ?>
<?php if (isset($source_link)): ?>
 | <?php echo $source_link . ' ' ?>
<?php endif; ?>
<?php if ($conf['user']['allow_resume_all'] || ($conf['user']['allow_resume_all_in_drafts'] && $imp['mailbox'] == IMP::preambleString() . $prefs->getValue('drafts_folder')) || ($imp_headers->getFlag('draft'))): ?>
 | <?php echo Horde::widget(IMP::composeLink(array(), array('actionID' => 'draft', 'mailbox' => $imp['mailbox'], 'index' => $index, 'array_index' => $array_index)), _("Resume"), 'widget', '', '', _("Resume"), true) ?>
<?php endif; ?>
 | <?php echo Horde::widget($save_link, _("Save as"), 'widget', '', '', _("Sa_ve as"), 2) ?>
 | <?php echo Horde::widget('', _("Print"), 'widget', '', "open_print_win('" . $print_link . "'); return false;", _("_Print"), true) ?>
<?php if ($conf['spam']['reporting'] && $imp['mailbox'] != IMP::addPreambleString($prefs->getValue('spam_folder'))): ?>
 | <?php echo Horde::widget('', _("Report as Spam"), 'widget', '', "Submit('spam_report'); return false;", _("Report as Spam"), true) ?>
<?php endif; ?>
<?php if ($conf['notspam']['reporting'] &&  $imp['mailbox'] == IMP::addPreambleString($prefs->getValue('spam_folder'))): ?>
 | <?php echo Horde::widget('', _("Report as Innocent"), 'widget', '', "Submit('notspam_report'); return false;", _("Report as Innocent"), true) ?>
<?php endif; ?>
</td>
</tr>
