Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <simon@josefsson.org>
To: ding@gnus.org
Subject: PGP/MIME replaces lines starting with "from " with "From "
Date: Thu, 03 Dec 2015 13:34:27 +0100	[thread overview]
Message-ID: <87d1unzp64.fsf@latte.josefsson.org> (raw)

[-- 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 --]

             reply	other threads:[~2015-12-03 12:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-03 12:34 Simon Josefsson [this message]
2015-12-04  4:42 ` Daiki Ueno

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=87d1unzp64.fsf@latte.josefsson.org \
    --to=simon@josefsson.org \
    --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).