From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/47158 Path: main.gmane.org!not-for-mail From: TSUCHIYA Masatoshi Newsgroups: gmane.emacs.gnus.general Subject: Continuation lines for persistent articles Date: Sun, 13 Oct 2002 14:47:30 +0900 Sender: owner-ding@hpc.uh.edu Message-ID: <87d6qelwjx.fsf@pine.kuee.kyoto-u.ac.jp> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1034488068 14514 127.0.0.1 (13 Oct 2002 05:47:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 13 Oct 2002 05:47:48 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 180bbP-0003ly-00 for ; Sun, 13 Oct 2002 07:47:47 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 180bb4-00079v-00; Sun, 13 Oct 2002 00:47:26 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 13 Oct 2002 00:48:08 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id AAA26219 for ; Sun, 13 Oct 2002 00:47:56 -0500 (CDT) Original-Received: (qmail 27487 invoked by alias); 13 Oct 2002 05:48:51 -0000 Original-Received: (qmail 27482 invoked from network); 13 Oct 2002 05:48:50 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by gnus.org with SMTP; 13 Oct 2002 05:48:50 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 180cPx-0003HD-00 for ; Sun, 13 Oct 2002 08:40:01 +0200 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 45 Original-NNTP-Posting-Host: pine.kuee.kyoto-u.ac.jp Original-X-Trace: quimby.gnus.org 1034491201 12460 130.54.208.130 (13 Oct 2002 06:40:01 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 13 Oct 2002 06:40:01 GMT User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-debian-linux-gnu) Cancel-Lock: sha1:461vKTjreRMxIsp7G/wtUjcz7oE= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:47158 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:47158 --=-=-= 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 * gnus-cache.el (gnus-cache-possibly-enter-article): Fold continuation lines and turn TAB into SPC before parsing. --=-=-= Content-Disposition: inline --- 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) --=-=-= Content-Disposition: inline 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 --=-=-=--