Skip to content

Use message IDs as an index #106

@stephenfin

Description

@stephenfin

Though the Message-ID header is not guaranteed to be unique, it seems folks do like using this as a reference. The freedesktop fork, Mailman 3.0, and QEMU's "patches" tool, all make use of this. We probably should too.

If we do this, we'd probably want a migration to remove the < and > characters currently stored in the database. Apparently this is possible using the TRIM or REPLACE operations. TRIM is supported by both MySQL and PostgreSQL, while REPLACE can be cascaded/chained to replace multiple characters in one operation.

We would probably also want to add a message_id attribute to the Series model, to allow downloading a series by Message-ID. Alternatively, we could just return the series with a patch containing a given Message-ID. Either-or.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions