Hi
I am looking to check all incoming mail for certain keywords and then to insert the mail as a post in wordpress.
The logic is this:
1. decompil the mail message.
2. concatenate the subject, headers and body and test against the keyword filter.
3. if the filter returns a matching category, insert the body as a post in that category
4. if the filter contains no matching category, iterate through the attachments and test those. stop when a keyword match is first hit.
5. once the category is known, add each attachment into wordpress and add them to the post.
I have a php solution to this but it's slow and cumbesome.
can this be done with postfix (the wordpress manipulations would be done through php)?
I have read the postfix guide from o'reilly but confess not to being much the wiser after. If someone were able to point me in the right direction for how to:
1. disassemble the mail
2. pass various bits of it to an external script
i would be most grateful!
thanks
Justin
I am looking to check all incoming mail for certain keywords and then to insert the mail as a post in wordpress.
The logic is this:
1. decompil the mail message.
2. concatenate the subject, headers and body and test against the keyword filter.
3. if the filter returns a matching category, insert the body as a post in that category
4. if the filter contains no matching category, iterate through the attachments and test those. stop when a keyword match is first hit.
5. once the category is known, add each attachment into wordpress and add them to the post.
I have a php solution to this but it's slow and cumbesome.
can this be done with postfix (the wordpress manipulations would be done through php)?
I have read the postfix guide from o'reilly but confess not to being much the wiser after. If someone were able to point me in the right direction for how to:
1. disassemble the mail
2. pass various bits of it to an external script
i would be most grateful!
thanks
Justin