emacs-devel
[Top][All Lists]
Advanced

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

Re: Recognize mbox files?


From: Stefan Monnier
Subject: Re: Recognize mbox files?
Date: Tue, 17 Feb 2009 11:36:57 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux)

> What is wrong with using real local variables?  Either by adding it to
> the first message, or always adding "-*- rmail -*-" to X-RMAIL-...?
> That way a user could disable rmail explictly for a file, or enable it
> by adding -*- rmail -*- to it.  This would then work exactly as it did
> for RMAIL/BABYL.  Without adding specifc rmail hacks to other parts of
> emacs.

That's my idea as well: try to use the -*-rmail-*- tag.
It might even be possible to place it on the first ("From ") line.
It probably means to lose/garble that first line's info, so we may want
to first copy that info into an "Envelope-From:" header.

Another issue is to make sure those files get opened into a unibyte
buffer (i.e. use a `binary' coding-system).  So maybe the tag should
really be -*-mode:rmail;coding:binary-*-.


        Stefan





reply via email to

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