• Resolved dburk

    (@dburk)


    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 4 replies - 1 through 4 (of 4 total)
  • Thread Starter dburk

    (@dburk)

    EDIT: I’m probably wrong about $email being the structure I’m looking for. I suspect $email is not the entire raw email information but just one of the fields parsed out of $email. Not sure what other elements are parsed out of the email text. Wondering if I’m going to have to parse the fields I need out of the full content. So I’m either looking for all fields that might be available from the parsing (including what was in the “From” field before Postie shortened it), OR I need to know where to get at the full text of the email so I can change it before Postie does anything with it.

    I hope I’m making any kind of sense with my question. Thank you again.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Thread Starter dburk

    (@dburk)

    Thanks for the response. I understand using the postie_post_before to modify the post. What I’m trying to get to is the full content of the email itself before it gets put into the fields of the post. Is there a way to get to the email itself and either modify it or modify the post based on information in the email that is not being used by Postie in the $post?

    I hope my question is making sense.

    Thank you very much!
    Danny

    Plugin Author Wayne Allen

    (@wayneallen-1)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Using full “From” Information’ is closed to new replies.