From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84543 Path: news.gmane.org!not-for-mail From: Russ Allbery Newsgroups: gmane.emacs.gnus.general Subject: mail-header-separator starting with whitespace fails Date: Tue, 13 May 2014 09:31:04 -0700 Organization: The Eyrie Message-ID: <87r43xvdx3.fsf@windlord.stanford.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1399998755 14160 80.91.229.3 (13 May 2014 16:32:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 May 2014 16:32:35 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M32788@lists.math.uh.edu Tue May 13 18:32:29 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WkFcy-0002yh-Mb for ding-account@gmane.org; Tue, 13 May 2014 18:32:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1WkFcA-0007cg-7P; Tue, 13 May 2014 11:31:38 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1WkFc7-0007cU-P1 for ding@lists.math.uh.edu; Tue, 13 May 2014 11:31:35 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1WkFbx-0007Fq-J8 for ding@lists.math.uh.edu; Tue, 13 May 2014 11:31:35 -0500 Original-Received: from smtp3.stanford.edu ([171.67.219.83] helo=smtp.stanford.edu) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1WkFbv-00016x-OY for ding@gnus.org; Tue, 13 May 2014 18:31:23 +0200 Original-Received: from smtp.stanford.edu (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 9B27910131B for ; Tue, 13 May 2014 09:31:17 -0700 (PDT) Original-Received: from windlord.stanford.edu (windlord.Stanford.EDU [171.67.225.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.stanford.edu (Postfix) with ESMTPS id B157C100E47 for ; Tue, 13 May 2014 09:31:04 -0700 (PDT) Original-Received: by windlord.stanford.edu (Postfix, from userid 1000) id A3CF52FE99; Tue, 13 May 2014 09:31:04 -0700 (PDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Spam-Score: -4.9 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84543 Archived-At: Hello all, I just upgraded to Emacs 24 from Emacs 23, with the corresponding change in Gnus versions. For the most part this went smoothly (thank you!). But there was one rather annoying hiccup that caused some problems, and I thought I'd mention it somewhere so that people could consider whether it's worth fixing. I've never liked the default mail-header-separator in Emacs. I think it blends in with the header and the start of the body text. So for years I've used: (setq mail-header-separator (concat (make-string 39 ? ) ".")) to create a separator that's much less obtrusive. Unfortunately, when upgrading from Emacs 23 to Emacs 24, something in Gnus or in the underneath modes changed so that this mail-header-separator no longer works. It's appended to the Content-Type header (causing message corruption if it has a charset setting), and then the first line of the body is lifted into the headers and disappears. Removing this setting fixes the problem, but brings back the default message separator. I did a little bit of poking around, and it looks like something inside the Gnus message code isn't actually using mail-header-separator but instead is looking for the first line in the buffer that doesn't look like a header. Since my message separator looked like a continuation line, it skipped right past it and kept going. This seems surprising to me. I think whatever is in mail-header-separator should always work, even if it looks like a header. -- Russ Allbery (eagle@eyrie.org)