Hi, >> On Sun, 13 Oct 2002 19:27:05 +0200 >> Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Gro.AN_johann) said as follows: >> I am worry that all functions which call nnheader-parse-head() must >> unfold continuation lines before calling it. If this observation >> is right, a better approach would be to make nnheader-parse-head() >> unfold them. >I think this is a good idea. I see. I think that related changes can be splited into 2 parts. The first part is installed to nnheader.el. This change introduces some new functions and makes nnheader-parse-head() unfold continuation lines. nnheader.el (nnheader-parse-naked-head): New function. (nnheader-parse-head): Use the above function, in order to handle continuation lines properly. (nnheader-remove-body): New function. (nnheader-remove-cr-followed-by-lf): New function. (nnheader-ms-strip-cr): Use the above function. I hope that this change can be installed to Gnus without ill effects. However, I suppose that it makes Gnus slow, because the new version of nnheader-parse-head() copies headers to temporary buffer in order to avoid side effects. The second part is required to reduce excessive header copy. I hope that these changes will make Gnus as fast as the older version. gnus-agent.el (gnus-agent-regenerate-group): Call `nnheader-remove-body'; Use `nnheader-parse-naked-head' instead of `nnheader-parse-head'. gnus-cache.el (gnus-cache-possibly-enter-article): Ditto. gnus-msg.el (gnus-inews-yank-articles): Do not unfold continuation lines by itself; Call `nnheader-parse-naked-head' instead of `nnheader-parse-head'. nndiary.el (nndiary-parse-head): Ditto. nnfolder.el (nnfolder-parse-head): Ditto. nnimap.el (nnimap-retrieve-headers-progress): Ditto. nnmaildir.el (nnmaildir--update-nov): Ditto. nnml.el (nnml-parse-head): Ditto. I checked changes of gnus-cache.el and nnml.el, but the other changes are not tested. Thanks to Mr. Yamaoka for his advices about these changes.