require_once('../functions/strings.php');
require_once('../functions/html.php');
-require_once('../class/html.class');
-require_once('../functions/imap_utf7_decode_local.php');
+require_once('../class/html.class.php');
+require_once('../functions/imap_mailbox.php');
/* Default value for page_selector_max. */
define('PG_SEL_MAX', 10);
function printMessageInfo($imapConnection, $t, $i, $key, $mailbox,
- $start_msg) {
+ $start_msg, $where, $what) {
global $checkall,
$color, $msgs, $msort,
$default_use_priority,
$fontstr_end = '';
}
+ if ($where && $what) {
+ $searchstr = '&where='.$where.'&what='.$what;
+ } else {
+ $searchstr = '';
+ }
/**
* AAAAH! Make my eyes stop bleeding!
* Who wrote this?!
}
$td_str .= '<a href="read_body.php?mailbox='.$urlMailbox
.'&passed_id='. $msg["ID"]
- . '&startMessage='.$start_msg
- .'&show_more=0"';
+ . '&startMessage='.$start_msg.$searchstr.'"';
do_hook("subject_link");
if ($subject != $msg['SUBJECT']) {
$title = get_html_translation_table(HTML_SPECIALCHARS);
$k++;
} while (isset ($key) && ($k < $i));
printMessageInfo($imapConnection, $t, $i, $key, $mailbox,
- $real_startMessage);
+ $real_startMessage, $where, $what);
} else {
$i = $start_msg;
reset($msort);
} while (isset ($key) && ($k < $i));
do {
printMessageInfo($imapConnection, $t, $i, $key, $mailbox,
- $real_startMessage);
+ $real_startMessage, $where, $what);
$key = key($msort);
$t++;
$i++;
echo getButton('SUBMIT', 'markRead',_("Read")) ."\n";
echo getButton('SUBMIT', 'markUnread',_("Unread")) ."\n";
echo getButton('SUBMIT', 'delete',_("Delete")) .' '."\n";
+ echo '<INPUT TYPE="HIDDEN" NAME="location" VALUE="'.$PHP_SELF.'">';
echo "</TD>\n"
. " </TR>\n";