Edgewall Software
Modify

Opened 7 weeks ago

#13791 new defect

Notification mail is unavailable for name/usrname@example.org in user's preferences, ticket cc, smtp_always_cc, etc...

Reported by: Jun Omae Owned by:
Priority: normal Milestone: 1.6.1
Component: notification Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

The root cause is that RecipientMatcher ignores several email addresses like this:

>>> from trac.test import EnvironmentStub
>>> from trac.notification.mail import RecipientMatcher
>>> env = EnvironmentStub()
>>> matcher = RecipientMatcher(env)
>>> print(matcher.match_recipient('simple@example.org'))
(None, 0, 'simple@example.org')
>>> matcher.is_email('name/surname@example.org')
False
>>> print(matcher.match_recipient('name/surname@example.org'))
None
>>> print(matcher.match_recipient('mailhost!username@example.org'))
None
>>> matcher.is_email('mailhost!username@example.org')
False
>>> print(matcher.match_recipient('user%example.org@example.org'))
None
>>> matcher.is_email('user%example.org@example.org')
False

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


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