From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84544 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: mail-header-separator starting with whitespace fails Date: Wed, 14 May 2014 09:41:38 +0900 Organization: Emacsen advocacy group Message-ID: References: <87r43xvdx3.fsf@windlord.stanford.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1400028170 10209 80.91.229.3 (14 May 2014 00:42:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 May 2014 00:42:50 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M32789@lists.math.uh.edu Wed May 14 02:42:43 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 1WkNHO-0005Sj-M0 for ding-account@gmane.org; Wed, 14 May 2014 02:42:42 +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 1WkNGa-00017D-Cd; Tue, 13 May 2014 19:41:52 -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 1WkNGX-000172-Pm for ding@lists.math.uh.edu; Tue, 13 May 2014 19:41:49 -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 1WkNGW-0000jV-Hw for ding@lists.math.uh.edu; Tue, 13 May 2014 19:41:49 -0500 Original-Received: from hampton-mail.hostforweb.net ([205.234.204.210] helo=hampton.hostforweb.net) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1WkNGU-0005J8-Oo for ding@gnus.org; Wed, 14 May 2014 02:41:46 +0200 Original-Received: from localhost.localdomain ([127.0.0.1]:33489 helo=localhost) by hampton.hostforweb.net with smtp (Exim 4.82) (envelope-from ) id 1WkNGN-002Bs7-8S for ding@gnus.org; Tue, 13 May 2014 19:41:39 -0500 X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.130012 (=?iso-2022-jp?B?GyRCPz8bKEI=?= Gnus v0.12) Emacs/24.4.50 (i686-pc-cygwin) Cancel-Lock: sha1:AvQIal1ZY/o5WbXFLt60a84fPmo= X-OutGoing-Spam-Status: No, score=-2.9 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: acl_c_authenticated_local_user: yamaoka X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -0.0 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84544 Archived-At: On Tue, 13 May 2014 09:31:04 -0700, Russ Allbery wrote: > (setq mail-header-separator (concat (make-string 39 ? ) ".")) I tried this, confirmed it causes a mail corruption, and found at least one cause. Could you try replacing the function definition of `rfc822-goto-eoh' with this? (I.e., eval this form?) --8<---------------cut here---------------start------------->8--- (defun rfc822-goto-eoh () "If the buffer starts with a mail header, move point to the header's end. Otherwise, moves to `point-min'. The end of the header is the start of the next line, if there is one, else the end of the last line. This function obeys RFC822." (goto-char (point-min)) (when (re-search-forward (concat "^" (regexp-quote mail-header-separator) "\n\\|" "^\\([:\n]\\|[^: \t\n]+[ \t\n]\\)") nil 'move) (goto-char (match-beginning 0)))) --8<---------------cut here---------------end--------------->8--- This function is used by `smtpmail-send-it' by way of `mail-sendmail-undelimit-header' to delete the separator, but the original one doesn't respect `mail-header-separator'. But I'm not quite sure that it is a cause of your problem, since those functions seem not to have been modified for years. Didn't you use a separator that does not begin with a SPC, like this? . .