[rt-users] scrip action
Ruslan U. Zakirov
Ruslan.Zakirov at acronis.com
Mon Oct 18 07:33:38 EDT 2004
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.
>
> -Todd
>
> On 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 at chaka.net>
>>To: "Raed El - Hames" <r at elhames.co.uk>
>>Cc: <rt-users at 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 at 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
More information about the rt-users
mailing list