function getPriority($mid) { if ($this->tnef && isset($this->tnef->Importance)) { // PidTagImportance is 0, 1, or 2, 2 is high // http://msdn.microsoft.com/en-us/library/ee237166(v=exchg.80).aspx $urgency = 4 - $this->tnef->Importance; } elseif ($priority = Mail_Parse::parsePriority($this->getHeader($mid))) { $urgency = $priority + 1; } if ($urgency) { $sql = 'SELECT `priority_id` FROM ' . PRIORITY_TABLE . ' WHERE `priority_urgency`=' . db_input($urgency) . ' LIMIT 1'; $id = db_result(db_query($sql)); return $id; } }
function getPriority() { return Mail_Parse::parsePriority($this->getHeader()); }
function getPriority($mid) { if ($this->tnef && isset($this->tnef->Importance)) { // PidTagImportance is 0, 1, or 2 // http://msdn.microsoft.com/en-us/library/ee237166(v=exchg.80).aspx return $this->tnef->Importance + 1; } return Mail_Parse::parsePriority($this->getHeader($mid)); }