• Resolved Ulrich

    (@ulrichboehm)


    Hey,
    while testing your plugin I have seen that your methods for stripping quoted content (method create_post() in postie-message.php) is only working with mails written with a mail client based on english language.
    For Example, you try to do a preg_match() with /^on.*?wrote:$/iu which is working perfectly fine with english based mails, but in a german mail you have Am 15.11.2020 um 20:30 schrieb Henry: as headline for the quoted content.

    What about modifying this part of the code to add additional preg_match rules based on config values? Perhaps you can implement that in one of the next versions.

    Thank you for your work.
    Best regards,
    Ulrich

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

    (@wayneallen-1)

    Thanks Ulrich. There are a couple places where the assumption is English. A lot of this code pre-dates my adoption of the codebase.

    Additionally not every mail client does forwarding, replying, quoting the same way so there hasn’t been a good way to fix it in general.

    At this point if people need something specific (which rarely comes up) it is done via postie_post_before.

Viewing 1 replies (of 1 total)
  • The topic ‘Quoted content stripping not working for other languages’ is closed to new replies.