}
// If Sent, prefix with To: but only if not Sent folder
if ($bHandleAsSent ^ $bSentFolder) {
- $senderName = _("To:") . ' ' . $senderName;
- $senderAddress = _("To:") . ' ' . $senderAddress;
+ $senderName = _("To") . ': ' . $senderName;
+ $senderAddress = _("To") . ': ' . $senderAddress;
}
// this is a column property which can apply to multiple columns. Do not use vars for one column
$sSubject = str_replace(' ', ' ', decodeHeader($sSubject));
$subject = processSubject($sSubject, $iIndent);
- echo html_tag( 'tr','','','','VALIGN="top"') . "\n";
+ echo html_tag( 'tr','','','','valign="top"') . "\n";
if (sizeof($index_order)) {
foreach ($index_order as $index_order_part) {
if ($aRes === false) {
$error = '<b><small><center><font color=red>' .
_("Thread sorting is not supported by your IMAP server.") . '<br />' .
- _("Please report this to the system administrator.") .
+ _("Please contact your system administrator and report this error.") .
'</center></small></b>';
$aMailbox['SORT'] -= SQSORT_THREAD;
} else {
if ($id === false) {
$error = '<b><small><center><font color=red>' .
_("Server-side sorting is not supported by your IMAP server.") . '<br />' .
- _("Please report this to the system administrator.") .
+ _("Please contact your system administrator and report this error.") .
'</center></small></b>';
} else {
$aMailbox['UIDSET'][$iSetIndx] = $id;
// display flag buttons only if supported
if ($show_flag_buttons &&
in_array('\\flagged',$aMailbox['PERMANENTFLAGS'], true) ) {
- $button_str .= getButton('SUBMIT', 'markUnflagged', _("Unflag"));
- $button_str .= getButton('SUBMIT', 'markFlagged', _("Flag"));
+ $button_str .= getButton('submit', 'markUnflagged', _("Unflag"));
+ $button_str .= getButton('submit', 'markFlagged', _("Flag"));
$button_str .= " \n";
}
if (in_array('\\seen',$aMailbox['PERMANENTFLAGS'], true)) {
- $button_str .= getButton('SUBMIT', 'markUnread', _("Unread"));
- $button_str .= getButton('SUBMIT', 'markRead', _("Read"));
+ $button_str .= getButton('submit', 'markUnread', _("Unread"));
+ $button_str .= getButton('submit', 'markRead', _("Read"));
$button_str .= " \n";
}
- $button_str .= getButton('SUBMIT', 'attache',_("Forward")) .
+ $button_str .= getButton('submit', 'attache',_("Forward")) .
" \n";
if (in_array('\\deleted',$aMailbox['PERMANENTFLAGS'], true)) {
- $button_str .= getButton('SUBMIT', 'delete',_("Delete"));
+ $button_str .= getButton('submit', 'delete',_("Delete"));
$button_str .= '<input type="checkbox" name="bypass_trash" />' . _("Bypass Trash");
$button_str .= " \n";
}
if (!$aMailbox['AUTO_EXPUNGE'] && $aMailbox['RIGHTS'] != 'READ-ONLY') {
- $button_str .= getButton('SUBMIT', 'expungeButton',_("Expunge")) .' ' . _("mailbox") . "\n";
+ $button_str .= getButton('submit', 'expungeButton',_("Expunge")) .' ' . _("mailbox") . "\n";
$button_str .= ' ';
}
?>
<select name="targetMailbox">
<?php echo sqimap_mailbox_option_list($imapConnection, array(strtolower($lastTargetMailbox)), 0, $boxes); ?>
</select></tt>
- <?php echo getButton('SUBMIT', 'moveButton',_("Move")); ?>
+ <?php echo getButton('submit', 'moveButton',_("Move")); ?>
</small>
<?php
}
!in_array($aUid[0],$aMailbox['UIDSET'][$aMailbox['SETINDEX']])) {
break;
}
- // What kind of hook is this, can it be removed? Disabled for now because it can invalidate the cache
- //if (!boolean_hook_function('move_messages_button_action', NULL, 1)) {
- $aUpdatedMsgs = sqimap_msgs_list_delete($imapConnection, $mailbox, $aUid,$bypass_trash);
- $bExpunge = true;
- //}
+ $aUpdatedMsgs = sqimap_msgs_list_delete($imapConnection, $mailbox, $aUid,$bypass_trash);
+ $bExpunge = true;
break;
case 'unsetDeleted':
case 'setSeen':
$aMailbox['FORWARD_SESSION'] = $composesession;
}
break;
+ default:
+ // Hook for plugin buttons
+ do_hook_function('mailbox_display_button_action', $aUid);
+ break;
}
/**
* Updates messages is an array containing the result of the untagged
}
// vim: et ts=4
-?>
+?>
\ No newline at end of file