unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Paul Michael Reilly <pmr@pajato.com>
Cc: emacs-devel@gnu.org
Subject: Re: Rmail and headers in other than US-ASCII (RFC2047 encoded words)
Date: Tue, 25 Feb 2003 09:25:39 -0500	[thread overview]
Message-ID: <200302251425.h1PEPdts016420@copa.pajato.com> (raw)
In-Reply-To: <i56isv8609b.fsf@mao.acc.umu.se> (message from stktrc on Tue, 25 Feb 2003 12:57:36 +0100)

 > I have a question about where (Rmail, or an add-on MIME-package) the
 > feature of decoding RFC2047 (MIME Part Three) "encoded words" in
 > headers belongs.  Example:
 > 
 > Subject: =?iso-8859-1?q?sm=F6rg=E5s?=
 > 
 > Currently, Rmail does not support decoding of RFC2047 "encoded words"
 > in headers.

I've been doing some work on Rmail (converting to mbox format) and I
have a goal to make Rmail handle MIME in some first class fashion.
But I don't have a concrete plan on how I'm going to do that.

I'm not familiar with RFC2047 but I will take a look at it.

My gut feel is that decoding headers should be tied to some existing
mime support flag, possibly `rmail-enable-mime', or creating a new
variable `rmail-enable-mime-headers'.  But it is not high on my
priority list right now.  Feel free to create a patch if you so
desire.

FWIW, my priorities are to overhaul `unrmail' so that it deals with
mbox format, then I'm going to focus on full imap support, doing it
such that there is a clear delineation between an Rmail front end and
multiple back ends.

 > I understand (and support) motives for keeping Rmail simple, but as
 > Rmail currently supports decoding quoted-printable-encoded message
 > bodies, maybe supporting decoding of headers in Rmail wouldn't be
 > inappropriate.
 > 
 > Would Rmail want to support this?

If you send me a patch, I'll certainly try it out and integrate it
into the mbox branch.

 > It's possible to decode the headers with
 > 
 > (add-hook 'rmail-show-message-hook
 >           (lambda ()
 >             (save-restriction
 >               (let ((inhibit-read-only t))
 >                 (rmail-narrow-to-non-pruned-header)
 >                 (require 'mail-parse)
 >                 (mail-decode-encoded-word-region (point-min) (point-max))))))
 > 
 > but it has a dependency on mail-parse found in the gnus subdirectory.
 > I'm not sure if mail-parse is to be considered independent of Gnus
 > (though it seems to be documented as such in the Emacs MIME info
 > documentation), and even then it's questionable if it's appropriate to
 > have Rmail depend on it.
 > 
 > There's always the option of implementing the functionality in Rmail
 > itself, if the dependency is undesirable.

It seems to me that the function has general use.  I'm not sure where
it belongs, but it seems pretty clear that it should not be homed in
gnus for general consumption.  Maybe Richard will have some insight
here.

 > So far my experiences with the MIME packages for Rmail floating around
 > unfortunately haven't been satisfying.  I like Rmail and would like it
 > to be even more usable out-of-the-box, while keeping it simple.

I'll second that.  :-)

-pmr

       reply	other threads:[~2003-02-25 14:25 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <i56isv8609b.fsf@mao.acc.umu.se>
2003-02-25 14:25 ` Paul Michael Reilly [this message]
2003-02-25 23:33   ` Rmail and headers in other than US-ASCII (RFC2047 encoded words) Satyaki Das
2003-02-25 23:55     ` Stefan Monnier
2003-02-26  0:11       ` Miles Bader
2003-02-26  0:14         ` Stefan Monnier
2003-02-26 23:25         ` Richard Stallman
2003-02-27  1:37           ` Miles Bader
2003-02-28  6:06             ` Richard Stallman
2003-02-28  6:21               ` Miles Bader
2003-03-01 21:44                 ` Richard Stallman
     [not found]               ` <i56smu8vbey.fsf@mao.acc.umu.se>
2003-02-28 13:45                 ` Miles Bader
2003-03-01 21:44                   ` Richard Stallman
     [not found]                     ` <i56zno6kiqn.fsf@mao.acc.umu.se>
2003-03-07 21:10                       ` Michael Welsh Duggan
2003-03-07 22:01                         ` Edward O'Connor
2003-03-09 19:25                         ` Richard Stallman
2003-03-10 14:07                           ` Kai Großjohann
2003-03-11  1:07                             ` Richard Stallman
     [not found]                         ` <i56isuuiyky.fsf@mao.acc.umu.se>
2003-03-10  1:46                           ` Miles Bader
2003-03-11 18:35                             ` Richard Stallman
2003-02-28 14:02                 ` Robert J. Chassell
2003-03-01 21:44                 ` Richard Stallman
2003-02-27 16:31           ` Kai Großjohann
2003-03-01  2:25             ` Richard Stallman
2003-02-27 18:42           ` Stefan Monnier
2003-03-01 21:47         ` Lars Magne Ingebrigtsen
2003-03-02 15:07           ` Richard Stallman
2003-02-26  9:47   ` Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200302251425.h1PEPdts016420@copa.pajato.com \
    --to=pmr@pajato.com \
    --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 public inbox

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

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 read-only IMAP folder(s) and NNTP newsgroup(s).