Quantcast
Viewing all articles
Browse latest Browse all 59525

Extracting and Modifying Information in $email

Replies: 0

(I apologize if I’ve put this in the wrong place either this time or in the main forum…I new at this posting stuff!)
Hi! Postie is a great plugin…thank you! I will be getting at least one of the plugins shortly so I can deal with categories more fully.

In the meantime, I have what I suspect are really easy questions. Here’s what I’m trying to do: There is information in the original email’s “From” field that I want to put into the “Subject” line and I want to reformat the information in the “Body” before Postie does its “thing.” I don’t need to change what’s actually in the “From” field so that I won’t be messing up what Postie is doing.

1) Which filter do I want to add my filter after so that I have all the $email information and process it before Postie starts using it to create the $post?

2) What would the syntax be for getting information out of the $email structure and then for putting replacement information back into the $email structure?

3) Presumably I would simply return $email after I’m done with it, but can you confirm this?

Thanks very much for your help with this!


Viewing all articles
Browse latest Browse all 59525

Trending Articles