[rt-users] aborting ticket creation via scrip

Phil Homewood pdh at bestpractical.com
Mon Jul 18 23:44:30 EDT 2005


Joby Walker wrote:
> I'm pretty sure this isn't possible with a scrip.  What you could do is
> on create set the status to "deleted" when matching your criteria.

Correct; the scrip only fires once the ticket is created. It
can't prevent the creation.

Another approach would be to filter the mail (using procmail or
Mail::Audit or whatever you like) prior to injecting into RT.

> O. Ododa wrote:
> > I'm trying to find a way to get RT not to create a ticket when it
> > receives an email that matches certain criteria (is in a specific queue,
> > subject matches or doesn't match a regex, content lines match or don't
> > match a specific regex).
> > 
> > I've written the scrip and if a given check fails, I 'return undef;',
> > but RT creates the ticket anyway. Is there any way to avoid this? I've
> > searched the archive, and have come up empty.
-- 
>>|<< http://www.bestpractical.com/rt  -- Trouble Ticketing. Free.



More information about the rt-users mailing list