Ticket #2619 (reopened defect)
Opened 6 years ago
Last modified 17 months ago
Message-IDs generation should be a little more randomized
| Reported by: | jeremie.corbier@… | Owned by: | jonas |
|---|---|---|---|
| Priority: | low | Milestone: | unscheduled |
| Component: | ticket system | Version: | 0.10.3 |
| Severity: | minor | Keywords: | notification email |
| Cc: | |||
| Release Notes: | |||
| API Changes: | |||
Description
The way message-ids of notification emails are generated is a little too simple to my mind. Maybe, you could add a little more randomness with the random module ?
Attachments
Change History
comment:1 Changed 6 years ago by mgood
- Milestone 0.10 deleted
- Resolution set to wontfix
- Status changed from new to closed
comment:2 Changed 6 years ago by anonymous
- Summary changed from Message-IDs generation should be a little more randomized to Message-IDs generation should be a little more randomized1
comment:3 Changed 6 years ago by anonymous
- Summary changed from Message-IDs generation should be a little more randomized1 to Message-IDs generation should be a little more randomized
comment:4 follow-up: ↓ 5 Changed 4 years ago by Ulrich Eckhardt <eckhardt@…>
- Resolution wontfix deleted
- Status changed from closed to reopened
- Version changed from 0.9.3 to 0.10.3
I have the concrete case that different tickets generate notifications with the same message ID, which breaks the association between related and unrelated messages and is obviously not the idea of an "ID". I took a look at the code, and I think it would help if you mangled the project into the ID, too.
comment:5 in reply to: ↑ 4 Changed 4 years ago by eblot
Replying to Ulrich Eckhardt <eckhardt@satorlaser.com>:
I have the concrete case that different tickets generate notifications with the same message ID, which breaks the association between related and unrelated messages and is obviously not the idea of an "ID". I took a look at the code, and I think it would help if you mangled the project into the ID, too.
The project URL is already mangled into the message ID, however as this setting is not mandatory, it may be left blank...
You're right here.
comment:6 Changed 4 years ago by Ulrich Eckhardt <eckhardt@…>
Under 'project' in the configfile, I have different 'name' entries but equal 'url' entries (both point to the server running tracd). So, just using different 'url' entries I should be able to get this working, but I would also break existing relations, right?
Just one suggestion how I would do it: create a UID for every environment when it is initialised (trac-admin ... initenv) and document that it is used to identify messages originating from this environment. That way, if a user changes or duplicates it, they are at least warned.
Cheers & thanks!
comment:7 Changed 3 years ago by rblank
- Milestone set to 1.0
- Type changed from enhancement to defect
I'm not sure this is still an issue. At any rate, it would be a defect, not an enhancement.
comment:8 Changed 22 months ago by cboos
- Milestone changed from 1.0 to unscheduled
Milestone 1.0 deleted



Message ids cannot be random since they need to be reproducable for the "In-Reply-To" and "References" headers for further emails related to the ticket.