[rt-users] RT customize SendEmail.pm
Alex Peters
alex at peters.net
Fri Feb 27 22:13:02 EST 2015
For posterity, RT v4.2.10 introduces the ability to add groups as
requestors. If I understand this thread correctly ("a group of people
belonging to another queue are requesting work in this queue"), RT v4.2.10
should allow the desired behaviour without code modifications.
On Fri, 20 Feb 2015 at 21:10 Sternberger, Sven <sven.sternberger at desy.de>
wrote:
> Hello!
>
> just for the records.
>
> To disable the check for outgoing emails if they
> contain Adresses RT thinks they will create a loop
> you have to create
>
> /opt/rt4/lib/RT/Action/SendEmail_Local.pm
>
> and disable there the check.
>
> To be able to enter a RT adress without error messages in the
> WebUI you have to create
> /opt/rt4/local/html/Ticket/Update.html
> /opt/rt4/local/html/Ticket/Create.html
> /opt/rt4/local/html/m/ticket/create
> /opt/rt4/local/html/m/ticket/reply
>
> and disable there the check.
>
> I also found the check here:
> /opt/rt4/lib/RT/Record/Role/Roles.pm
> no idea when this wil be used.
>
> result:
>
> * In incomming emails, the queue email adress is removed.
> * I can create a ticket in the WebUI set the requestor/cc/admincc to a
> "RT" mail address.
> * My procmail recipes prevents RT loops but send the mail to the queue
> staff
>
> regards!
>
> Sven
>
> ----- Ursprüngliche Mail -----
> > Von: "Sternberger, Sven" <sven.sternberger at desy.de>
> > An: rt-users at lists.bestpractical.com
> > Gesendet: Mittwoch, 28. Januar 2015 10:40:32
> > Betreff: RT customize SendEmail.pm
>
> > Hello!
> >
> >
> > I want to modify the SendEmail.pm module, to disable the
> > check for RTAdresses, so we want to send emails
> > even if RT thinks they are RT email adresses.
> >
> > I would copy the file SendEmail.pm to "SendEmail_Local.pm" and remove
> > these lines
> >
> > $self->RecipientFilter(
> > Callback => sub {
> > return unless RT::EmailParser->IsRTAddress( $_[0] );
> > return "$_[0] appears to point to this RT instance. Skipping";
> > },
> > All => 1,
> > );
> >
> > would this work?
> >
> > regards!
> >
> > Sven
> >
> > Sven Sternberger
> > System Engineer
> > Tel.: 040/8998-4397
> > DESY IT
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20150228/9daf445d/attachment.htm>
More information about the rt-users
mailing list