From: Katsumi Yamaoka <yamaoka@jpl.org>
Subject: Re: Hang entering summary buffer
Date: Wed, 04 Dec 2002 11:46:19 +0900 [thread overview]
Message-ID: <yotlznrmijr8.fsf@jpl.org> (raw)
In-Reply-To: <m38yz6zf1w.fsf@defun.localdomain>
[-- Attachment #1: Type: text/plain, Size: 392 bytes --]
>>>>> In <m38yz6zf1w.fsf@defun.localdomain>
>>>>> Jesper Harder <harder@ifa.au.dk> wrote:
> It happens because the Subject line is badly broken, it contains an
> embedded CR/LF.
AFAIK, the MIME header encoding doesn't express newlines in
principle, so such encoded words are evil. The following patch
may also be evil, but I think it or similar solution is needed
to Gnus. How about it?
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 571 bytes --]
--- rfc2047.el~ 2002-09-14 03:37:43 +0000
+++ rfc2047.el 2002-12-04 02:39:53 +0000
@@ -520,6 +520,13 @@
(prog1
(match-string 0)
(delete-region (match-beginning 0) (match-end 0)))))
+ ;; Remove newlines or excessive whitespace between decoded words.
+ (save-restriction
+ (narrow-to-region e (point))
+ (goto-char e)
+ (while (re-search-forward "[\t\n\r ]+" nil t)
+ (replace-match " "))
+ (goto-char (point-max)))
(when (and (mm-multibyte-p)
mail-parse-charset
(not (eq mail-parse-charset 'us-ascii))
next prev parent reply other threads:[~2002-12-04 2:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-04 0:56 David Z Maze
2002-12-04 2:35 ` Jesper Harder
2002-12-04 2:46 ` Katsumi Yamaoka [this message]
2002-12-04 3:57 ` Jesper Harder
2002-12-04 6:44 ` Katsumi Yamaoka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yotlznrmijr8.fsf@jpl.org \
--to=yamaoka@jpl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).