#6789 closed enhancement (wontfix)
Being able to set email address of the ticket owner as the "reply to:" field
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | notification | Version: | 0.11b1 |
Severity: | normal | Keywords: | |
Cc: | Thijs Triemstra | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I'd like to do in my trac.ini something like
smtp_from = $owner@mydomain.com
Aspect would be, that the owner is shown in the mail header in the sender part, so the respective employee could directly press the reply button without provoking Mail Delivery errors or doing mistakes by manually typing in the sender address.
Attachments (0)
Change History (13)
comment:1 by , 17 years ago
Keywords: | notification smtp_from mails removed |
---|---|
Milestone: | not applicable |
Priority: | high → normal |
comment:2 by , 17 years ago
follow-up: 4 comment:3 by , 17 years ago
Well, the setup is currently, that the OWNER of the project gets the ticket mail - right?
So why not add this mail address to the mail header, so the recipiant (the owner) can directly reply.
follow-ups: 5 8 comment:4 by , 17 years ago
Replying to anonymous:
Well, the setup is currently, that the OWNER of the project gets the ticket mail - right?
Yes
So why not add this mail address to the mail header, so the recipiant (the owner) can directly reply.
Because the owner of the project never sends the email, Trac does. Maybe the email address of the owner or the modified could be set as the "reply to:" field however.
comment:5 by , 17 years ago
Replying to eblot:
So why not add this mail address to the mail header, so the recipiant (the owner) can directly reply.
Because the owner of the project never sends the email, Trac does. Maybe the email address of the owner or the modified could be set as the "reply to:" field however.
If the owner would like to directly respond without using track it would be cool to provide the mail address. I guess this is customized stuff, so it would be really nice if you could tell me where to edit that in the code (notification.py i guess) ?
Thanks a lot for now!
comment:7 by , 14 years ago
Milestone: | next-major-0.1X → unscheduled |
---|
comment:8 by , 14 years ago
Cc: | added |
---|---|
Summary: | Dynamic Mail adresses in Tickets → Being able to set email address of the ticket owner as the "reply to:" field |
Replying to eblot:
Replying to anonymous:
Well, the setup is currently, that the OWNER of the project gets the ticket mail - right?
Yes
So why not add this mail address to the mail header, so the recipiant (the owner) can directly reply.
Because the owner of the project never sends the email, Trac does. Maybe the email address of the owner or the modified could be set as the "reply to:" field however.
Renamed the ticket. Also see #8360, that asks for a dynamic sender name. I attached a patch there that would recognize __updater__
as a keyword, maybe the same could be done here with something like smtp_from = __owner__
?
comment:9 by , 9 years ago
Owner: | removed |
---|
comment:10 by , 8 years ago
Could now be implemented as a plugin? Untested:
from trac.core import Component, implements from trac.notification.api import IEmailDecorator from trac.notification.mail import RecipientMatcher, set_header class ReplyToTicketOwnerEmailDecorator(Component): """Use the ticket owner in the Reply-To header in notification emails.""" implements(IEmailDecorator) def decorate_message(self, event, message, charset): if event.realm != 'ticket': return owner = event.target['owner'] matcher = RecipientMatcher(self.env) owner = matcher.match_from_author(owner) if owner: set_header(message, 'Reply-To', owner, charset)
comment:12 by , 8 years ago
Milestone: | unscheduled |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
comment:13 by , 8 years ago
I tested the ReplyToTicketOwnerEmailDecorator
and it seems to work well.
See also #6512
However, I'd say that this is invalid implementation from a SMTP point of view: the author of the change IS NOT the sender, and Trac would impersonate the real user.
I'm -1 on this enhancement, and I'd rather vote to add a mailto: link to the author of the change once HTML notifications are made available.