Scrip action

Hi there;

I wonder if you can help me, I would like to be able to mail a certain
recipient which is not a requestor/AdminCC/Owner or any of that under
certain conditions …I know how to do the condition however not sure what is
the code in the action part …

Roy

I believe all you need to do is select ‘Other Recipients’ and
in your template start it with:

My template text…On Thu, Oct 14, 2004 at 12:59:09AM +0100, Raed El - Hames wrote:

Hi there;

I wonder if you can help me, I would like to be able to mail a certain
recipient which is not a requestor/AdminCC/Owner or any of that under
certain conditions …I know how to do the condition however not sure what is
the code in the action part …

Roy


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

Be sure to check out the RT wiki at http://wiki.bestpractical.com

Another method would be to use the RT::Action::NotifyGroup tool that Ruslan
posted earlier today. I already have this in production and have been very
pleased with it:
http://search.cpan.org/~ruz/RT-Action-NotifyGroup/

Make sure you look in the sbin/ directory, as there is a tool there that will
help inserting the proper rows in to the ScripActions table in the RT
database, making them valid choices from the RT Scrip editor.

-jdOn Wed, 13 Oct 2004, Todd Chapman wrote:

I believe all you need to do is select ‘Other Recipients’ and
in your template start it with:


To: recip@email.com

My template text…

On Thu, Oct 14, 2004 at 12:59:09AM +0100, Raed El - Hames wrote:

Hi there;

I wonder if you can help me, I would like to be able to mail a certain
recipient which is not a requestor/AdminCC/Owner or any of that under
certain conditions …I know how to do the condition however not sure what is
the code in the action part …

Roy


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

Be sure to check out the RT wiki at http://wiki.bestpractical.com


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

Be sure to check out the RT wiki at http://wiki.bestpractical.com

