Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Cc: ding@gnus.org
Subject: Re: "> > >" space removal removes too many spaces?
Date: Sun, 05 Aug 2001 21:30:32 +0200	[thread overview]
Message-ID: <iluofpucnjb.fsf@barbar.josefsson.org> (raw)
In-Reply-To: <87g0b64l87.fsf@deneb.enyo.de> (Florian Weimer's message of "Sun, 05 Aug 2001 16:47:36 +0200")

Florian Weimer <fw@deneb.enyo.de> writes:

> Simon Josefsson <jas@extundo.com> writes:
> 
>>> '>' may appear at the beginning of a line accidently, and we certainly
>>> want to supply the space character in this case.
>> 
>> First, wouldn't it be very complicated to solve your case?
> 
> No, I don't think so.  I think it helps to consider a leading '>' to
> be a quote character only if the preceding line is empty (or consists
> entirely of whitespace), or if it starts in turn with a '>'.

Ah.  It's not a complete solution then, but probably covers enough
cases to be worth it.

> I've just implemented this logic (at least I think so).

Looks nice.

>> I don't see how you programatically can easily separate your case
>> from e.g.
>> 
>>> According to your analysis
>>>>42 is a nice number
>>> you indicate that 42 is a nice number.
>> 
>> but suggestions are welcome. :)
> 
> Not leaving blank lines before and after quotes is not my preferred
> style of writing messages. ;-)

Mine neither, but I see it from time to time.

>> Secondly, RFC 2646 compliant MUAs should never generate this case in
>> the first place.  Even if you don't generate RFC 2646 (Gnus doesn't)
>> you could QP encode the character to prevent the ambiguity.
> 
> Does RFC 2646 really try to solve the problem this way?  In this
> case, the RFC is horribly broken.  Attaching semantic to QP encoding
> vs. not-encoding is clearly an extremely bad idea, and it certainly
> contradicts the spirit of MIME.

No, I think that approach is suggested in a couple of places, RFC 2015
being the only one I can find now (they use it to protect "From").
RFC 2646 suggests an alternate approach, space-stuffing the lines.  It
might be cleaner, but it's (slightly) less visually pleasing to
non-RFC 2646 clients.  The idea above looks good on all clients that
support QP.

The semantic of QP encoding vs unencoded is only in the generating
client, the receiver doesn't care.



  parent reply	other threads:[~2001-08-05 19:30 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-05 11:53 Kai Großjohann
2001-08-05 12:05 ` Norbert Koch
2001-08-05 12:15   ` Kai Großjohann
2001-08-05 12:23     ` Norbert Koch
2001-08-05 13:03 ` Simon Josefsson
2001-08-05 13:10   ` Simon Josefsson
2001-08-05 13:46   ` Florian Weimer
2001-08-05 13:57     ` Simon Josefsson
2001-08-05 14:24       ` Nuutti Kotivuori
2001-08-05 14:49         ` Florian Weimer
2001-08-05 21:23           ` Nuutti Kotivuori
2001-08-05 14:47       ` Florian Weimer
2001-08-05 17:25         ` Kai Großjohann
2001-08-05 17:55           ` Florian Weimer
2001-08-05 19:30         ` Simon Josefsson [this message]
2001-08-05 20:11           ` Florian Weimer
2001-08-05 20:45             ` Kai Großjohann
2001-08-05 20:08         ` Kai Großjohann
2001-08-05 23:11   ` Paul Jarc
2001-08-06  6:33     ` Florian Weimer

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=iluofpucnjb.fsf@barbar.josefsson.org \
    --to=jas@extundo.com \
    --cc=ding@gnus.org \
    /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).