[rt-users] Custom scripts based on the email body

Rick Rezinas rick.rezinas at qsent.com
Mon Dec 8 16:21:51 EST 2003


sorry...realized after sending that that's an rt2 enhancement.

On Mon, 08 Dec 2003, Rick Rezinas wrote:

> haven't tried this yet, but check this out:
> 
> http://lists.fsck.com/pipermail/rt-users/2003-January/011843.html
> 
> rick
> 
> On Mon, 08 Dec 2003, Joseph Spenner wrote:
> 
> > Not sure how others would handle it, but I'd use
> > (again) my perl filter.
> > Basically my filter replaces the rt aliases in
> > /etc/aliases with something like:
> > 
> > general: "|/home/gman/scripts/filter.pl"
> > 
> > Then within filter.pl I search for certain content. 
> > If I think it's spam, I just drop it.  If, in your
> > example, I see certain keywords in the body, I could
> > just pass it to a queue with a particular action:
> > 
> > open (PIPE, "|/opt/rt2/bin/rt-mailgate --queue general
> > --action resolve");
> > print PIPE @message;
> > close PIPE;
> > 
> > If you'd like a copy of the filter, let me know and
> > I'll send you a copy.
> > 
> > 
> > --- Miles Scruggs <midgard at garnetws.com> wrote:
> > > How would I perform custom actions, such as
> > > resolving, changing ownership,
> > > etc of a ticket, based on the content of a ticket
> > > and the user?  
> > > 
> > > Basically I want to be able to change the status of
> > > a ticket or the owner
> > > from my mail program, without having to login to the
> > > web interface.
> > > 
> > > I would like to just put some obcure code into the
> > > base, and have it check
> > > me against the user database, to make sure I was
> > > allowed to do it
> > > (status=resolved) (owner=newowner)   
> > > 
> > > How would I go about doing this?
> > > 
> > > Miles Scruggs
> > > 
> > > _______________________________________________
> > > rt-users mailing list
> > > rt-users at lists.fsck.com
> > > http://lists.fsck.com/mailman/listinfo/rt-users
> > > 
> > > Have you read the FAQ? The RT FAQ Manager lives at
> > http://fsck.com/rtfm
> > 
> > 
> > =====
> > "I'm the Commander, see ... I do not need to explain why I say things.  That's the interesting thing about being the President ... [I] don't feel like I owe anybody an explanation."  -- President George W. Bush to the National Security Council
> > 
> > __________________________________
> > Do you Yahoo!?
> > Free Pop-Up Blocker - Get it now
> > http://companion.yahoo.com/
> > _______________________________________________
> > rt-users mailing list
> > rt-users at lists.fsck.com
> > http://lists.fsck.com/mailman/listinfo/rt-users
> > 
> > Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm
> 
> --
> 
> 
> When Gladstone was British Prime Minister he visited Michael Faraday's
> laboratory and asked if some esoteric substance called `Electricity'
> would ever have practical significance.
> "One day, sir, you will tax it," was the answer.
> 					        	-- Science, 1994
> 
> _______________________________________________
> rt-users mailing list
> rt-users at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-users
> 
> Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm



When Gladstone was British Prime Minister he visited Michael Faraday's
laboratory and asked if some esoteric substance called `Electricity'
would ever have practical significance.
"One day, sir, you will tax it," was the answer.
					        	-- Science, 1994




More information about the rt-users mailing list