On 2 Feb 2018, at 16:59 (-0500), Kevin A. McGrail wrote:

There is no solution at the moment.  The subject is appended to the body of the text for rule parsing. 

The 2nd sentence is wrong: the subject is *prepended* to the body. Also: the 1st sentence is wrong, there's no *PRETTY* solution.

If every rendered 'body' starts with an appended line containing the Subject (with '^Subject: ' stripped off) then one can solve the problem of matching body rules in the Subject header thus:

body    __DOCUSIGN_BODY_1ST  /\A.*\bdocusign\b.*\n/mi

body    __DOCUSIGN_BODY_NOT1ST  /(?!\A).*\bdocusign\b.*\n/mi

meta DOCUSIGN_BODY (HAS_SUBJECT && __DOCUSIGN_BODY_NOT1ST) || (__DOCUSIGN_BODY_1ST || __DOCUSIGN_BODY_NOT1ST)


--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Currently Seeking Steady Work: https://linkedin.com/in/billcole

Reply via email to