Gnus development mailing list
 help / color / mirror / Atom feed
* recent message.el quote changes.
@ 2001-08-07 17:31 Simon Josefsson
  2001-08-07 19:20 ` Kai Großjohann
  2001-08-07 21:10 ` Florian Weimer
  0 siblings, 2 replies; 5+ messages in thread
From: Simon Josefsson @ 2001-08-07 17:31 UTC (permalink / raw)


The recent changes aren't perfect, I've seen a few versions of the
following in just 2-3 days.  Original text:

,----
| >I think some servers MIME parse messages and store them in another
| >equivalent format somehow, and when clients requests RFC822-messages
| >it reconstructs MIME delimiters and MIME headers.  All the 
| information
| >is there, but since the signature was calculated over the first MIME
| >delimiters/headers the reconstruction often breaks the signature.
`----

When quoted with recent Gnus it looks like:

,----
| >>I think some servers MIME parse messages and store them in another
| >>equivalent format somehow, and when clients requests RFC822-messages
| >>it reconstructs MIME delimiters and MIME headers.  All the 
| > information
| > >is there, but since the signature was calculated over the first MIME
| >>delimiters/headers the reconstruction often breaks the signature.
`----

Maybe the assumption that quoted lines are always preceeded by a blank
line is too much.  My feelings is that it's difficult to get AI to
work, especially intelligent AI. :-)



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: recent message.el quote changes.
  2001-08-07 17:31 recent message.el quote changes Simon Josefsson
@ 2001-08-07 19:20 ` Kai Großjohann
  2001-08-07 21:10 ` Florian Weimer
  1 sibling, 0 replies; 5+ messages in thread
From: Kai Großjohann @ 2001-08-07 19:20 UTC (permalink / raw)
  Cc: ding

Simon Josefsson <jas@extundo.com> writes:

> ,----
> | >>I think some servers MIME parse messages and store them in another
> | >>equivalent format somehow, and when clients requests RFC822-messages
> | >>it reconstructs MIME delimiters and MIME headers.  All the 
> | > information
> | > >is there, but since the signature was calculated over the first MIME
> | >>delimiters/headers the reconstruction often breaks the signature.
> `----

Wow.  Now you can automatically replace "\n\\(.*\\)\n> >" with "$1\n>> "
or something and repair broken quotes :-)

kai
-- 
~/.signature: No such file or directory


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: recent message.el quote changes.
  2001-08-07 17:31 recent message.el quote changes Simon Josefsson
  2001-08-07 19:20 ` Kai Großjohann
@ 2001-08-07 21:10 ` Florian Weimer
  2001-08-08 11:59   ` Simon Josefsson
  2001-08-08 20:35   ` Raymond Scholz
  1 sibling, 2 replies; 5+ messages in thread
From: Florian Weimer @ 2001-08-07 21:10 UTC (permalink / raw)


Simon Josefsson <jas@extundo.com> writes:

> The recent changes aren't perfect, I've seen a few versions of the
> following in just 2-3 days.  Original text:
>
> ,----
> | >I think some servers MIME parse messages and store them in another
> | >equivalent format somehow, and when clients requests RFC822-messages
> | >it reconstructs MIME delimiters and MIME headers.  All the 
> | information
> | >is there, but since the signature was calculated over the first MIME
> | >delimiters/headers the reconstruction often breaks the signature.
> `----

I think I'm going to write a comb quoting detector and restorer.

BTW, does Outlook always use '>' and never '> '?


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: recent message.el quote changes.
  2001-08-07 21:10 ` Florian Weimer
@ 2001-08-08 11:59   ` Simon Josefsson
  2001-08-08 20:35   ` Raymond Scholz
  1 sibling, 0 replies; 5+ messages in thread
From: Simon Josefsson @ 2001-08-08 11:59 UTC (permalink / raw)
  Cc: ding

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

>> ,----
>> | >I think some servers MIME parse messages and store them in another
>> | >equivalent format somehow, and when clients requests RFC822-messages
>> | >it reconstructs MIME delimiters and MIME headers.  All the 
>> | information
>> | >is there, but since the signature was calculated over the first MIME
>> | >delimiters/headers the reconstruction often breaks the signature.
>> `----
>
> I think I'm going to write a comb quoting detector and restorer.

Maybe changing the current algorithm to assume that a line is quoted
only if preceeded by blank line into a negative; "a line is not
considered quoted if it starts with > and the next character is
[0-9]"?

I don't think words beginning with ">" are that common that we need to
assume that lines beginning with such words need to be preceeded by
blank lines to be regarded as quoted.  (Five points for anyone who
managed to follow that logic.)  I'm not sure I like the
blank-lines-preceed-quoted-lines assumption, there's no specification
I know of that suggests that.

I'm starting to lean towards my first patch, I'd rather have a simple
algorithm that fails sometimes than a complicated algorithm that fails
sometimes.  As it stands, the simple algorithm fails less frequent
than the complicated as well.

> BTW, does Outlook always use '>' and never '> '?

Maybe that approach is simpler/better, and it is OK with both usefor
and RFC2646.  But it doesn't look good.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: recent message.el quote changes.
  2001-08-07 21:10 ` Florian Weimer
  2001-08-08 11:59   ` Simon Josefsson
@ 2001-08-08 20:35   ` Raymond Scholz
  1 sibling, 0 replies; 5+ messages in thread
From: Raymond Scholz @ 2001-08-08 20:35 UTC (permalink / raw)


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

> I think I'm going to write a comb quoting detector and restorer.

http://my.gnus.org/viewtopic.php?topic=58&forum=9

Cheers, Ray
-- 
Sigmentation fault, core dumped.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-08-08 20:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-07 17:31 recent message.el quote changes Simon Josefsson
2001-08-07 19:20 ` Kai Großjohann
2001-08-07 21:10 ` Florian Weimer
2001-08-08 11:59   ` Simon Josefsson
2001-08-08 20:35   ` Raymond Scholz

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).