On 08.11.2017 17:03, Tim wrote:
When someone submits a ticket or subscribes to get e-mails, They get BCCed on any e-mails. Is there a way to switch the BCC list to be on the to line instead?
You probably want a small IEmailDecorator. See https://trac.edgewall.org/wiki/CookBook/Notification/Email#Addorchangeemailheader
Maybe something like this (untested):

from  trac.core  import  Component,  implements
from  trac.notification.api  import  IEmailDecorator
from  trac.notification.mail  import  set_header

class  ReplaceBccWithToHeaderEmailDecorator(Component):

    implements(IEmailDecorator)

    # IEmailDecorator methods
def decorate_message(self, event, message, charset):
        if 'Bcc' in message:set_header(message,  'To',  message['Bcc'],  
charset)del message['Bcc']

--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to