jstoone / nova-mailman

Conveniently route all emails to a local mailbox.
https://novapackages.com/packages/jstoone/nova-mailman
MIT License
45 stars 1 forks source link

Use time-based orderd UUID's #15

Closed jstoone closed 5 years ago

jstoone commented 5 years ago

About

Currently when storing emails the UUID's are totally random, which makes it hard to visually parse them.

Solution

Instead of using Str::uuid()-helper we can utilize the Str::orderedUuid(). This will ensure that the first segment of the UUID is time-based. This change will also eliminate the need for sorting by time, as that's already taken care of by the UUID itself.