luke(_at_)chipcity(_dot_)com(_dot_)au schreef:
I get a TICKETID then I call an external Utility that extracts a
QUEUE variable. That all works fine.
Now I want to test on the QUEUE variable. If it's 'foo' then do one
thine, if it's 'bar' do another.
Is that possible in procmail?
:0
* ^TO_test
* ^Subject: .* bld-sparc\.foo\.com #\/[0-9]+
{
QUEUE = `/usr/local/rt3/bin/rt show \
ticket/$MATCH -f Queue \
| sed -n '/^Queue: */ { s///; p
}'`
:0
* QUEUE ?? ^^foo^^
action1
:0E
* QUEUE ?? ^^bar^^
action2
:0E
action3
}
--
Groet, Ruud
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail