Support » Plugin: Postie » Multiple Independent “text start” and “text end”

  • Is it possible to have multiple independent sets of words or phrases that postie will start or stop strip text from an email?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Wayne Allen

    (@wayneallen-1)

    There is currently no way to specify multiple start phrases.

    You can use the signature patterns feature for multiple stop phrases, but you will need to use Regular Expressions (RegEx) to specify the text.

    hawkeye1986

    (@hawkeye1986)

    So what would I need to use as a signature pattern to stop the message when postie reads the text “example stop phrase” ?

    Plugin Author Wayne Allen

    (@wayneallen-1)

    For simple phrases you can just add them on their own line.

    The thing to watch out for is that regular expressions assign special meaning to the characters \[].()? and others.

    hawkeye1986

    (@hawkeye1986)

    It looks like I need to include the entirety of the line I wish to clip in order for postie to recognize it for the signature pattern. The problem I have is that I cannot enter a signature pattern line long enough to match the phrase I want to clip (since it needs to be on the same line). Any work around for this? Can I somehow enter a part of the phrase I want to clip OR can I somehow put more characters on one signature line? Thank you.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Yes that is a limitation of using the signature feature.

    Another option is to create a Postie AddOn and use the postie_post_before filter to remove the unwanted parts of the message. See http://postieplugin.com/postie_post_before/

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.