Ignore attach keywords after "From:" RRS feed

  • Question

  • Hi,

    The noreply home page mentions that one can configure the attach filters so that any keyword found after "From" or ">" would be ignored.

    That would be great as it would remove "false positives".

    The instructions are that I need to use the following expression: "((?m)^\s*>.*)|((?s)(^|\n|\r)From: .*$)"

    Currently, my "attachment" list of words is "attach;attached;attachment" (without quotes). And that works fine.

    However, pasting the expression above in the attachment or the noattachment field doesn't work.

    Can you help?

    What should my attachment and noattachment box look like in order to flag a warning when the key words "attach","attached","attachment" are included in the current message. But ignores the same keywords found after "From:". Thanks,


    Friday, March 1, 2013 7:04 PM

All replies

  • Now that my primary machine is running Office 2013 I can't test this at the moment to check that I've not goofed, but I can hit a test box at the start of the week. (Outlook 2013 has its own missing attachment detector, so I disable the add-in's.)

    That string should go in the exclusion (noattachment) field, and you also need to tick the regular expression checkbox. You could also try it a bit at a time... To exclude stuff after From: only, type "(?s)From: .*$" (no quotes) in the box - now, that will fire on any "From:" not just those at the start of a line, so try putting the "(^|\n|\r)" after the (?s) bit (again no quotes). The rest of the longer string above is something to ignore > lines, so you can stop here if that's not of interest. Do let me know how you get on.

    BTW: not that it makes any difference here, but you can reduce your inclusion string to just "attach" since that'll match those characters within attached and attachment already.

    Saturday, March 2, 2013 7:58 AM
  • Hi Gavin,

    It works!

    Thanks for your help.

    To be clear for others, with the same challenge. The solution is:

    Attachments: attach

    NoNattachements: (?s)(^|\n|\r)From: .*$

    Interpret exclusions...: checked.


    Monday, March 4, 2013 5:37 PM