Thoughts on notifications with expanded recipient headers?
Thoughts on notifications with expanded recipient headers?
Before I put this in Tracker as a feature request, I wanted to 1) see if it's already possible (I don't think so) and 2) what people's thoughts were. When notifications come in, I often would like to "reply all" to the contacts for that notification to let them know something, inquire about the issue or any number of reasons. I already include who's getting notified by use of the $NOTIFICATIONRECIPIENTS$ macro, but that's not in the header recipient for the message, so I have to include addresses manually. Would it make sense or be of value for the header recipient (To: field) to include the email addresses of the contacts? I'm not sure if this would break anything. Thanks.
- Kyle
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Thoughts on notifications with expanded recipient header
It would cause all of the recipients to get multiple copies of the alert, not sure if that would be the best idea...
Re: Thoughts on notifications with expanded recipient header
Having the recipients listed in the To: field (header recipients) would have no affect on the envelope recipients. This is easily proven with the following.
Only recipient1 will get the mail but both will be in the To: line and if he does a reply all, the MUA will put both (or all) in the new message and sendmail would then put all recipients in the envelope recipients.
Code: Select all
$ > mailin.txt << EOF
To: [email protected],[email protected]
Subject: Test
Testing header recipients.
EOF
$ mailin | sendmail -v [email protected]
- Kyle
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Thoughts on notifications with expanded recipient header
True, I thought you were talking about using the XI notification handler which actually used phpmailer.
With XI as it is you could create a custom notification handler setup this way and use that.
With XI as it is you could create a custom notification handler setup this way and use that.
Re: Thoughts on notifications with expanded recipient header
I don't see a macro with the list of notified email addresses, just the list of short names in $NOTIFICATIONRECIPIENTS$. Do I need to resolve the email addresses myself from that list?
- Kyle
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Thoughts on notifications with expanded recipient header
Yes, you would need to resolve them