Opened 18 years ago
Closed 17 years ago
#4529 closed defect (worksforme)
Trac incorrectly process "use_short_addr" option in notification.py
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | ticket system | Version: | 0.10.3 |
Severity: | normal | Keywords: | notification |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
if option "use_short_addr" set to true, then TRAC does not append "smtp_default_domain" to short address.
I correct this invalid behaviour by attached patch
Attachments (1)
Change History (8)
by , 18 years ago
Attachment: | shrtadd.patch added |
---|
comment:1 by , 18 years ago
Keywords: | notification added |
---|---|
Milestone: | 0.10.4 |
comment:2 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thanks, you are right
I'm incorectly undestood "use_short_addr" option usage
comment:3 by , 18 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:4 by , 18 years ago
Resolution: | → worksforme |
---|---|
Status: | reopened → closed |
('closed' is reserved for tickets that have led to code change).
Feel free to re-open if you believe that the proposed feature would have been useful.
comment:5 by , 17 years ago
Cc: | added |
---|---|
Resolution: | worksforme |
Status: | closed → reopened |
This bug still exists if you have users with an e-mail address like "firstname.surname" which is a correct e-mail address for local delivery.
However this is seen by Trac as an invalid e-mail address and is ignored. (Even with the use_short_addr
property set to true
.)
This is the output when I tried resetting my password (which I used as a testcase for notification):
2007-07-20 14:49:28,500 Trac[notification] INFO: Invalid email address: koen.werdler 2007-07-20 14:49:28,500 Trac[notification] INFO: no recipient for a ticket notification
comment:8 by , 17 years ago
Cc: | removed |
---|
comment:9 by , 17 years ago
Resolution: | → worksforme |
---|---|
Status: | reopened → closed |
Koen, Check your version of Trac and if it isn't 0.10.4, please upgrade. The current trunk regular expression for shorter emails addresses should handle periods, underscores, dashes, and alphanumeric characters just fine:
class NotifyEmail(Notify): """Baseclass for notification by email.""" ... nodomaddr_re = re.compile(r'[\w\d_\.\-]+')
Yes, this was the expected behaviour.
From TracIni#notification-section:
Maybe this behaviour should be changed, but we need to check first whether the proposed patch could bring some regression.