diff --git a/mail/inc/class.mail_activesync.inc.php b/mail/inc/class.mail_activesync.inc.php index efe4fa188c..47e19b8b9a 100644 --- a/mail/inc/class.mail_activesync.inc.php +++ b/mail/inc/class.mail_activesync.inc.php @@ -1147,7 +1147,8 @@ class mail_activesync implements activesync_plugin_write, activesync_plugin_send debugLog(__METHOD__.__LINE__.' gather Header info:'.$headers['SUBJECT'].' from:'.$headers['DATE']); $output->read = $stat["flags"]; $output->subject = $this->messages[$id]['subject']; - $output->importance = ($this->messages[$id]['priority'] ? $this->messages[$id]['priority']:1) ; + $output->importance = $this->messages[$id]['priority'] > 3 ? 0 : + ($this->messages[$id]['priority'] < 3 ? 2 : 1) ; $output->datereceived = $this->mail->_strtotime($headers['DATE'],'ts',true); $output->displayto = ($headers['TO'] ? $headers['TO']:null); //$stat['FETCHED_HEADER']['to_name'] // $output->to = $this->messages[$id]['to_address']; //$stat['FETCHED_HEADER']['to_name']