I have attempted to delete the last segment of a message, however when I rebuild the new message and use this code the receiving system still indicates that end of message is not there. Here is the code
Maybe you should do a “msgdump” so you can see what the message looks like. The final segment should be followed by a single carriage return (r, x0D, however else you want to describe it).
Also, what are you doing with the message referred to by mh? If you’re doing a msgcopy, you need to put mh in your disposition list with newmh. I’m not sure if you’re killing it or continuing it.