From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/5677 Path: news.gmane.org!not-for-mail From: David Z Maze Newsgroups: gmane.emacs.gnus.user Subject: Re: nnml directory customization Date: Tue, 13 Sep 2005 17:15:19 -0400 Organization: Massachusetts Institute of Technology Message-ID: References: <1126455169.075131.151860@g47g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138671362 28423 80.91.229.2 (31 Jan 2006 01:36:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:36:02 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:35:40 2006 Original-Path: quimby.gnus.org!newsfeed.gazeta.pl!newsfeed.pionier.net.pl!newsfeed.gamma.ru!Gamma.RU!nntp.abs.net!news2.wam.umd.edu!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!dreaderd!not-for-mail Original-Newsgroups: gnu.emacs.gnus Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEUGBgS83KhoOivUeFmC pXj4o39qeFZD1JPmAAACOklEQVR4nE2UQY/bIBCFkVPlbpX0bA2tz7sQcl5SlnsWc7cclv// E/oGjNNxokjz8eYxA7HwR9xLKQGRC4eQezqUj7KWnDOzAOB3EjaBKDl4KPARzkvpAIqoUTwI a2op6WVoeXHOlfgsnJPM1kl0SdMIFEJ0AaIJshiRhkCsHbC/51LycKDmgiw2jVJy9B9IDPNN U5NkSMQoR+c5/zTW3qjZgwg5ylpJ2YT4wubO7FEVEs0NhvPJaqzxDaDS2gUpGUjyDkau9NxB fKsmu4Ir2XSpwAjxYwfsfeqlbJwqcAwwcLINxGRWtIhhMEB7ZLoAJudd4aE42e4RCQDjYMXK CpS6XOBtNM7EVfPAbRgihfU08Sg9jqIr9G9JJuo70cCty66gwY6kzJ9xIygyJs7mDNQcSEUV iPSE1qt5mLgUkcGj8ExTbrvii2CwG3UCQkxUXDUPE03KIqPw8Iq33IBfUcbw/Ez9eeo8VvPr qrRNj2RU1DjeaN6cG8c6RKVNnTg+GIDWfAkPBVdK2jC84fCq4n4yik+VNICNtoPlPkScrKmh bPw+FIGSYmBrOUPeNfATjajPpFXtMl0Hvyt4imfzqDvC9zZ3cAEYvlt/ADq7rvDbNKj3RuxC B7gsZRWzbSAaymNXSPxjia8id1GmV6kUyjDMf9vd3daXAiYFd4GvXNzmaT7AspRyJnoif6Nn Ob8UC94fN6KybTSbvB0e46d3Tyzm+I7v4QWW5WGswZulXFNyv/4DGFvqYRv4BxSm28ZwQ4mv AAAAAElFTkSuQmCC X-Face: &OO..E]'&$Q?jm[7H$]lCS"t#FD[|jK.HfvP#![KZ`/,O)lQ(pE<2QS1i~K3+u\{Bh"(4h4G0W#R-F2zZNO6n\!8bk;tu%)f>y{C` P*^7yM`e/x"b1q[?^-9zxTp User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.3 (usg-unix-v) Cancel-Lock: sha1:1mtbh2m0Ns8CPzPQX3Q/2uytXYY= Original-NNTP-Posting-Host: BIOHAZARD-CAFE.MIT.EDU Original-X-Trace: 1126646119 senator-bedfellow.mit.edu 570 18.7.16.75 Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:5819 Original-Lines: 46 X-Gnus-Article-Number: 5819 Tue Jan 17 17:35:40 2006 Xref: news.gmane.org gmane.emacs.gnus.user:5677 Archived-At: romeomedina@libero.it writes: > Instead, if I first put the following line: > > (setq my-nnml-directory "/path/to/my/nnml/directory") > > and then: > > (setq gnus-select-method > '(nnml "" > (nnml-directory my-nnml-directory))) > > , when starting gnus I get the following error message: > > nnml () open error: ''. Continue? (y or n) If you 'C-h v gnus-select-method' having set it, you'll find that the value of nnml-directory is the symbol my-nnml-directory rather than its value. Getting this to work requires navigating Lisp quoting, which can be exciting; perhaps the most straightforward thing is (setq gnus-select-method `(nnml "" (nnml-directory ,my-nnml-directory))) (note the backquote and comma). Unless you have a specific need, it's probably cleaner to include the "~/Mail" directly in gnus-select-method. Note that you can also use this approach to do more complicated things, if you like writing Lisp. My .gnus file defines split rules partially from BBDB information, approximately (defun dzm-bbdb-split-fancy () ...) (setq nnmail-split-fancy `(| (: spam-split) (any mail "mail.misc.admin") ,(dzm-bbdb-split-fancy) (any "dmaze@.*mit\\.edu" "mail.misc.personal") "mail.misc.impersonal")) so that the results of the function call are dropped into the splitting rules. --dzm