From b4b081713ee88c9a7b2515d18c36bedf966641ce Mon Sep 17 00:00:00 2001 From: svncommit Date: Mon, 3 Jul 2006 20:14:26 +0000 Subject: Workaround for drag-drop using whitespace in FF, Junk emptying, misc fixes --- program/steps/mail/func.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'program/steps/mail/func.inc') diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 266c16336..4e88871cf 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -67,7 +67,8 @@ if ($CONFIG['trash_mbox']) if ($CONFIG['drafts_mbox']) $OUTPUT->add_script(sprintf("%s.set_env('drafts_mailbox', '%s');", $JS_OBJECT_NAME, $CONFIG['drafts_mbox'])); - +if ($CONFIG['junk_mbox']) + $OUTPUT->add_script(sprintf("%s.set_env('junk_mailbox', '%s');", $JS_OBJECT_NAME, $CONFIG['junk_mbox'])); // return the mailboxlist in HTML function rcmail_mailbox_list($attrib) @@ -433,7 +434,11 @@ function rcmail_message_list($attrib) if ($col=='from' || $col=='to') $cont = rep_specialchars_output(rcmail_address_string($header->$col, 3, $attrib['addicon'])); else if ($col=='subject') + { $cont = rep_specialchars_output($IMAP->decode_header($header->$col), 'html', 'all'); + // firefox/mozilla workaround to pad subject with content so that whitespace in rows responds to drag+drop + $cont .= ''; + } else if ($col=='size') $cont = show_bytes($header->$col); else if ($col=='date') -- cgit v1.2.3