From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85615 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: mail-header-separator starting with whitespace fails Date: Wed, 28 Jan 2015 16:49:25 +1100 Message-ID: <87y4onwj2y.fsf@building.gnus.org> References: <87r43xvdx3.fsf@windlord.stanford.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1422424246 14358 80.91.229.3 (28 Jan 2015 05:50:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Jan 2015 05:50:46 +0000 (UTC) Cc: ding@gnus.org To: Katsumi Yamaoka Original-X-From: ding-owner+M33856@lists.math.uh.edu Wed Jan 28 06:50:45 2015 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 1YGLWW-0003xE-B4 for ding-account@gmane.org; Wed, 28 Jan 2015 06:50:44 +0100 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 1YGLWS-0000GL-Qf; Tue, 27 Jan 2015 23:50:40 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1YGLWR-0000G8-MN for ding@lists.math.uh.edu; Tue, 27 Jan 2015 23:50:39 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.84) (envelope-from ) id 1YGLWQ-0005e2-Oa for ding@lists.math.uh.edu; Tue, 27 Jan 2015 23:50:39 -0600 Original-Received: from smtp.syd.comcen.com.au ([203.23.236.77]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1YGLWN-0003ka-V8 for ding@gnus.org; Wed, 28 Jan 2015 06:50:36 +0100 Original-Received: from building.gnus.org ([27.96.197.126]) by smtp.syd.comcen.com.au (8.13.4/8.12.9) with ESMTP id t0S5nUPT032399; Wed, 28 Jan 2015 16:49:30 +1100 (EST) In-Reply-To: (Katsumi Yamaoka's message of "Wed, 14 May 2014 09:41:38 +0900") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-comcen-MailScanner-Information: Please contact the ISP for more information X-comcen-MailScanner: Found to be clean X-comcen-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=0.102, required 4, AWL 0.00, BAYES_50 0.00, RDNS_NONE 0.10) X-comcen-MailScanner-From: larsi@gnus.org X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:85615 Archived-At: Katsumi Yamaoka writes: > 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?) > > (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)))) > > 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'. The mail header separator should have been stripped before the message was passed to smtpmail, though, so I think something else must be wrong somewhere... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/