From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/59244 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: Problem with gnus-output-to-mail in gnus-util.el Date: Mon, 22 Nov 2004 17:55:43 +0100 Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1101142601 19779 80.91.229.6 (22 Nov 2004 16:56:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Nov 2004 16:56:41 +0000 (UTC) Original-X-From: ding-owner+M7784@lists.math.uh.edu Mon Nov 22 17:56:28 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13] ident=mail) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CWHUK-0006e6-00 for ; Mon, 22 Nov 2004 17:56:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1CWHTw-0000cc-00; Mon, 22 Nov 2004 10:56:04 -0600 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1CWHTs-0000cX-00 for ding@lists.math.uh.edu; Mon, 22 Nov 2004 10:56:00 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1CWHTo-0004P7-L5 for ding@lists.math.uh.edu; Mon, 22 Nov 2004 10:55:56 -0600 Original-Received: from main.gmane.org (main.gmane.org [80.91.229.2]) by justine.libertine.org (Postfix) with ESMTP id E7A9C3A023C for ; Mon, 22 Nov 2004 10:55:55 -0600 (CST) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CWHTm-0005ad-00 for ; Mon, 22 Nov 2004 17:55:54 +0100 Original-Received: from c494102a.s-bi.bostream.se ([217.215.27.65]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 22 Nov 2004 17:55:54 +0100 Original-Received: from jas by c494102a.s-bi.bostream.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 22 Nov 2004 17:55:54 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 31 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: c494102a.s-bi.bostream.se OpenPGP: id=0xB565716F; url=http://josefsson.org/key.txt X-Hashcash: 1:23:041122:gmane.emacs.gnus.general::ZqJfT7ULZblg2T47:00000000000000000000000000000000000001wH4 User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:Loq66sujMxprwRbavXLt0YR8PmY= Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: main.gmane.org gmane.emacs.gnus.general:59244 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:59244 CHENG Gao writes: > I found a problem with latest No Gnus. > > Any "From" at the beginning of a line will have a ">" inserted when > posted. It shouldn't have. > I found it's owing to code in gnus-output-to-mail in > gnus-util.el: > line 937-940: > > (let (case-fold-search) > (while (re-search-forward "^From " nil t) > (beginning-of-line) > (insert ">"))) > > I just wonder why this code exists. Is it intended or it's a bug? That function is used when storing the message in a mbox file. The mbox file format uses ^From for internal purposes, so any such lines must be escaped. I think we should make sure Gnus does not escape From into >From unless it is absolutely necessary (like when storing a message into a mbox file). In some mail environments ^From actually work, and then it would bad annoying if Gnus alter such messages. Note that it might be your server that escape this. Use tcpdump to determine whether it is Gnus or the server that add the >.