On 08.03.2017 11:09, Mo wrote:
We get duplicate emails from the notification system.
What plugins do you use? Can you reproduce with all plugins disabled? Do
you have more than one active INotificationDistributorthat supports
transport email?
Even if 2 rules should apply like being Creator and Cc, the email
notification should only be sent once.
Rules that result in the same notification over the same transport
(email) to the same user are already de-duplicated.
|
[notification]
admit_domains =localdomain
email_sender =SendmailEmailSender
smtp_enabled =enabled
smtp_from =noreply@project-pp
smtp_from_name =Trac(project-pp)
smtp_replyto =
use_public_cc =enabled
use_short_addr =enabled
[notification-subscriber]
always_notify_author =AuthorCustomFieldSubscriber
always_notify_cc =CarbonCopySubscriber
always_notify_developer =DeveloperCustomFieldSubscriber
always_notify_integrator =IntegratorCustomFieldSubscriber
always_notify_owner =TicketOwnerSubscriber
always_notify_previous_updater =TicketPreviousUpdatersSubscriber
always_notify_reporter =TicketReporterSubscriber
always_notify_reviewer =ReviewerCustomFieldSubscriber
always_notify_tester =TesterCustomFieldSubscriber
never_notify_updater =TicketUpdaterSubscriber
never_notify_updater.adverb =never
|
From the logs:
|
2017-03-0810:38:54,076Trac[api]DEBUG:Adding(AK [1])for'always'on rule
(TicketOwnerSubscriber)for(email)
2017-03-0810:38:54,076Trac[api]DEBUG:Adding(HS [1])for'always'on rule
(TicketPreviousUpdatersSubscriber)for(email)
2017-03-0810:38:54,076Trac[mail]DEBUG:EmailDistributorhas found the
following formats capable of handling 'email'of
'ticket':text/html,text/plain
2017-03-0810:38:54,077Trac[mail]DEBUG:EmailDistributorfound the
address 'a.k@localdomain'for'AK (authenticated)'via SessionEmailResolver
2017-03-0810:38:54,083Trac[default_workflow]DEBUG:render_ticket_action_control:action
"leave"
2017-03-0810:38:54,083Trac[default_workflow]DEBUG:render_ticket_action_control:action
"reopen"
2017-03-0810:38:54,146Trac[mail]DEBUG:EmailDistributorissending
eventas'text/plain'to:h.s@localdomain
2017-03-0810:38:54,152Trac[mail]INFO:Sendingnotification through
sendmail at sendmail to ['h.s@localdomain']
2017-03-0810:38:54,152Trac[mail]DEBUG:Sendmailcommand
line:[u'sendmail','-i','-f','noreply@project-pp','h.s@localdomain']
2017-03-0810:38:55,348Trac[mail]DEBUG:EmailDistributorissending
eventas'text/html'to:a.k@localdomain
2017-03-0810:38:55,359Trac[mail]INFO:Sendingnotification through
sendmail at sendmail to ['a.k@localdomain']
2017-03-0810:38:55,360Trac[mail]DEBUG:Sendmailcommand
line:[u'sendmail','-i','-f','noreply@project-pp','a.k@localdomain']
2017-03-0810:38:56,628Trac[mail]DEBUG:EmailDistributorhas found the
following formats capable of handling 'email'of
'ticket':text/html,text/plain
2017-03-0810:38:56,628Trac[mail]DEBUG:EmailDistributorfound the
address 'a.k@localdomain'for'AK (authenticated)'via SessionEmailResolver
2017-03-0810:38:56,635Trac[default_workflow]DEBUG:render_ticket_action_control:action
"leave"
2017-03-0810:38:56,636Trac[default_workflow]DEBUG:render_ticket_action_control:action
"reopen"
2017-03-0810:38:56,699Trac[mail]DEBUG:EmailDistributorissending
eventas'text/plain'to:h.s@localdomain
2017-03-0810:38:56,705Trac[mail]INFO:Sendingnotification through
sendmail at sendmail to ['h.s@localdomain']
2017-03-0810:38:56,706Trac[mail]DEBUG:Sendmailcommand
line:[u'sendmail','-i','-f','noreply@project-pp','h.s@localdomain']
2017-03-0810:38:57,910Trac[mail]DEBUG:EmailDistributorissending
eventas'text/html'to:a.k@localdomain
2017-03-0810:38:57,922Trac[mail]INFO:Sendingnotification through
sendmail at sendmail to ['a.k@localdomain']
2017-03-0810:38:57,922Trac[mail]DEBUG:Sendmailcommand
line:[u'sendmail','-i','-f','noreply@project-pp','a.k@localdomain']
|
In /prefs/notification we need to duplicate some rule for some
accounts as there is the bug that text/html is not saved if there is
not a single custom rule. But even with duplicate rules, a
notification should always be sent only once.
There is another bug, adding a rule in /prefs/notification this rule
is added twice. Deleting the duplicate custom rule, saving, there are
2 rules again. Deleting both, both are deleted. But adding another one
it is added twice again.
I have no idea how that could happen. Can you reproduce with all plugins
disabled?
Isn't the whole notification system still in a ~testing stage? Will
1.2 get updates as it is a LTS version I was told?
best gegards,
Mo
Best regards,
Peter
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.