Group whine email to multiple users into single email

Hello,

We have a whine routine setup which mails to a group of users on the schedu=
le which we have set. Currently, the email is sent individually to each mem=
ber in the group such that each user receives an email addressed to only hi=
m/herself. We are trying to see if it is possible to send the email to all =
users together in one email, or at least have other users CC'd. I've been t=
rying to look through documentation and such, but can't find much in the re=
alm of configuring how emails are sent.=20

Is this something which can be configured? Or can this be changed in the wh=
ine.pl script? I did a brief look through whine.pl, but am not sure where w=
ould be the place to make such a change.

For reference, we have Bugzilla version 5.0.1 in use.
Any feedback would be helpful.

Thanks,
Dustin S.
0
smithdstn
6/6/2018 6:21:53 PM
mozilla.support.bugzilla 9955 articles. 0 followers. Post Follow

1 Replies
6 Views

Similar Articles

[PageSpeed] 20

Guten Tag smithdstn@gmail.com,
am Mittwoch, 6. Juni 2018 um 20:21 schrieben Sie:

> Currently, the email is sent individually to each member in the
> group such that each user receives an email addressed to only
> him/herself. We are trying to see if it is possible to send the
> email to all users together in one email, or at least have other
> users CC'd.

And what's the goal you are trying to achieve? Why do your users need
to see all individual recipients, why do/should they care, what do
they know then what they don't know currently? Sounds like you expect
all your users to always "parse" all recipients of the mails they get,
which doesn't make much sense to me.

> Is this something which can be configured? Or can this be changed
> in the whine.pl script?

No, the behaviour is hard-coded by iterating each recipient by
purpose. Have a look at whine.pl around line 298:

>     # We loop for each target user because some of the queries will be us=
ing
>     # subjective pronouns
>     $dbh =3D Bugzilla->switch_to_shadow_db();
>     for my $target (@{$event->{'mailto'}}) {

The only way to change that is to create a special mail address in
your mail server which works as an alias/mailing list for all users
interested in your special whine, create that alias/mailing list in
Bugzilla as well and assign the whine to that. From Bugzilla's point
of view this is one single user which gets whined, everything else
depends on your mail server.

> I did a brief look through whine.pl, but am
> not sure where would be the place to make such a change.

You shouldn't ever change Bugzilla core code, instead it provides some
extension mechanism and if what you are trying to achieve is not
possible using that, don't do it.

https://www.bugzilla.org/docs/4.4/en/html/api/Bugzilla/Hook.html

Changing core code only makes updates unnecessary difficult, not
updating regularly is not an option anymore these days and you are
already using not the most current version of Bugzilla. While things
got a bit easier because of git these days in theory, my experience
with customized Bugzilla's on this list is that most people are simply
lost in case of conflicts during upgrades and very often the people
who did those customization in the past already left the company years
ago.

So in your case, I suggest you use mail aliases/mailing lists or
simply leave it the way it is.

Mit freundlichen Gr=FC=DFen,

Thorsten Sch=F6ning

--=20
Thorsten Sch=F6ning       E-Mail: Thorsten.Schoening@AM-SoFT.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/

Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Gesch=E4ftsf=FChrer: Andreas Muchow

0
windows
6/7/2018 6:28:10 AM
Reply: