Opened 12 years ago
Closed 12 years ago
#272 closed defect (fixed)
how does email2trac parses the to-field
Reported by: | anonymous | Owned by: | bas |
---|---|---|---|
Priority: | minor | Milestone: | Release 2.4.5 |
Component: | email2trac | Version: | |
Keywords: | Cc: |
Description
I set om@… as my recipient_list.And we have another email aom@…. When i send an email to aom@… from om@…, a ticket is created. is it because of the aom/om? or just a matter of misconfiguration.
Attachments (0)
Change History (10)
comment:1 Changed 12 years ago by bas
- Priority changed from major to minor
- Status changed from new to assigned
comment:2 Changed 12 years ago by anonymous
is there any work around to make it an exact match?
comment:3 follow-up: ↓ 6 Changed 12 years ago by bas
try to replace:
result = TO_RE.search(header_field)
to:
result = TO_RE.match(header_field)
comment:4 Changed 12 years ago by bas
Some people want exact match other only want a match. For example allow all email for domain sara.nl:
- recipient_list : sara.nl
If we use exact match this must be rewritten to use regular expression:
- recipient_list : .*sara.nl$
So maybe i will make this configurable.
comment:5 Changed 12 years ago by anonymous
thanks again.
comment:6 in reply to: ↑ 3 Changed 12 years ago by anonymous
tried below config but old issue arise again.
https://subtrac.sara.nl/oss/email2trac/ticket/268
Replying to bas:
try to replace:
result = TO_RE.search(header_field)to:
result = TO_RE.match(header_field)
comment:7 follow-up: ↓ 8 Changed 12 years ago by anonymous
i think i got it. I used use second option which is using regular expression in the recipient list.
instead of: recipient_list: om@…
i used: recipient_list: om@…
thank you for your help.
comment:8 in reply to: ↑ 7 Changed 12 years ago by anonymous
sorry for misleading. this thing did not work since it created another issue.
Replying to anonymous:
i think i got it. I used use second option which is using regular expression in the recipient list.
instead of: recipient_list: om@…
i used: recipient_list: om@…
thank you for your help.
comment:9 Changed 12 years ago by bas
comment:10 Changed 12 years ago by bas
- Milestone set to Release 2.X.X
- Resolution set to fixed
- Status changed from assigned to closed
- Version 2.1.0 deleted
Will close this. Did not encounter problem in our environment
It is not exact match, but a search. So substrings will match. It must be an exact match. It is a search: