nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nmh-workers] fix to mhshow markers with multiple messages


From: David Levine
Subject: [Nmh-workers] fix to mhshow markers with multiple messages
Date: Wed, 07 Feb 2018 20:50:29 -0500

I just committed 037aeaf6 to master, it attempts to fix a bug when
showing multiple MIME messages.  There's an example below, which
shows that the marker from the first message was repeated in subsequent
messages.

Question:  I had to disable reset_comptable in the calls to fmt_compile()
and fmt_free(), else valgrind noticed writes of free'd memory.  Should
it be enabled in the final call for mfmt?

David


$ cat 15
Content-Type: multipart/mixed;boundary="_boundary_"
MIME-Version: 1.0

--_boundary_
Content-Type: text/plain

first message, part 1 content

--_boundary_
Content-Type: text/plain
Content-Description: first message, part 2 C-D

first message, part 2 content

--_boundary_--

$ cat 16
Content-Type: multipart/mixed;boundary="_boundary_"
MIME-Version: 1.0

--_boundary_
Content-Type: text/plain

second message, part 1 content

--_boundary_--

$ mhshow -form mhl.null -concat 15
[ Message inbox:15 ]
[ part 1 - text/plain -   30B  ]
first message, part 1 content
[ part 2 - text/plain - first message, part 2 C-D  30B  ]
first message, part 2 content

$ mhshow -form mhl.null -concat 16
[ Message inbox:16 ]
[ part 1 - text/plain -   31B  ]
second message, part 1 content

$ MH=~/src/nmh/SAVE/MH mhshow -form mhl.null -concat 15 16
[ Message inbox:15 ]
[ part 1 - text/plain -   30B  ]
first message, part 1 content
[ part 2 - text/plain - first message, part 2 C-D  30B  ]
first message, part 2 content
[ Message inbox:16 ]
[ part 1 - text/plain - first message, part 2 C-D  31B  ]
second message, part 1 content



reply via email to

[Prev in Thread] Current Thread [Next in Thread]