-
Notifications
You must be signed in to change notification settings - Fork 88
Description
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.