Mutt stops showing mail contents

Matthias Apitz guru at unixarea.de
Tue Dec 22 01:16:56 UTC 2020


El día lunes, diciembre 21, 2020 a las 06:55:18p. m. +0100, Josef Wolf escribió:

> On Mon, Dec 21, 2020 at 01:32:47PM +0100, Matthias Apitz wrote:
> > Linux has strace(1) (at least it could be installed). I'd start mutt
> > below strace, like that:
> > 
> > $ strace -o mutt.tr -f -t mutt .....
> 
> OK. So here I have attached two strace snippets while mutt is showing a mail
> from a Maildir folder. One snippet shows opening a mail where the body is
> shown and one where the body is not shown.
> 
> Below is a diff of those two snippets. The interesting part is in the second
> hunk. This is where the header has been read (every lseek(4,0,SEEK_CUR)
> corresponds to one header line).
> 
> After the header has been read, the good invocation will lseek(4,0,SEEK_SET)
> in order to re-read the Maildir file. Then it creates a temp file, dumps the
> contents to this tempfle, and closes it. Then it reopens the file, deletes it
> and reads the contents back.
> 
> The bad snippet skips all this. It just closes the Maildir file.
> 
> Both snippets and the diff are attached to this mail with un-shortened
> strings. Here is the diff with shortened strings for readability:
> 

Smells like a bug in the mutt code you are using on your system. Can you
compile and test an actual code of the original source?

	matthias


-- 
Matthias Apitz, ✉ guru at unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
Без книги нет знания, без знания нет коммунизма (Влaдимир Ильич Ленин)
Without books no knowledge - without knowledge no communism (Vladimir Ilyich Lenin) 
Sin libros no hay saber - sin saber no hay comunismo. (Vladimir Ilich Lenin)


More information about the Mutt-users mailing list