Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* nnml directory customization
@ 2005-09-11 16:12 romeomedina
  2005-09-12 21:16 ` Reiner Steib
  2005-09-13 21:15 ` David Z Maze
  0 siblings, 2 replies; 6+ messages in thread
From: romeomedina @ 2005-09-11 16:12 UTC (permalink / raw)


Hi.

If I put in my ~/.gnus.el the following:

(setq gnus-select-method
      '(nnml ""
	(nnml-directory "/path/to/my/nnml/directory")))

, everything seems to be all right: I get no error messages.
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)

. Why? Any idea?

Thanks,
Rodolfo


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: nnml directory customization
  2005-09-11 16:12 nnml directory customization romeomedina
@ 2005-09-12 21:16 ` Reiner Steib
  2005-09-17  7:34   ` romeomedina
  2005-09-13 21:15 ` David Z Maze
  1 sibling, 1 reply; 6+ messages in thread
From: Reiner Steib @ 2005-09-12 21:16 UTC (permalink / raw)


On Sun, Sep 11 2005, romeomedina@libero.it wrote:

> (setq my-nnml-directory "/path/to/my/nnml/directory")
> (setq gnus-select-method
>       '(nnml ""
> 	(nnml-directory my-nnml-directory)))

(setq gnus-select-method
      `(nnml ""
	     (nnml-directory ,my-nnml-directory)))

See (info "(elisp)Backquote") to learn more about "`" and ",".

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: nnml directory customization
  2005-09-11 16:12 nnml directory customization romeomedina
  2005-09-12 21:16 ` Reiner Steib
@ 2005-09-13 21:15 ` David Z Maze
  2005-09-13 21:51   ` Feng Chen
  1 sibling, 1 reply; 6+ messages in thread
From: David Z Maze @ 2005-09-13 21:15 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: nnml directory customization
  2005-09-13 21:15 ` David Z Maze
@ 2005-09-13 21:51   ` Feng Chen
  2005-09-13 22:23     ` Adam Sjøgren
  0 siblings, 1 reply; 6+ messages in thread
From: Feng Chen @ 2005-09-13 21:51 UTC (permalink / raw)



Hello David,

Could you please kindly tell me how did you put your picture
in the "From:" field? This is pretty interesting.

Of course I'm using gnus, too. Thanks

David Z Maze <dmaze@mit.edu> writes:

>   David Z Maze <dmaze@mit.edu>
> Subject: Re: nnml directory customization
> Newsgroups: gnu.emacs.gnus
> Date: Tue, 13 Sep 2005 17:15:19 -0400
> Organization: Massachusetts Institute of Technology
>

-- 
Best Regards,
Feng Chen

She is not refined.  She is not unrefined.  She keeps a parrot.
		-- Mark Twain


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: nnml directory customization
  2005-09-13 21:51   ` Feng Chen
@ 2005-09-13 22:23     ` Adam Sjøgren
  0 siblings, 0 replies; 6+ messages in thread
From: Adam Sjøgren @ 2005-09-13 22:23 UTC (permalink / raw)


On Tue, 13 Sep 2005 17:51:31 -0400, Feng wrote:

> Could you please kindly tell me how did you put your picture
> in the "From:" field? This is pretty interesting.

Check out this webpage: <http://quimby.gnus.org/circus/face/>


  Best regards,

-- 
 "Lawrence of Suburbia                                        Adam Sjøgren
  Real life is murder"                                   asjo@koldfront.dk


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: nnml directory customization
  2005-09-12 21:16 ` Reiner Steib
@ 2005-09-17  7:34   ` romeomedina
  0 siblings, 0 replies; 6+ messages in thread
From: romeomedina @ 2005-09-17  7:34 UTC (permalink / raw)


Rodolfo wrote:

> If I put in my ~/.gnus.el the following:
>
> (setq gnus-select-method
>       '(nnml ""
>         (nnml-directory "/path/to/my/nnml/directory")))
>
> , everything seems to be all right: I get no error messages.
> 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)
>
> . Why? Any idea?


David wrote:

> perhaps the most straightforward thing is
>
> (setq gnus-select-method
>       `(nnml ""
>         (nnml-directory ,my-nnml-directory)))
>
> (note the backquote and comma).


Reiner wrote:

> See (info "(elisp)Backquote") to learn more about "`" and ",".


Thanks indeed!
That worked fine.
Rodolfo


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-09-17  7:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-11 16:12 nnml directory customization romeomedina
2005-09-12 21:16 ` Reiner Steib
2005-09-17  7:34   ` romeomedina
2005-09-13 21:15 ` David Z Maze
2005-09-13 21:51   ` Feng Chen
2005-09-13 22:23     ` Adam Sjøgren

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 NNTP newsgroup(s).