On Tue, Mar 08, 2016 at 11:53:03AM -0600, Derek Martin wrote:
> Yeah, looked into this for a minute, and determined it's atrocious.
> Should lead to mail store corruption unless you're only using maildir.
> The fact that Mutt isn't multithreaded is not interesting; the fact
> that multiple processes (e.g. your MDA) may read and write the mail
> store files simultaneously IS. Locking is important, and this patch
> is misguided.
man 3 flockfile
(Note: this locking has nothing to do with the file locking done by
functions like flock(2) and lockf(3).)
If I'm reading this correctly, using fgetc_unlocked does not change
anything about the way mutt locks your mail at an inter-process level.
imc