summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
authorsvncommit <devs@roundcube.net>2006-07-03 20:14:26 +0000
committersvncommit <devs@roundcube.net>2006-07-03 20:14:26 +0000
commitb4b081713ee88c9a7b2515d18c36bedf966641ce (patch)
tree26f751bf24530a6974827f9efc00f80a26fb2cfb /program/steps/mail
parent50844277ca2ce9b98f5d732b07ffe7a4627ff72c (diff)
Workaround for drag-drop using whitespace in FF, Junk emptying, misc fixes
Diffstat (limited to 'program/steps/mail')
-rw-r--r--program/steps/mail/func.inc7
1 files changed, 6 insertions, 1 deletions
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 .= '<img src="http://www.whidbey.com/roundcube/roundcubemail/skins/default/images/cleardot.png" height="1" width="1000">';
+ }
else if ($col=='size')
$cont = show_bytes($header->$col);
else if ($col=='date')