all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: akopps@Math.Berkeley.EDU, emacs-devel@gnu.org
Subject: Re: Bug in metamail
Date: Fri, 11 Oct 2002 19:46:05 -0400	[thread overview]
Message-ID: <E1809Tp-0008MC-00@fencepost.gnu.org> (raw)
In-Reply-To: <200210101501.AAA01028@latour.mse.kyutech.ac.jp> (message from Masanobu UMEDA on Fri, 11 Oct 2002 00:01:15 +0900)

    This is because rmail-ignored-headers includes MIME related headers,
    such as "Content-Type:".  Simple user level solution is to put the
    following code in .emacs.  It is much better to remove these headers
    from rmail-ignored-headers in the next release of emacs distribution.

Hiding these headers is useful.  Most users don't use metamail, and
it would be a shame to give up the useful feature for them.

I think the right fix is that metamail should temporarily unhide the
headers.  This is not terribly hard to do--see rmail-redecode-body for
an example:

      (let ((pruned (rmail-msg-is-pruned)))
	(unwind-protect
	    (let ((msgbeg (rmail-msgbeg rmail-current-message))
		  (msgend (rmail-msgend rmail-current-message)))
	      ;; Un-prune the message if it is pruned.
	      (if pruned
		  (rmail-toggle-header 1))
	      (narrow-to-region msgbeg msgend)
	      (goto-char (point-min))
	      (when (search-forward "\n*** EOOH ***\n" (point-max) t)
		(narrow-to-region msgbeg (point)))
	      (goto-char (point-min))
	      ... your code here ...
	      )
	  (if pruned
	      (rmail-toggle-header 0))))

Could you try using this approach?

Another approach is to search both the pruned and original
headers.  That would not require changing the buffer,
not even temporarily, so it would be advantageous.
It should not be terribly heard, even.
But you'd have to write that code.

  reply	other threads:[~2002-10-11 23:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-10  8:43 Bug in metamail Richard Stallman
2002-10-10 15:01 ` Masanobu UMEDA
2002-10-11 23:46   ` Richard Stallman [this message]
2002-12-09 11:54     ` Masanobu UMEDA

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=E1809Tp-0008MC-00@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=akopps@Math.Berkeley.EDU \
    --cc=emacs-devel@gnu.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.