Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
Subject: Re: Search for multipart/(signed|encrypted) in message-forward-make-body
Date: Fri, 10 Nov 2006 15:40:53 +0900	[thread overview]
Message-ID: <b4my7qjyfbe.fsf@jpl.org> (raw)
In-Reply-To: <v93b8senm9.fsf@marauder.physik.uni-ulm.de>

>>>>> In <v93b8senm9.fsf@marauder.physik.uni-ulm.de>
>>>>>	Reiner Steib wrote:

> in `message-forward-make-body' we have:

>   (if digest
>       (message-forward-make-body-digest forward-buffer)
>     (if message-forward-as-mime
> 	(if (and message-forward-show-mml
> 		 (not (and (eq message-forward-show-mml 'best)
> 			   (with-current-buffer forward-buffer
> 			     (goto-char (point-min))
> 			     (re-search-forward
> 			      "Content-Type: *multipart/\\(signed\\|encrypted\\)"
> 			      nil t)))))
> 	    (message-forward-make-body-mml forward-buffer)
> 	  (message-forward-make-body-mime forward-buffer))
>       (message-forward-make-body-plain forward-buffer)))

> Shouldn't the search for multipart/(signed|encrypted) be restricted to
> the headers?

I don't think so.  I tested your patch by forwarding again a
forwarded message in which the forwarded part contains non-ASCII
text and a gpg signature.  Note that the gpg signature was made
with encoded text.  Where the word *encoded* means charset
encoding and CTE (i.e., 7bit, B, or Q) encoding.

When I type `C-c C-f' in the summary buffer, I get a message
buffer with human-readable text in the body.  That's good.
However, Gnus will not necessarily use the same CTE as the one
used when the original message was sent.  Because there is no
`encoding=' tag which inherits the original CTE.  Even if they
are the same, Q encoding does not always output the same result.
So, it may destroy the consistency of the text and the signature.

Regards,



  reply	other threads:[~2006-11-10  6:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-09 13:49 Reiner Steib
2006-11-10  6:40 ` Katsumi Yamaoka [this message]
2006-11-11 21:10   ` Reiner Steib
2006-11-22  7:25     ` Katsumi Yamaoka
2006-11-30  6:22       ` Katsumi Yamaoka
2006-11-30 21:37         ` Reiner Steib

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=b4my7qjyfbe.fsf@jpl.org \
    --to=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).