Example #1
0
 $isSpam = 'no';
 $spamBypass = '******';
 $replyID = 0;
 $attString = array();
 $aCount = 0;
 $message = $MSIMAP->readMailBox($mailbox, $i);
 $MSIMAP->log('Data from mailbox: {nl}{nl}' . print_r($message, true));
 $mailSubject = array();
 $mailTemps = array();
 $skipMessage = 'no';
 $filters = array('txt' => 'no', 'matches' => array());
 // Are skip filters enabled?
 if ($IMDT->im_spam == 'yes') {
     if ($B8_CFG->skipFilters) {
         $MSIMAP->log('Skip filters found. Checking name,email,subject and comments for matches..');
         $filters = $MSIMAP->filters(array('name' => $message['from'], 'email' => $message['email'], 'subject' => $MSIMAP->decodeString($message['subject']), 'comments' => $MSBB->cleaner($MSIMAP->decodeString($message['body']))), $B8_CFG->skipFilters);
         $skipMessage = $filters['txt'];
         switch ($skipMessage) {
             case 'no':
                 $MSIMAP->log('No matches found, all fields have passed the skip filter check.');
                 break;
         }
     }
 }
 // If name and/or email contain mailer daemon, we do nothing else..
 if ($skipMessage == 'no') {
     $name = $message['from'];
     $email = $message['email'];
     $subject = $MSIMAP->decodeString($message['subject']);
     $MSIMAP->log('Decoding subject:{nl}{nl}' . $subject);
     $priority = $IMDT->im_priority;