Gnus development mailing list
 help / color / mirror / Atom feed
* Continuation lines for persistent articles
@ 2002-10-13  5:47 TSUCHIYA Masatoshi
  2002-10-13 17:27 ` Kai Großjohann
  0 siblings, 1 reply; 5+ messages in thread
From: TSUCHIYA Masatoshi @ 2002-10-13  5:47 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 461 bytes --]

Hello, Gnus developers.

I found the bug that continuation lines are not treated for persistent
articles.  For example, when an article whose subject consists of
continuation lines is entered to cache, its subject is truncated to
the first new-line.  So, I propose the following change.

2002-10-13  TSUCHIYA Masatoshi  <tsuchiya@namazu.org>

	* gnus-cache.el (gnus-cache-possibly-enter-article): Fold
	continuation lines and turn TAB into SPC before parsing.


[-- Attachment #2: Type: text/plain, Size: 577 bytes --]

--- gnus-cache.el.orig	2002-08-05 16:30:26.000000000 +0900
+++ gnus-cache.el	2002-10-13 14:21:41.000000000 +0900
@@ -179,6 +179,11 @@
 	    (when (> (buffer-size) 0)
 	      (let ((coding-system-for-write gnus-cache-coding-system))
 		(gnus-write-buffer file))
+	      (save-restriction
+		(nnheader-narrow-to-headers)
+		(nnheader-ms-strip-cr)
+		(nnheader-fold-continuation-lines)
+		(subst-char-in-region (point-min) (point-max) ?\t ? ))
 	      (setq headers (nnheader-parse-head t))
 	      (mail-header-set-number headers number)
 	      (gnus-cache-change-buffer group)

[-- Attachment #3: Type: text/plain, Size: 229 bytes --]


I am worry that all functions which call nnheader-parse-head() must
fold continuation lines before calling it.  If this observation is
right, a better approach would make nnheader-parse-head() fold them.

-- 
TSUCHIYA Masatoshi

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-10-17 15:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-13  5:47 Continuation lines for persistent articles TSUCHIYA Masatoshi
2002-10-13 17:27 ` Kai Großjohann
2002-10-17 13:19   ` TSUCHIYA Masatoshi
2002-10-17 13:32   ` TSUCHIYA Masatoshi
2002-10-17 15:09     ` Katsumi Yamaoka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).