Gnus development mailing list
 help / color / mirror / Atom feed
From: Hrvoje Niksic <hniksic@xemacs.org>
Cc: hniksic@redhat.com
Subject: Re: Non-MML forwarding strips Content-Transfer-Encoding
Date: Sat, 27 Jul 2002 18:35:58 +0200	[thread overview]
Message-ID: <sxsofctm8lt.fsf@florida.munich.redhat.com> (raw)
In-Reply-To: <iluadoez7gl.fsf@latte.josefsson.org> (Simon Josefsson's message of "Fri, 26 Jul 2002 20:10:02 +0200")

Simon Josefsson <jas@extundo.com> writes:

>> Obviously, stripping Content-Transfer-Encoding is wrong.  The
>> resulting message is corrupted because its body will be interpreted
>> to contain 7bit data.  It is also wrong in principle -- when
>> `message-forward-show-mml' is unset, I expect little or no
>> tinkering with the embedded message.  Gnus should just make sure it
>> is correctly embedded as a part, and the rest will follow from
>> that.
>
> Yup.  Removing it is Right when message-forward-show-mml is non-nil,
> the default, though.  So it is probably only a matter of not testing
> that combination.

That's what I assumed as well.

> This should fix that particular problem.
>
> --- message.el.~6.240.~	2002-06-29 16:38:03.000000000 +0200
> +++ message.el	2002-07-26 19:07:45.000000000 +0200
> @@ -5190,7 +5190,9 @@
>  			    (or (search-forward "\n\n" nil t) (point)))
>  	  (delete-region (point-min) (point-max)))
>        (when (and (not current-prefix-arg)
> -		 message-forward-ignored-headers)
> +		 message-forward-ignored-headers
> +		 ;; don't remove CTE, X-Gnus etc when doing "raw" forward:
> +		 message-forward-show-mml)
>  	(save-restriction
>  	  (narrow-to-region b e)
>  	  (goto-char b)

Thanks.  It works for me now.  I assume the patch has been applied to
CVS?

> If this isn't sufficient for you, I'm not sure what to do except
> debugging every step of sending the mail to track what is happening.

No, this is perfectly fine.  The only testing you need is to set
message-forward-show-mml to nil, press `S o m', and take a look at
whether the included attachment still includes
`Content-Transfer-Encoding'.

Thanks for helping with this.



  reply	other threads:[~2002-07-27 16:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-23 13:47 Hrvoje Niksic
2002-07-26 18:10 ` Simon Josefsson
2002-07-27 16:35   ` Hrvoje Niksic [this message]
2002-07-27 20:48     ` Simon Josefsson

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=sxsofctm8lt.fsf@florida.munich.redhat.com \
    --to=hniksic@xemacs.org \
    --cc=hniksic@redhat.com \
    /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).