Gnus development mailing list
 help / color / mirror / Atom feed
From: "Mark D. Baushke" <mdb@gnu.org>
Cc: Katsumi Yamaoka <yamaoka@jpl.org>,
	mh-e-devel@lists.sourceforge.net, ding@gnus.org
Subject: Re: Gnus 5.10.6 problems with PGP/MIME (test cases)
Date: Tue, 07 Feb 2006 01:40:04 -0800	[thread overview]
Message-ID: <26653.1139305204@juniper.net> (raw)
In-Reply-To: <8b63142a-b090-4783-a3a5-0832d7289f38@well-done.deisui.org>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Daiki Ueno <ueno@unixuser.org> writes:

> Thanks Mark for summarizing the discussion.

You are welcome.

> >>>>> In <b4mek2fa9wu.fsf@jpl.org> 
> >>>>>	Katsumi Yamaoka <yamaoka@jpl.org> wrote:
> > `pgg-gpg-encrypt-region' always inserts CR in every line ending
> > of text using `(pgg-as-lbt START END 'CRLF BODY)'.  So, if the
> > --textmode option is not specified, gpg doesn't treat sending
> > data as text and recipients will see ^Ms in a decrypted message.
> 
> > In addition, do you have an idea to solve the ^Ms problem that I
> > mentioned above?
> 
> Is it not enough that we simply omit pgg-as-lbt from
> pgg-gpg-encrypt-region?
> 
> For MIME encryption, it is MUA (not PGP libraries) that should be
> responsible for converting LF to CRLF in encrypted messages since MIME
> encryption is only applicable to messages in MIME canonical format.

Could you please provide the RFC reference for this?

I see in RFC 2015 where it talks about CRLF being canonical for
signatures validation, but it also says that the MUA needs to convert
line endings to the canonical <CR><LF> sequence before the signature can
be verified. This is necessary since the local MTA may ahe converted to
a local end of line convention.

However, I do NOT see it specify that arbitrary data which is being
encrypted should have conversions forced on it at all.

If it is text, then there is a packet type specified in RFC 2440
which specifies the <CR><LF> as the canonical format and a marker that
the packet is text (this is what the --textmode switch to gpg does).

> For non-MIME encryption, line-ending conversion is not needed at all.

I disagree. This is what started the debate in the first place.

If I am sending a text message, then changing the line endings to CRLF
as is done in pgg-gpg-encrypt-region should also tell the remote end
that a text packet is coming rather than arbitrary binary data.

This is also true if I am on a CRLF line ending system and sending an
encrypted text message to a LF line ending system.

I contend that the Gnus system should know if the user is encrypted an
attachment or normal text and tell the underlying transport to do the
right thing so that all permutations of line endings (CR, CRLF, LF,
line-oriented byte count) on each end of the system will know what to
do with the encrypted data.

	Thanks,
	-- Mark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQFD6Gr0Cg7APGsDnFERAq3cAKCORDhuF1d3IfXA9lvQJt3GK4BjQQCguS/B
bVtmekIA4N7BS8dTh4c92TI=
=v/pF
-----END PGP SIGNATURE-----


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

  reply	other threads:[~2006-02-07  9:40 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-12  1:12 Mark D. Baushke
2006-01-13 23:24 ` Reiner Steib
2006-01-14  2:58   ` Mark D. Baushke
2006-01-14 14:58   ` Katsumi Yamaoka
2006-01-16  0:39     ` Katsumi Yamaoka
2006-01-16  6:36       ` Mark D. Baushke
2006-01-16  7:58         ` Katsumi Yamaoka
2006-01-16  8:41           ` Katsumi Yamaoka
2006-01-16  9:00             ` Katsumi Yamaoka
2006-01-16 19:17               ` Bill Wohler
2006-01-16 19:48                 ` Mark D. Baushke
2006-01-17  7:35                   ` Katsumi Yamaoka
2006-01-17  9:00                     ` Mark D. Baushke
2006-01-17 10:53                       ` Katsumi Yamaoka
2006-01-17 18:17                         ` Mark D. Baushke
2006-01-18  5:33                           ` Katsumi Yamaoka
2006-01-18 10:04                             ` Mark D. Baushke
2006-01-18 12:40                               ` Katsumi Yamaoka
2006-01-18 17:25                                 ` Mark D. Baushke
2006-01-18 17:29                                   ` Mark D. Baushke
2006-01-19  6:01                                     ` Katsumi Yamaoka
2006-01-19  9:13                                       ` Mark D. Baushke
2006-01-19  6:01                                   ` Synch of PGG (was Re: Gnus 5.10.6 problems with PGP/MIME (test cases)) Katsumi Yamaoka
2006-01-19 11:53                                     ` Synch of PGG Katsumi Yamaoka
2006-01-19 13:01                                       ` Simon Josefsson
2006-01-19 13:38                                       ` Reiner Steib
2006-01-19 13:47                                         ` Miles Bader
2006-01-19 14:48                                         ` Katsumi Yamaoka
2006-02-07  4:53                                 ` Gnus 5.10.6 problems with PGP/MIME (test cases) Daiki Ueno
2006-02-07  7:12                                   ` Mark D. Baushke
2006-02-07  7:46                                   ` Katsumi Yamaoka
2006-02-07  8:57                                     ` Daiki Ueno
2006-02-07  9:40                                       ` Mark D. Baushke [this message]
     [not found]                                         ` <9bda6607-510b-468c-bd1e-ec9b8865cdd2@well-done.deisui.org>
     [not found]                                           ` <15566.1139355525@juniper.net>
2006-02-08  8:09                                             ` Daiki Ueno
2006-02-08  8:30                                               ` Katsumi Yamaoka
2006-02-08  9:06                                                 ` Daiki Ueno
2006-02-08  9:55                                                   ` Katsumi Yamaoka
2006-02-09  5:24                                                     ` Daiki Ueno
2006-02-09  5:29                                                       ` Daiki Ueno
2006-02-09  5:48                                                       ` Katsumi Yamaoka
2006-02-09  6:40                                                         ` Mark D. Baushke
2006-02-09  6:44                                                           ` Mark D. Baushke
2006-02-09  7:31                                                             ` Katsumi Yamaoka
2006-02-09  7:42                                                               ` Mark D. Baushke
     [not found]                                                             ` <82857.1139467447-3r7Miqu9kMnR7s880joybQ@public.gmane.org>
2006-02-09  8:27                                                               ` refered article lookup (was: Gnus 5.10.6 problems with PGP/MIME (test cases)) Jochen Küpper
2006-02-09  9:19                                                                 ` refered article lookup Katsumi Yamaoka
2006-02-08 15:27                                                   ` Gnus 5.10.6 problems with PGP/MIME (test cases) Mark D. Baushke
2006-02-07 10:02                                       ` Katsumi Yamaoka
2006-02-07 23:40                                         ` 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=26653.1139305204@juniper.net \
    --to=mdb@gnu.org \
    --cc=ding@gnus.org \
    --cc=mh-e-devel@lists.sourceforge.net \
    --cc=yamaoka@jpl.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).