Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Subject: Re: Problem with gnus-output-to-mail in gnus-util.el
Date: Mon, 22 Nov 2004 17:55:43 +0100	[thread overview]
Message-ID: <iluzn19rfg0.fsf@latte.josefsson.org> (raw)
In-Reply-To: <k6sd4z29.fsf@gmail.com>

CHENG Gao <chenggao@gmail.com> 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 >.




  reply	other threads:[~2004-11-22 16:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-22 16:40 CHENG Gao
2004-11-22 16:55 ` Simon Josefsson [this message]
2004-11-22 17:19   ` CHENG Gao
2004-11-22 17:43     ` CHENG Gao
2004-11-22 18:38       ` Reiner Steib
2004-11-23  7:23         ` Cheng Gao
2004-11-23  8:27           ` Reiner Steib
2004-11-22 19:23     ` David Z Maze

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=iluzn19rfg0.fsf@latte.josefsson.org \
    --to=jas@extundo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).