summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-10-22 17:41:22 +0000
committeralecpl <alec@alec.pl>2008-10-22 17:41:22 +0000
commit06343d189ea9a58713fff0482b7cb8e48190f8a0 (patch)
tree7faa05e711b807794e5e8efd3d5b926885f6a506 /program/steps/mail
parentfe7618f1baf08fe8f579b2efdbb7e5200b60e6d4 (diff)
- Added option focus_on_new_message (#1485374)
Diffstat (limited to 'program/steps/mail')
-rw-r--r--program/steps/mail/check_recent.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/program/steps/mail/check_recent.inc b/program/steps/mail/check_recent.inc
index e84d7ba9e..07313c156 100644
--- a/program/steps/mail/check_recent.inc
+++ b/program/steps/mail/check_recent.inc
@@ -41,6 +41,9 @@ foreach ($a_mailboxes as $mbox_name)
$OUTPUT->command('set_rowcount', rcmail_get_messagecount_text());
$OUTPUT->command('set_quota', rcmail_quota_content($IMAP->get_quota()));
+ if (rcmail::get_instance()->config->get('focus_on_new_message',true))
+ $OUTPUT->command('new_message_focus');
+
// add new message headers to list
$a_headers = array();
for ($i=$recent_count, $id=$count_all-$recent_count+1; $i>0; $i--, $id++)