nmh-workers
[Top] [All Lists]

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

2018-02-07 19:50:58
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

-- 
Nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>