Using filter postie_post_before to identify a response
-
Hi Postie friends,
Thanks for your great plugin. I’m working on a CRM project using Postie and it works great! Just a question about the filter…
Using postie_post_before (or other), is there an easy way to know if the email is a response or not? I mean, since Postie needs to do it before save the post, it uses any variable to store it that we can use?
I’m trying to do it this way:
$email_title = $post['post_title']; $find = "Re:"; $email_response = stripos($email_title, $find); if ( $email_resposta !== false ) { $response = true; } else { $response = false; }
It looks good, but always return false, even if it’s a response.
Any help??
Thanks!
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Using filter postie_post_before to identify a response’ is closed to new replies.