예제 #1
0
 function testAutoReplyHeaders()
 {
     static $headers = array('Auto-Submitted: auto-replied', 'Precedence: auto_reply', 'X-Precedence: auto_reply', 'X-Autorespond: osTicket v1.8.0.2 Released', 'Auto-Submitted: auto-generated', 'X-Autogenerated: Reply');
     foreach ($headers as $h) {
         $this->assert(TicketFilter::isAutoReply($h), $h . ": Unidentified auto-reply");
     }
 }
 function isAutoReply()
 {
     if (!isset($this->is_autoreply)) {
         $this->is_autoreply = $this->getEmailHeaderArray() ? TicketFilter::isAutoReply($this->getEmailHeaderArray()) : false;
     }
     return $this->is_autoreply;
 }