* PGP/MIME replaces lines starting with "from " with "From "
@ 2015-12-03 12:34 Simon Josefsson
2015-12-04 4:42 ` Daiki Ueno
0 siblings, 1 reply; 2+ messages in thread
From: Simon Josefsson @ 2015-12-03 12:34 UTC (permalink / raw)
To: ding
[-- Attachment #1: Type: text/plain, Size: 1234 bytes --]
Hi. I have noticed that Gnus replaces lines matching "^from " with
"From " when PGP/MIME is used. This is probably due RFC 3156:
Note: If any line begins with the string "From ", it is strongly
suggested that either the Quoted-Printable or Base64 MIME encoding
be applied. If Quoted-Printable is used, at least one of the
characters in the string should be encoded using the hexadecimal
coding rule. This is because many mail transfer and delivery
agents treat "From " (the word "from" followed immediately by a
space character) as the start of a new message and thus insert a
right angle-bracket (>) in front of any line beginning with
"From " to distinguish this case, invalidating the signature.
I believe this ought to be case-sensitive "^From " matches only, which
would not include "^from ". I have tested both the Claws Mail and
Evolution MUAs, and they will QP-encode lines matching "^From " (both as
"=46rom " incidentally) but NOT escape lines matching "^from ".
I haven't been able to figure out where in Gnus (or the PGP sub-systems)
this happens, so I'm bringing it up here to see if anyone else agrees
with my interpretation and is able to fix this.
/Simon
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: PGP/MIME replaces lines starting with "from " with "From "
2015-12-03 12:34 PGP/MIME replaces lines starting with "from " with "From " Simon Josefsson
@ 2015-12-04 4:42 ` Daiki Ueno
0 siblings, 0 replies; 2+ messages in thread
From: Daiki Ueno @ 2015-12-04 4:42 UTC (permalink / raw)
To: ding
Simon Josefsson <simon@josefsson.org> writes:
> I believe this ought to be case-sensitive "^From " matches only, which
> would not include "^from ". I have tested both the Claws Mail and
> Evolution MUAs, and they will QP-encode lines matching "^From " (both as
> "=46rom " incidentally) but NOT escape lines matching "^from ".
>
> I haven't been able to figure out where in Gnus (or the PGP sub-systems)
> this happens, so I'm bringing it up here to see if anyone else agrees
> with my interpretation and is able to fix this.
It seems to be actually done in the QP-encoding phase. I've pushed a
trivial fix:
http://git.gnus.org/cgit/gnus.git/commit/?id=6aa54ac2
Regards,
--
Daiki Ueno
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-12-04 4:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-03 12:34 PGP/MIME replaces lines starting with "from " with "From " Simon Josefsson
2015-12-04 4:42 ` Daiki Ueno
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).