diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2022-08-24 09:49:32 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-08-24 17:00:44 +0200 |
commit | 1c9fc7b6b1550f2eb556e9c7248496c5f41e57af (patch) | |
tree | 0e260f615fe7db796ae41b4b8dfb2d4f86e62c04 /config/default_styleset | |
parent | 8f8dee83035d30e4b82c370489ceabec687eb6ad (diff) | |
download | aerc-1c9fc7b6b1550f2eb556e9c7248496c5f41e57af.tar.gz |
maildir: remove filename encoded UID when moving messages
The built-in maildir.Dir.Move method performs an OS level file rename,
which allows for preserving file creation time. Commit c98f70487417
("move: enable MoveMessages from msgstore") enabled the use of the Move
method for maildir. One particular maildir synchronizer (isync/mbsync)
encodes the UID within the filename of the email and cannot recover if
the UID is preserved during a move. mbsync encodes filenames like so:
/path/to/email/{maildir-key},U={uid}:2,S
OfflineIMAP encodes the UID within the filename, but also encodes a hash
of the originating folder so that it can recover from a move without a
rename of the underlying file. OfflineIMAP encodes like so:
/path/to/email{maildir-key},U={uid},FMD5={folder-hash}:2,S
Remove encoded UIDs of the form `,U={uid}` from filenames to prevent
sync issues.
Fixes: https://todo.sr.ht/~rjarry/aerc/75
Fixes: c98f70487417 ("move: enable MoveMessages from msgstore")
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'config/default_styleset')
0 files changed, 0 insertions, 0 deletions