function plugin_listcommands_menu() {
global $imapConnection, $passed_id, $color, $mailbox,
- $subject, $ent_num, $priority_level, $compose_new_win;
+ $message, $ent_num, $priority_level, $compose_new_win;
+
+ $subject = trim($message->header->subject);
/**
* Array of commands we can deal with from the header. The Reply option
if (count($output) > 0) {
echo "<tr>";
- echo "<td ALIGN=RIGHT BGCOLOR=\"$color[0]\">"
- . str_replace(' ', ' ', _("Mailing List:"))
- . '</td>';
- echo "<td BGCOLOR=\"$color[0]\" WIDTH=\"100%\" colspan=\"2\">"
- . '<SMALL>' . implode(' | ', $output) . '</SMALL>'
- . '</td>';
- echo '</tr>';
+ echo html_tag( 'tr',
+ html_tag( 'td', str_replace(' ', ' ', _("Mailing List:")), 'right', $color[0]) .
+ html_tag( 'td',
+ '<small>' . implode(' | ', $output) . '</small>' ,
+ 'left', $color[0], 'width="100%" colspan="2"')
+ );
}
}