Opened 3 years ago

Last modified 3 years ago

#10767 new defect

No option to configure outbound emails as HTML

Reported by: adrya.stembridge@… Owned by: hasienda
Priority: normal Component: AnnouncerPlugin
Severity: normal Keywords: needinfo
Cc: Trac Release: 0.12

Description (last modified by rjollos)

I've installed TracAnnouncer 1.0dev-r12503 and users are able to subsribe (watch) tickets, and are receiving notifications of tickets they submitted. That is working well.

I am not finding an option to enable HTML and the outbound notifications are still plaintext/wiki markup.

Here is my config:

db_htdigest_realm = 
force_passwd_change = true
hash_method = HtDigestHashMethod
htpasswd_file = /my/path/trac.htpasswd
htpasswd_hash_type = md5
password_store = HtPasswdStore
persistent_sessions = true
refresh_passwd = False 
user_lock_max_time = 0
verify_email = true

acct_mgr.admin.* = enabled
acct_mgr.api.* = enabled
acct_mgr.db.sessionstore = enabled
acct_mgr.htfile.htdigeststore = disabled
acct_mgr.htfile.htpasswdstore = enabled
acct_mgr.http.httpauthstore = disabled
acct_mgr.notification.* = enabled
acct_mgr.pwhash.htdigesthashmethod = enabled
acct_mgr.pwhash.htpasswdhashmethod = disabled
acct_mgr.register.* = enabled
acct_mgr.svnserve.* = enabled
acct_mgr.svnserve.svnservepasswordstore = disabled
acct_mgr.web_ui.* = enabled
announcer.api.announcementsystem = enabled
announcer.distributors.mail.emaildistributor = enabled
announcer.distributors.mail.sendmailemailsender = enabled
announcer.formatters.ticketformatter = enabled
announcer.formatters.wikiformatter = enabled
announcer.opt.acct_mgr.announce.accountmanagerannouncement = enabled
announcer.opt.subscribers.allticketsubscriber = enabled
announcer.opt.subscribers.userchangesubscriber = enabled
announcer.opt.subscribers.watchsubscriber = enabled
announcer.pref.announcerpreferences = enabled
announcer.pref.subscriptionmanagementpanel = enabled
announcer.producers.attachmentchangeproducer = enabled
announcer.producers.ticketchangeproducer = enabled
announcer.producers.wikichangeproducer = enabled
announcer.subscribers.carboncopysubscriber = enabled
announcer.subscribers.ticketownersubscriber = enabled
announcer.subscribers.ticketreportersubscriber = enabled
announcer.subscribers.ticketupdatersubscriber = enabled
ckintegration.ckintegrationmodule = enabled
permredirect.* = enabled
trac.web.auth.loginmodule = disabled

admit_domains =
always_notify_owner = true
always_notify_reporter = true
always_notify_updater = true
default_email_format = text/html
email_sender = SendmailEmailSender
ignore_domains =
mime_encoding = none
sendmail_path = /usr/sbin/sendmail
smtp_always_bcc = my@email.add
smtp_always_cc =
smtp_default_domain =
smtp_enabled = true
smtp_from = trac@localhost
smtp_from_name =
smtp_password =
smtp_port = 25
smtp_replyto = trac@localhost
smtp_server = localhost
smtp_subject_prefix = __default__
smtp_user =
ticket_email_header_fields = reporter, priority, severity
ticket_subject_template = $prefix #$ $summary
use_public_cc = false
use_short_addr = false
use_tls = false

Assistance/pointers appreciated.

Attachments (0)

Change History (4)

comment:1 Changed 3 years ago by adrya.stembridge@…

Is this hack officially dead?

comment:2 Changed 3 years ago by rjollos

  • Component changed from TracHtmlNotificationPatch to AnnouncerPlugin
  • Owner changed from akarzim to hasienda

You've filed this ticket against the TracHtmlNotificationPatch, but it seems you are using the AnnouncerPlugin.

comment:3 Changed 3 years ago by rjollos

  • Description modified (diff)

comment:4 Changed 3 years ago by rjollos

  • Keywords needinfo added

You have set default_email_format = text/html, which is good, but this can be overridden by the user preference. You can find this described here: AnnouncerPlugin#Distributors.

So I went to look for the email preferences panel that allows setting the email format preference. I can't find it anywhere! It seems this was removed as "deprecated code" in [9227] and I don't see it called from anywhere else now. hasienda, this change precedes you, but do you have any historical knowledge of this? The template still resides in the source code, but it's not utilized.

Which version of Trac are you using? Have you used previous versions of AnnouncerPlugin, or is this a new install?

Add Comment

Modify Ticket

as new The owner will remain hasienda.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.