[rt-users] Customizing a scrip to prevent too many mails

Danie Marais danie.marais at attix5.com
Thu Sep 9 06:43:34 EDT 2004


Ruslan,

I did as you suggested and it works fine.  The mail contains the owner in
the To: field and all AdminCC's with the owner again in the Bcc: field, but
the mail server only delivers one email to the owner - even though he is in
the To and Bcc fields.  Which kinda sounds like the right thing to do :)

Thanks again for the help.

Danie

> As far as I know if you use one notify action then module will sent only
> one mail to the recipient.
> Then you can add record to DB that represent action 'Notify Owner and
> AdminCc'.
> Table: ScripActions
> Fields:
> ExecModule: Notify (or NotifyAsComment)
> Argument: Owner,AdminCc
> Other fields fill as you wish(see other records in table as examples).
>
> Best regards. Ruslan.
>
>
>
> Danie Marais wrote:
> > Hi list,
> >
> > I have a scrip to notify the owner of any correspondence.  But the owner
> > is always an AdminCC as well since they watch all activity in the
> > queue.  So he ends up getting two mails when a requestor sends
> > correspondence.
> >
> > How can I prevent that?  I was thinking of a custom condition in the
> > scip sending emails to the AdminCC watchers to check if the owner is one
> > of the AdminCC's, then remove him from the recipient list.  Or something
> > to that effect?
> >
> > Regards,
> > Danie
> >
> >




More information about the rt-users mailing list