Skip to main content

How to strip from email subjects via the ontology?

  • February 2, 2022
  • 2 replies
  • 8 views

Forum|alt.badge.img+9

Any thoughts on how to strip things like Re: Fwd: and Fw: from email subjects via the ontology? These two regex patterns are close but have issues:

(?i)[^(Fwd:) |Re: ].*,?

(?:(?i)re: |fwd: |fw: )?(.*)

2 replies

  • February 2, 2022

Are you using the exchange/email connector? If so, you can use 'capture group' regexes in the connector's configuration to extract new fields and then just pick them up with the ontology


Forum|alt.badge.img+9
  • Author
  • New Member
  • February 2, 2022

Ah, that's a good point. I'm using a custom mailgun connector but could probably borrow the code from the exchange connector. Thanks!