Created
April 8, 2011 15:57
-
-
Save anotheremily/910163 to your computer and use it in GitHub Desktop.
Auto-reply detection in PHP (with Zend)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* See if it's an autoreply | |
* $message is of type Zend_Mail_Message | |
*/ | |
$autoreply = false; | |
try { | |
if ($message->{'X-Autoreply'}) { | |
$autoreply = true; | |
} | |
} catch (Exception $e) {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment