summaryrefslogtreecommitdiff
path: root/program/lib/imap.inc
diff options
context:
space:
mode:
Diffstat (limited to 'program/lib/imap.inc')
-rw-r--r--program/lib/imap.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/program/lib/imap.inc b/program/lib/imap.inc
index 8cb5d4a05..a7462a373 100644
--- a/program/lib/imap.inc
+++ b/program/lib/imap.inc
@@ -126,6 +126,7 @@ class iilBasicHeader
var $f;
var $internaldate;
var $references;
+ var $priority;
var $mdn_to;
var $mdn_sent = false;
var $is_reply = false;
@@ -1515,7 +1516,7 @@ function iil_C_FetchHeaders(&$conn, $mailbox, $message_set, $uidfetch=false) {
$request .= " FETCH $message_set (BODY.PEEK[HEADER.FIELDS ";
$request .= "(DATE FROM TO SUBJECT REPLY-TO IN-REPLY-TO CC BCC ";
$request .= "CONTENT-TRANSFER-ENCODING CONTENT-TYPE MESSAGE-ID ";
- $request .= "REFERENCES DISPOSITION-NOTIFICATION-TO)])\r\n";
+ $request .= "REFERENCES DISPOSITION-NOTIFICATION-TO X-PRIORITY)])\r\n";
if (!fputs($fp, $request)) {
return false;
@@ -1625,6 +1626,10 @@ function iil_C_FetchHeaders(&$conn, $mailbox, $message_set, $uidfetch=false) {
case 'message-id':
$result[$id]->messageID = $string;
break;
+ case 'x-priority':
+ if (preg_match('/^(\d+)/', $string, $matches))
+ $result[$id]->priority = intval($matches[1]);
+ break;
} // end switch ()
} // end while ()
} else {