[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to manually download new mail with nnml-get-new-mail set to nil?
From: |
David Z Maze |
Subject: |
Re: How to manually download new mail with nnml-get-new-mail set to nil? |
Date: |
Fri, 02 Feb 2007 09:29:21 -0500 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (usg-unix-v) |
Gernot Hassenpflug <gernot@mb3.seikyou.ne.jp> writes:
> If I set
>
> (setq nnml-get-new-mail t)
>
> then M-g does work on mail groups, but unfortunately this setting also
> automatically downloads all mail messages when I start up gnus for the
> first time.
>
> I did not find any command relevant to downloading mail manually on
> demand, so I am at the moment using the above variable set to nil on
> gnus startup and then switch it to t when I want to download mail, and
> then switch it back to nil again. Not very elegant!
You could write a Lisp function to do that for you (untested):
(defun (gh-get-new-news &optional arg)
(interactive)
(let ((nnml-get-new-mail t))
(gnus-group-get-new-news arg)))
(define-key gnus-group-mode-map "g" 'gh-get-new-news)
...and similarly for M-g if you want to use that.
--dzm