Re: [rt-users] Global scrips not showing up

2012-06-14 Thread Thomas Sibley
On 06/14/2012 10:25 AM, Karger, Amir wrote:
> Ah, I didn't give enough detail. We have a bash script that runs a command
> and emails RT with the results. This lets us record what we actually did
> (and the stdout result) into the ticket without cutting and pasting from
> our ssh window. But it's not going through the web interface.
> 
> (It's your fault for giving us diverse UIs!)

We expose squelching via email headers.

If you don't want RT to notify at _all_ about the email your command
sends, add the following header:

   X-RT-Squelch: yes

If you want to squelch a certain set of recipients RT might otherwise
mail, include a header like:

   RT-Squelch-Replies-To: f...@example.com,b...@example.com



Re: [rt-users] Global scrips not showing up

2012-06-14 Thread Karger, Amir
From: Thomas Sibley 

> On 06/14/2012 09:07 AM, Karger, Amir wrote:
> >Where are the global scrips (e.g., email comments to AdminCc's) hiding?
> >I'd like to set up a Scrip where, if I input some (highly unique) string
> >in the Subject line, then RT doesn't email all AdminCc's. (Even cooler
> >would be if the unique string gets removed or modified before hitting
>the
> >database, so that if someone comments on that comment for some reason,
>the
> >email *will* go to AdminCc's.) Preferably, this would be on a queue by
> >queue basis, though if we make the string random enough, maybe it could
>be
> >global and nobody would notice.
> 
> Why not just use the normal notification squelching available on the
> ticket reply page?
> 
> See the "Scrips and Recipients" below the message box on the reply page.



Ah, I didn't give enough detail. We have a bash script that runs a command
and emails RT with the results. This lets us record what we actually did
(and the stdout result) into the ticket without cutting and pasting from
our ssh window. But it's not going through the web interface.

(It's your fault for giving us diverse UIs!)

-Amir



Re: [rt-users] Global scrips not showing up

2012-06-14 Thread Thomas Sibley
On 06/14/2012 09:07 AM, Karger, Amir wrote:
> We're running RT 4.0.5. If I go to Configuration->Global->Scrips->Select,
> I don't see any scrips. So where are the global scrips (e.g., email
> comments to AdminCc's) hiding? They're in initialdata, but editing them
> there won't help, will it?
> 
> I'm asking because sometimes we want to archive the fact that we did a
> certain task for a ticket, but it doesn't need to fill everyone's mailbox.
> I'd like to set up a Scrip where, if I input some (highly unique) string
> in the Subject line, then RT doesn't email all AdminCc's. (Even cooler
> would be if the unique string gets removed or modified before hitting the
> database, so that if someone comments on that comment for some reason, the
> email *will* go to AdminCc's.) Preferably, this would be on a queue by
> queue basis, though if we make the string random enough, maybe it could be
> global and nobody would notice.

Why not just use the normal notification squelching available on the
ticket reply page?

See the "Scrips and Recipients" below the message box on the reply page.