From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/36798 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 18:03:00 -0400 Organization: The Ohio State University Dept. of Computer and Info. Science Message-ID: <873d8bniej.church.of.emacs@cis.ohio-state.edu> References: <8766d7oyac.church.of.emacs@cis.ohio-state.edu> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035172325 10522 80.91.224.250 (21 Oct 2002 03:52:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:52:05 +0000 (UTC) Return-Path: Return-Path: Original-Received: (qmail 14396 invoked from network); 5 Jul 2001 22:06:20 -0000 Original-Received: from dhcp233117.columbus.rr.com (HELO space-ghost) (204.210.233.117) by gnus.org with SMTP; 5 Jul 2001 22:06:20 -0000 Original-Received: by space-ghost (Postfix, from userid 1000) id 9604BA3704; Thu, 5 Jul 2001 18:03:00 -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 (Colin Walters's message of "Thu, 05 Jul 2001 17:34:35 -0400") Original-Lines: 28 Xref: main.gmane.org gmane.emacs.gnus.general:36798 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:36798 Colin Walters writes: > Just (skip-chars-forward "^:") is sufficient to skip over the header > name, right? Nope. I think this patch actually works, but it's uglyyy...maybe someone has a better solution. --- rfc2047.el.~6.14.~ Fri Jun 29 02:51:27 2001 +++ rfc2047.el Thu Jul 5 18:02:37 2001 @@ -138,7 +138,16 @@ (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 over the header. + (goto-char (point-min)) + (skip-chars-forward "^:") + (unless (eobp) + (forward-char)) + (unless (eobp) + (forward-char)) + (point)) + (point-max))) ;; We found something that may perhaps be encoded. (setq method nil alist rfc2047-header-encoding-alist)