notmuch-lore
notmuch-lore copied to clipboard
message delivery doesn't follow maildir rules
One of the main points of maildir is to avoid locking. New messages should be written to tmp (where they are ignored by MUAs) and then moved to new.
The script has https://github.com/wkz/notmuch-lore/blob/master/pre-new#L41
$git show $sha:m >$db/$1/new/$sha
Instead, it should write to tmp and mv to new.
TIL! Thanks 👍
If you want this fixed ASAP, I would happily accept a PR for it.