[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in metamail

From: Masanobu UMEDA
Subject: Re: Bug in metamail
Date: Fri, 11 Oct 2002 00:01:15 +0900

   From: Richard Stallman <address@hidden>
   Reply-To: address@hidden
   Date: Thu, 10 Oct 2002 04:43:06 -0400

   Would you please fix this bug in metamail.el in the latest Emacs?
   (Are you still maintaining it?)

  >> I looked at that file and I noticed
  >> that the header "Content-Type: MULTIPART/MIXED;" is missing in it. For
  >> some reason emacs removes it before running metamail. 

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.

;; Leave MIME related headers.
(let ((headers '("\\|^mime-version:"
      (case-fold-search t))
  (while headers
    (if (string-match (regexp-quote (car headers)) rmail-ignored-headers)
        (setq rmail-ignored-headers
              (concat (substring rmail-ignored-headers 0 (match-beginning 0))
                      (substring rmail-ignored-headers (match-end 0)))))
    (setq headers (cdr headers))))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]