From 4b21d26879648db39445819456bcf8c630a653e8 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Wed, 21 Sep 2011 03:18:26 -0400 Subject: [PATCH] - Add Priority filter to the messages list --- CHANGELOG | 1 + program/steps/mail/func.inc | 5 +++++ 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 56fab72..2b2cfbe 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,7 @@ CHANGELOG Roundcube Webmail =========================== +- Add Priority filter to the messages list - Cache synchronization using QRESYNC/CONDSTORE - Fix locked folder rename option on servers supporting RFC2086 only (#1488089) - Trigger 'new_messages' hook for all checked folders (#1488083) diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index cbcc71a..57ad9c7 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -1545,6 +1545,11 @@ $select_filter->add(rcube_label('unanswered'), 'UNANSWERED'); if (!$CONFIG['skip_deleted']) $select_filter->add(rcube_label('deleted'), 'DELETED'); + $select_filter->add(rcube_label('priority').': '.rcube_label('highest'), 'HEADER X-PRIORITY 1'); + $select_filter->add(rcube_label('priority').': '.rcube_label('high'), 'HEADER X-PRIORITY 2'); + $select_filter->add(rcube_label('priority').': '.rcube_label('normal'), 'NOT HEADER X-PRIORITY 1 NOT HEADER X-PRIORITY 2 NOT HEADER X-PRIORITY 4 NOT HEADER X-PRIORITY 5'); + $select_filter->add(rcube_label('priority').': '.rcube_label('low'), 'HEADER X-PRIORITY 4'); + $select_filter->add(rcube_label('priority').': '.rcube_label('lowest'), 'HEADER X-PRIORITY 5'); $out = $select_filter->show($_SESSION['search_filter']); -- Gitblit v1.9.1