From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/36797 Path: main.gmane.org!not-for-mail From: Colin Walters Newsgroups: gmane.emacs.gnus.general Subject: Re: weird error message about X-Face: Date: Thu, 05 Jul 2001 17:34:35 -0400 Organization: The Ohio State University Dept. of Computer and Info. Science Message-ID: <8766d7oyac.church.of.emacs@cis.ohio-state.edu> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035172324 10514 80.91.224.250 (21 Oct 2002 03:52:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:52:04 +0000 (UTC) Return-Path: Return-Path: Original-Received: (qmail 14138 invoked from network); 5 Jul 2001 21:37:52 -0000 Original-Received: from dhcp233117.columbus.rr.com (HELO space-ghost) (204.210.233.117) by gnus.org with SMTP; 5 Jul 2001 21:37:52 -0000 Original-Received: by space-ghost (Postfix, from userid 1000) id 2E112A3704; Thu, 5 Jul 2001 17:34:36 -0400 (EDT) Original-To: ding@gnus.org X-Attribution: Colin X-Face: %'w-_>8Mj2_'=;I$myE#]G"'D>x3CY_rk,K06:mXFUvWy>;3I"BW3_-MAiUby{O(mn"wV@m dd`)Vk[27^^Sa (Simon Josefsson's message of "Wed, 04 Jul 2001 19:49:14 +0200") Original-Lines: 38 Xref: main.gmane.org gmane.emacs.gnus.general:36797 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:36797 Simon Josefsson writes: > Is it related to this one? > > 2001-06-24 Simon Josefsson > > * rfc2047.el (rfc2047-fold-region): The check to skip WSP > insertion when breaking lines looked for " \t" instead of "[ \t]". > (rfc2047-encode-message-header): Fold lines even if > no QP encoding is done. I believe so. The following patch seems to fix the problem for me. As I see it, the problem was that rfc2047-fold-region was destroying the space following the colon in the header. I think it makes more sense to just fold the header _value_. Just (skip-chars-forward "^:") is sufficient to skip over the header name, right? 2001-07-05 Colin Walters * rfc2047.el (rfc2047-encode-message-header): Don't include the header name when folding. --- rfc2047.el.~6.14.~ Fri Jun 29 02:51:27 2001 +++ rfc2047.el Thu Jul 5 17:30:11 2001 @@ -138,7 +138,8 @@ (point-min) (point-max) (car message-posting-charset))) ;; No encoding necessary, but folding is nice - (rfc2047-fold-region (point-min) (point-max))) + (rfc2047-fold-region (save-excursion + (skip-chars-forward "^:")) (point-max))) ;; We found something that may perhaps be encoded. (setq method nil alist rfc2047-header-encoding-alist)