Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Users

Disabling autoreplies for just one queue

 

 

Request Tracker users RSS feed   Index | Next | Previous | View Threaded


baloo at ursine

Dec 26, 2006, 12:02 PM

Post #1 of 8 (2651 views)
Permalink
Disabling autoreplies for just one queue

Is it possible to completely disable autoreplies for a specific queue?
Doing so would make RT suitable for use to check the postmaster@ mailbox
without causing inadvertent spam backscatter with RT autoreplies going to
forged From: addresses.


_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales[at]bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


rickr at rice

Dec 26, 2006, 3:12 PM

Post #2 of 8 (2623 views)
Permalink
Re: Disabling autoreplies for just one queue [In reply to]

You have to replace the default autoreply scrip with a new scrip with a
custom condition like so:

> my $Ticket = $self->TicketObj;
> my $Transaction = $self->TransactionObj;
>
> if ( ($Transaction -> Type eq 'Create')
> && !($Ticket->Queue eq '55')
> && !($Ticket->Queue eq '65')
> && !($Ticket->Queue eq '67')
> && !($Ticket->Queue eq '68')
> && !($Ticket->Queue eq '70')
> && !($Ticket->Queue eq '77')
> && !($Ticket->Queue eq '78') )
> { return (1); }
> else
> {return (undef); }

As you can see, I've got a whole bunch of exceptions in there. If you
prefer to match by name, I suppose you could use

$Ticket->QueueObj->Name eq 'Whatever'

instead.

Rick R.

Paul Johnson wrote:
> Is it possible to completely disable autoreplies for a specific queue?
> Doing so would make RT suitable for use to check the postmaster@ mailbox
> without causing inadvertent spam backscatter with RT autoreplies going to
> forged From: addresses.
>
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales[at]bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales[at]bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


baloo at ursine

Dec 27, 2006, 11:49 AM

Post #3 of 8 (2605 views)
Permalink
Re: Disabling autoreplies for just one queue [In reply to]

http://wiki.ursine.ca/Top_posting

Rick Russell wrote:

> You have to replace the default autoreply scrip with a new scrip with a
> custom condition like so:

OK, I think I follow now. I take it I was correct in thinking that scrips
can only be set universally and not overridden on a per-queue basis?


_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales[at]bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


pape-rt at inf

Dec 27, 2006, 1:15 PM

Post #4 of 8 (2620 views)
Permalink
Re: Re: Disabling autoreplies for just one queue [In reply to]

Hello,

--Am 27. Dezember 2006 11:49:15 -0800 schrieb Paul Johnson
<baloo[at]ursine.ca>:

> OK, I think I follow now. I take it I was correct in thinking that scrips
> can only be set universally and not overridden on a per-queue basis?

you can use my addition/patch shown at
<http://page.mi.fu-berlin.de/~pape/rt3screenshots/> to add this ability to
rt. (Bottom of the page, [download]), see the README in the download
directory to know how to proceed with either version of rt.

regards, Dirk.

_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales[at]bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


baloo at ursine

Dec 28, 2006, 12:47 AM

Post #5 of 8 (2610 views)
Permalink
Re: Disabling autoreplies for just one queue [In reply to]

Rick Russell wrote:

>
> You have to replace the default autoreply scrip with a new scrip with a
> custom condition like so:
>
>> my $Ticket = $self->TicketObj;
>> my $Transaction = $self->TransactionObj;
>>
>> if ( ($Transaction -> Type eq 'Create')
>> && !($Ticket->Queue eq '55')
>> && !($Ticket->Queue eq '65')
>> && !($Ticket->Queue eq '67')
>> && !($Ticket->Queue eq '68')
>> && !($Ticket->Queue eq '70')
>> && !($Ticket->Queue eq '77')
>> && !($Ticket->Queue eq '78') )
>> { return (1); }
>> else
>> {return (undef); }
>
> As you can see, I've got a whole bunch of exceptions in there. If you
> prefer to match by name, I suppose you could use
>
> $Ticket->QueueObj->Name eq 'Whatever'
>
> instead.

OK, I'm not sure this works as advertised, as I get lines like this in my
log...

Dec 27 23:02:45 ursine RT: Scrip 3 IsApplicable failed: Global
symbol "$Transaction" requires explicit package name at (eval 1086) line 2.
Global symbol "$Ticket" requires explicit package name at (eval 1086) line
3. (/usr/share/request-tracker3.6/lib/RT/Condition/UserDefined.pm:67)
Dec 27 23:56:33 ursine RT: Scrip 3 IsApplicable failed: Global
symbol "$Transaction" requires explicit package name at (eval 1108) line 2.
Global symbol "$Ticket" requires explicit package name at (eval 1108) line
3. (/usr/share/request-tracker3.6/lib/RT/Condition/UserDefined.pm:67)



_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales[at]bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


vivek at khera

Dec 28, 2006, 12:58 PM

Post #6 of 8 (2603 views)
Permalink
Re: Re: Disabling autoreplies for just one queue [In reply to]

On Dec 27, 2006, at 2:49 PM, Paul Johnson wrote:

> http://wiki.ursine.ca/Top_posting
>
> Rick Russell wrote:
>
>> You have to replace the default autoreply scrip with a new scrip
>> with a
>> custom condition like so:
>
> OK, I think I follow now. I take it I was correct in thinking that
> scrips
> can only be set universally and not overridden on a per-queue basis?

Disable the global scrip, and add an auto-reply per queue for the
queues which need it. We use a custom template per queue so it was
natural to do this anyhow.

The other global scrips are all sensible for all queues the way we
use them.
Attachments: smime.p7s (2.47 KB)


baloo at ursine

Jan 13, 2007, 12:43 PM

Post #7 of 8 (2547 views)
Permalink
Re: Re: Disabling autoreplies for just one queue [In reply to]

Vivek Khera wrote:

> On Dec 27, 2006, at 2:49 PM, Paul Johnson wrote:
>
>> Rick Russell wrote:
>>
>>> You have to replace the default autoreply scrip with a new scrip
>>> with a
>>> custom condition like so:
>>
>> OK, I think I follow now. I take it I was correct in thinking that
>> scrips can only be set universally and not overridden on a per-queue
>> basis?
>
> Disable the global scrip, and add an auto-reply per queue for the
> queues which need it.

Is this documented in a straightforward manner somewhere? I seem to be
getting hung up on this.


_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales[at]bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


spydrrrrr at gmail

Jan 15, 2007, 7:17 AM

Post #8 of 8 (2528 views)
Permalink
Re: Re: Re: Disabling autoreplies for just one queue [In reply to]

I do this all the time. Disabling a response or changing a response
for a specific queue.
You simply have to assign a specific autoreply for each queue and then
you can change or modify or disable them as you wish.

If you do not know how to do this let me know and I can help

On 1/13/07, Paul Johnson <baloo[at]ursine.ca> wrote:
> Vivek Khera wrote:
>
> > On Dec 27, 2006, at 2:49 PM, Paul Johnson wrote:
> >
> >> Rick Russell wrote:
> >>
> >>> You have to replace the default autoreply scrip with a new scrip
> >>> with a
> >>> custom condition like so:
> >>
> >> OK, I think I follow now. I take it I was correct in thinking that
> >> scrips can only be set universally and not overridden on a per-queue
> >> basis?
> >
> > Disable the global scrip, and add an auto-reply per queue for the
> > queues which need it.
>
> Is this documented in a straightforward manner somewhere? I seem to be
> getting hung up on this.
>
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales[at]bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales[at]bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Request Tracker users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.