Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Postfix mail categoriser

Status
Not open for further replies.

jpadie

Technical User
Nov 24, 2003
10,094
FR
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top