thanks Todd, I think notify other Recpients mail the CCs list (which not
what I want :(?? if not how do I add the email address I wish to mail?? …
,
I opted to use RT-Action-NotifyGroup …but I would like to know how to use
’Other Recipients’

Thanks once again;

RoyFrom: “Todd Chapman” rt@chaka.net
To: “Raed El - Hames” r@elhames.co.uk
Cc: rt-users@lists.fsck.com
Sent: Thursday, October 14, 2004 3:08 AM
Subject: Re: [rt-users] scrip action

I believe all you need to do is select ‘Other Recipients’ and
in your template start it with:


To: recip@email.com

My template text…

Hi there;

I wonder if you can help me, I would like to be able to mail a certain
recipient which is not a requestor/AdminCC/Owner or any of that under
certain conditions …I know how to do the condition however not sure
what is

the code in the action part …

Roy


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

Be sure to check out the RT wiki at http://wiki.bestpractical.com

Mail other recipients mails people who are in the To: header
has shown below.

-ToddOn Sun, Oct 17, 2004 at 04:46:54PM +0100, Raed El - Hames wrote:

thanks Todd, I think notify other Recpients mail the CCs list (which not
what I want :(?? if not how do I add the email address I wish to mail?? …
,
I opted to use RT-Action-NotifyGroup …but I would like to know how to use
’Other Recipients’

Thanks once again;

Roy

----- Original Message -----RT-Action-NotifyGroup/

From: “Todd Chapman” rt@chaka.net
To: “Raed El - Hames” r@elhames.co.uk
Cc: rt-users@lists.fsck.com
Sent: Thursday, October 14, 2004 3:08 AM
Subject: Re: [rt-users] scrip action

I believe all you need to do is select ‘Other Recipients’ and
in your template start it with:


To: recip@email.com

My template text…

On Thu, Oct 14, 2004 at 12:59:09AM +0100, Raed El - Hames wrote:

Hi there;

I wonder if you can help me, I would like to be able to mail a certain
recipient which is not a requestor/AdminCC/Owner or any of that under
certain conditions …I know how to do the condition however not sure
what is

the code in the action part …

Roy


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

Be sure to check out the RT wiki at http://wiki.bestpractical.com

Todd Chapman wrote:

Mail other recipients mails people who are in the To: header
has shown below.

Todd, are you shure??? Show me code that do it! May be you saw document
that says it(we should fix such doc).

About ‘Otherrecipients’:

OtherRecipients do only one thing. RT Web UI pages where you can
reply/comment on ticket contain two special input boxes ‘Cc’ and 'Bcc’
with notes “Sends a [blind] carbon-copy of this update to a
comma-delimited list of email addresses. Does not change who will
receive future updates”. You can fill this fields. Email addresses in
this boxes would be ‘OtherRecipients’. Unless you have some notification
scrips that notify ‘OtherRecipients’ this input boxes are useless.
In terms of header fields it’s ‘RT-Send-Cc’ and ‘RT-Send-Bcc’, but not ‘To’.

Relevant block of code from Action/Notify.pm
if ( $arg =~ /\bOtherRecipients\b/ ) {
if ( $self->TransactionObj->Attachments->First ) {
my @cc_addresses =
Mail::Address->parse($self->TransactionObj->Attachments->First->GetHeader(‘RT-Send-Cc’));
foreach my $addr (@cc_addresses) {
push @Cc, $addr->address;
}
my @bcc_addresses =
Mail::Address->parse($self->TransactionObj->Attachments->First->GetHeader(‘RT-Send-Bcc’));

         foreach my $addr (@bcc_addresses) {
               push @Bcc, $addr->address;
         }



     }
 }

About Todd’s suggestion:

Raed, You can use trick that was suggested by Todd, but it works not
only when RT notifies ‘OtherRecipients’, but everytime when RT uses that
template(where you’ve add such line). How and why it works:
http://wiki.bestpractical.com/index.cgi?Template

About RT-Action-NotifyGroup

RT-Action-NotifyGroup has several benefits against adding headers via
template:

  1. You can notify RT groups

  2. You don’t hide info in the template

  3. It’s standalone action that does what it should do

     		Best regards. Ruslan.

Hi!

OtherRecipients do only one thing. RT Web UI pages where you can
reply/comment on ticket contain two special input boxes ‘Cc’ and 'Bcc’
with notes “Sends a [blind] carbon-copy of this update to a
comma-delimited list of email addresses. Does not change who will
receive future updates”. You can fill this fields. Email addresses in
this boxes would be ‘OtherRecipients’.

This seems to be okay, see RTWIKI
(http://wiki.bestpractical.com/index.cgi?ManualScrips)

Unless you have some notification
scrips that notify ‘OtherRecipients’ this input boxes are useless.

So and again to say! They are also useless if you create a ticket because:

On Create Notify Other Recipients with template Correspondence

DONT’T WORK which is very annoying, because this is exactly what our
users think would happen when they enter a email address in CC when they
create a new ticket.

BTW: This works in 2.0.15

best regards!

Sven Sternberger wrote:

Hi!

OtherRecipients do only one thing. RT Web UI pages where you can
reply/comment on ticket contain two special input boxes ‘Cc’ and 'Bcc’
with notes “Sends a [blind] carbon-copy of this update to a
comma-delimited list of email addresses. Does not change who will
receive future updates”. You can fill this fields. Email addresses in
this boxes would be ‘OtherRecipients’.

This seems to be okay, see RTWIKI
(http://wiki.bestpractical.com/index.cgi?ManualScrips)
Scanty amount of info that users want to see there. Don’t you want to
help? (-;

Unless you have some notification scrips that notify 'OtherRecipients’
this input boxes are useless.

So and again to say! They are also useless if you create a ticket because:
You didn’t read comments under that boxes on the create page.
“Sends a carbon-copy of this update to a comma-delimited list of email
addresses. These people will receive future updates.” Create page
allow you to add watchers Cc and AdminCc and it’s differ from other
recipients.

IMHO this comments are really bad and confusing, cause it depends on
scrip sets would that users be notified or not.

This behaviour is there for ages since 3.0.1 and all flames on this end
up when users understand how it works. After that they just live with
it. Send bug reports(patches is better) to rt-bugs@ about this :slight_smile:

On Create Notify Other Recipients with template Correspondence

DONT’T WORK which is very annoying, because this is exactly what our
users think would happen when they enter a email address in CC when they
create a new ticket.
Add next scrip if you want:
On Create Notify Cc and AdminCc with template Correspondence