procmail
[Top] [All Lists]

recipe question

2006-05-18 19:02:34
Hi.

I have the following recipe:

:0
* ^TO_test
* ^Subject:.*bld-sparc\.foo.com #[0-9]+
{
        TICKETID=`formail -c -xSubject: |sed -e 's/.*#\([0-9]*\).*/\1/'`
        QUEUE=`/usr/local/rt3/bin/rt show ticket/$TICKETID -f Queue | grep 
Queue | sed -e 's/Queue: //'`

        :0 fhw
        |formail -I"Subject: test"

        :0 hbw
        |/usr/bin/perl /usr/local/rt3/bin/rt-mailgate --queue test --action 
correspond --url $RT_URL
}

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?

Thanks.
Kind regards.
Luke Vanderfluit

-- 
............._..
.|  .| |.|/.|_ .
.|__.|_|.|\.|_ .
:61 421 276 282:

____________________________________________________________
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

<Prev in Thread] Current Thread [Next in Thread>