From: Reiner Steib <reinersteib+gmane@imap.cc>
Subject: Search for multipart/(signed|encrypted) in message-forward-make-body
Date: Thu, 09 Nov 2006 14:49:34 +0100 [thread overview]
Message-ID: <v93b8senm9.fsf@marauder.physik.uni-ulm.de> (raw)
Hi,
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?
--8<---------------cut here---------------start------------->8---
--- message.el 09 Nov 2006 14:45:46 +0100 7.189
+++ message.el 09 Nov 2006 14:48:17 +0100
@@ -6798,10 +6798,12 @@
(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)))))
+ (save-restriction
+ (mail-narrow-to-head)
+ (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)))
--8<---------------cut here---------------end--------------->8---
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
next reply other threads:[~2006-11-09 13:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-09 13:49 Reiner Steib [this message]
2006-11-10 6:40 ` Katsumi Yamaoka
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=v93b8senm9.fsf@marauder.physik.uni-ulm.de \
--to=reinersteib+gmane@imap.cc \
--cc=Reiner.Steib@gmx.de \
/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).