diff options
author | Robin Jarry <robin@jarry.cc> | 2024-09-29 21:19:52 +0200 |
---|---|---|
committer | Tim Culverhouse <tim@timculverhouse.com> | 2024-10-03 12:07:00 -0500 |
commit | 1c54bb3a9d11185d86745c64f2c28655385c9146 (patch) | |
tree | ce752dd0d624647b0d69a11406ccf26b34ffb0c6 /worker/mbox/models.go | |
parent | 09d283c9f70615d541b3603785c1db681389952f (diff) | |
download | aerc-1c54bb3a9d11185d86745c64f2c28655385c9146.tar.gz |
models: pad message uids with zeroes
IMAP message UIDs are 32 bits unsigned integers. All other backends use
opaque strings without any specific ordering. The UIDs are used for
ordering only for IMAP.
Pad the integer uids with zeroes when converting them to strings to
ensure ASCII sorting will work as previously.
Fixes: 73dc39c6ee08 ("treewide: replace uint32 uids with opaque strings")
Reported-by: Fedor Pchelkin <boddah8794@gmail.com>
Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Jens Grassel <jens@wegtam.com>
Diffstat (limited to 'worker/mbox/models.go')
0 files changed, 0 insertions, 0 deletions