[rt-users] Scrip check body of email for text
Kevin Squire
gentgeen at wikiak.org
Mon Nov 16 10:14:15 EST 2009
I am modifying the scrip found at
http://www.gossamer-threads.com/lists/rt/users/70038#70038
posted by gleduc at ----- and could use some help
The original, "true if e-mail contains 'ok'"
&& $Transaction->Content =~ /\bok\s/i;
I need to make it true IF a line (any line - 1st, 2nd, etc) starts with
"RMA" and ends with "has been received"
An example line is:
"RMA-47767-1 has been received "
(This email is coming in from a third party, that I do NOT have much
control over their setup... so there may or may not be a space at the
end of the line, and I can't not control if it is the 1st line or not -
it always appears as the first line of TEXT .. but I am pretty sure
their system is adding a extra blank line or two at the beginning of
the body)
--
http://www.wikiak.org
#############################################################
Associate yourself with men of good quality if you esteem
your own reputation; for 'tis better to be alone then in bad
company. - George Washington, Rules of Civility
More information about the rt-users
mailing list