<tr>
<td align="left" colspan="3" class="control">
<?php if ($imp_headers->getFlag('deleted')): ?>
<?php echo Horde::widget(Horde::addParameter($self_link, 'actionID', 'undelete_message'), _("Undelete"), 'widget', '', '', _("Undelete"), 2) ?>
<?php else: ?>
<?php echo Horde::widget(Horde::addParameter($self_link, 'actionID', 'delete_message'), _("Delete"), 'widget', '', $delete_warning, _("Delete"), 2) ?>
<?php endif; ?>
 | <?php echo Horde::widget(IMP::composeLink($reply_author, array('actionID' => 'reply', 'index' => $index, 'identity' => $identity, 'array_index' => $array_index)), _("Reply"), 'widget', '', '', _("Reply"), 2); ?>
<?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', '', '', _("Reply to List"), 2) ?>
<?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"), 2) ?>
<?php endif; ?>
 | <?php echo Horde::widget(IMP::composeLink(array(), array('actionID' => 'forward', 'index' => $index, 'identity' => $identity, 'array_index' => $array_index)), _("Forward"), 'widget', '', '', _("Forward"), 2) ?>
 | <?php echo Horde::widget(IMP::composeLink(array(), array('actionID' => 'redirect_compose', 'index' => $index, 'array_index' => $array_index)), _("Redirect"), 'widget', '', '', _("Redirect"), 2) ?>
<?php if ($show_blacklist_link): ?>
 | <?php echo Horde::widget(Horde::addParameter($self_link, 'actionID', 'blacklist'), _("Blacklist"), 'widget', '', '', _("Blacklist"), 2) ?>
<?php endif; ?>
<?php if ($show_whitelist_link): ?>
 | <?php echo Horde::widget(Horde::addParameter($self_link, 'actionID', 'whitelist'), _("Whitelist"), 'widget', '', '', _("Whitelist"), 2) ?>
<?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"), 2) ?>
<?php endif; ?>
 | <?php echo Horde::widget($save_link, _("Save as"), 'widget', '', '', _("Save as"), 2) ?>
 | <?php echo Horde::widget('', _("Print"), 'widget', '', "open_print_win('" . $print_link . "'); return false;", _("Print"), 2) ?>
<?php if (isset($spam_link)): ?>
 | <?php echo Horde::widget($spam_link, _("Report as Spam"), 'widget', '', '', _("Report as Spam"), 2) ?>
<?php endif; ?>
</td>
</tr>
