home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- Path: sparky!uunet!pipex!demon!edscom.demon.co.uk!kevin
- From: kevin@edscom.demon.co.uk (Kevin Broadey)
- Subject: Re: how to define list of filenames for rmail
- In-Reply-To: achilles@ira.uka.de's message of 11 Aug 92 12:11:11
- Message-ID: <KEVIN.92Aug12132540@buffalobill.edscom.demon.co.uk>
- Sender: kevin@edscom.demon.co.uk (Kevin Broadey)
- Organization: EDS-Scicon, Milton Keynes, UK
- References: <16816nINNouu@iraul1.ira.uka.de> <ACHILLES.92Aug11121111@i90s8.ira.uka.de>
- Date: Wed, 12 Aug 1992 13:25:40 GMT
- Lines: 57
-
- In article <ACHILLES.92Aug11121111@i90s8.ira.uka.de> achilles@ira.uka.de (Alf-Christian Achilles) writes:
-
- >>>>> In article <16816nINNouu@iraul1.ira.uka.de>, mock@i41s18.ira.uka.de (Markus Mock) writes:
- > NNTP-Posting-Host: i41s18.ira.uka.de
-
- > I want to do put something like that into the loaddefs.el file:
-
- > (defconst rmail-primary-inbox-list '(\"~/mbox\" \"~/mailbox\") "\
- > *List of files which are inboxes for user's primary mail file ~/RMAIL.
- > `nil' means the default, which is (\"~/mbox\" \"/usr/spool/mail/$USER\")
- > (the second name varies depending on the operating system).")
-
- > I can load it (load-file) but when I invoke rmail it says:
-
- > Wrong type argument: stringp, \"~/mbox\".
-
- > I fiddled about but to no avail.
- > How's the correct syntax for a list of filenames then?
-
- > Thanks.
-
- > -- Markus (mock@ira.uka.de)
-
- How about
-
- (list (substitute-in-file-name "~/mbox" )
- (substitute-in-file-name "~/mailbox" ))
-
- as a list of *complete* pathnames. Works like a charm for me.
-
- ===
-
- Using `substitute-in-file-name' is a red herring. It has no effect here as it
- simply expands environment variables in the string. The bit in the
- documentation about "~" and "/" means that "$FOO/$BAR/~/wibble" comes out as
- "~/wibble" (I just tried!).
-
- Using `list' instead of a quote is a red herring too - they but give the same
- result.
-
- The real problem is that you've escaped your string delimiter with a backslash,
- so instead of a string you got a symbol (\ " ~ / m b o x \ ").
-
- What you need is:-
-
- (defconst rmail-primary-inbox-list '("~/mbox" "~/mailbox")
- "*List of files which are inboxes for user's primary mail file ~/RMAIL.
- `nil' means the default, which is (\"~/mbox\" \"/usr/spool/mail/$USER\")
- \(the second name varies depending on the operating system).")
-
- Note that the \" needs to be there within the documentation string to escape
- the quotes in it.
- --
- Kevin Broadey, EDS-Scicon
- Mail: Wavendon Tower, Wavendon, Milton Keynes, MK17 8LX, England
- E-mail: kbroadey@edscom.demon.co.uk
- Phone: +44 908 284198 or +44 908 585858 ext 4198
-