Edgewall Software
Modify

Opened 17 years ago

Closed 8 years ago

Last modified 8 years ago

#6789 closed enhancement (wontfix)

Being able to set email address of the ticket owner as the "reply to:" field

Reported by: fibs@… 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 Emmanuel Blot, 17 years ago

Keywords: notification smtp_from mails removed
Milestone: not applicable
Priority: highnormal

comment:2 by Emmanuel Blot, 17 years ago

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.

comment:3 by anonymous, 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.

in reply to:  3 ; comment:4 by Emmanuel Blot, 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.

in reply to:  4 comment:5 by anonymous, 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:6 by Remy Blank, 16 years ago

Milestone: 0.13

Scheduling for the same milestone as #2073.

comment:7 by Remy Blank, 14 years ago

Milestone: next-major-0.1Xunscheduled

in reply to:  4 comment:8 by Thijs Triemstra, 14 years ago

Cc: Thijs Triemstra added
Summary: Dynamic Mail adresses in TicketsBeing 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 Ryan J Ollos, 9 years ago

Owner: Emmanuel Blot removed

comment:10 by Peter Suter, 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:11 by Peter Suter, 8 years ago

Related, #10578 suggests using ticket updater in Reply-To: header.

comment:12 by Peter Suter, 8 years ago

Milestone: unscheduled
Resolution: wontfix
Status: newclosed

comment:13 by Ryan J Ollos, 8 years ago

I tested the ReplyToTicketOwnerEmailDecorator and it seems to work well.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.