* Mail/ActiveSync: fix priority issue on retrieval of messages

This commit is contained in:
Klaus Leithoff 2015-06-30 15:24:06 +00:00
parent be9cd16de4
commit cec90fe064

View File

@ -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']