[Rtir] Disabling Autoresponder to specific addresses

Ruediger Riediger ruediger.riediger at Sun.COM
Tue Nov 9 03:27:06 EST 2004


Jarrod Loidl wrote:
> Is it possible to disable the Autoresponder in RTIR/RT3 so that it will
> not autorespond to a specific address? Failing that is it possible to
> disable autoresponding all together?

I am currently looking at the other way round (only send an auto-reply 
if the recipient has a corporate email address). It should be easy 
enough as you only need to copy over /opt/rt3/lib/RT/Action/Autoreply.pm 
to /opt/rt3/local/lib/RT/Action/MyAutoreply.pm, register the new Action, 
change all scripts with "Autoreply" to "MyAutoreply" and set the 
recipients only if they match a certain pattern (probably something to 
import from RT_SiteConfig.pm). Note that this might generate warnings 
about empty recipient lists.

sub SetRecipients {
     my $self=shift;
     my $recipient = $self->TicketObj->Requestors->MemberEmailAddresses;

     push(@{$self->{'To'}}, $recipient) if($recipient =~ 
/$RT::autoreplypattern/oi);

     return(1);
}

and RT_SiteConfig.pm:

$autoreplypatter = '@(host\.)?my\.domain';


It's on my "to-do" list, so the above is not tested.

Best regards,

	Ruediger Riediger

-- 
Dr. Ruediger Riediger                              Sun Microsystems GmbH
NSG - SunCERT                                             Komturstr. 18a
mailto:Ruediger.Riediger at Sun.com                          D-12099 Berlin
------------------------------------------------------------------------
NOTICE:  This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
------------------------------------------------------------------------
PGP 2048RSA/0x2C5020E9          964C E189 0FF0 8882  2BAB 65E2 6912 1FF2
------------------------------------------------------------------------


More information about the Rtir mailing list