Opened 15 years ago
Closed 13 years ago
#6007 closed defect (wontfix)
[Patch] Configuration parameters `from_email` and `from_name` are ignored
Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | FullBlogNotificationPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
In the [fullblog-notification]
section of trac.ini, if from_name
contains whitespace, only the portion preceding the whitespace appears in the email subject line.
For example with the following configuration,
from_name = My Trac Blog subject_template = $prefix $blog.title $action
The subject line appears as,
[My] Test Post post_updated;
See also #6006 for other requested formatting improvements in the subject line.
Attachments (1)
Change History (8)
comment:1 Changed 15 years ago by
Summary: | If `from_name` contains whitespace, only the portion preceding the whitespace appears in the email subject line → If `from_name` parameter contains whitespace, only the text preceding the whitespace appears in the email subject line |
---|
comment:2 Changed 15 years ago by
comment:3 Changed 15 years ago by
Summary: | If `from_name` parameter contains whitespace, only the text preceding the whitespace appears in the email subject line → [Patch] Configuration parameters `from_email` and `from_name` are ignored |
---|
I'm no longer seeing the original issue. What I am seeing is what is noted in comment:2, so I will provide a patch for that. The patch probably needs a bit more work, but seems to be working at the moment.
Changed 15 years ago by
Attachment: | notification.patch added |
---|
comment:4 Changed 15 years ago by
Owner: | changed from Nick Loeve to Ryan J Ollos |
---|
Reassigning ticket since I am now maintainer of the plugin.
comment:5 Changed 15 years ago by
This is probably the last bug to be fixed with the FullBlogNotificationPlugin, and then the focus will be on enhancing the FullBlogAnnouncementsPlugin.
Though if there are any straightforward fixes/enhancements, or patches submitted, then I will update this plugin.
comment:6 Changed 15 years ago by
It appears that we can probably just remove the following configuration directives from the [fullblog-notification]
section, as they are redundant with what is implemented in the [notification]
section.
from_email = trac+blog@localhost from_name = None smtp_always_cc = []
There seems to be another problem here. The FullBlogNotificationEmail.notify method calls NotifyEmail.notify, which sets
from_email
andfrom_name
using the config options from thenotification
section. Therefore, the settings from the[fullblog-notification]
are overwritten.