[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: |
Gernot Hassenpflug |
Subject: |
Re: How to manually download new mail with nnml-get-new-mail set to nil? |
Date: |
Sat, 03 Feb 2007 09:45:01 +0900 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux) |
>>>>> "David" == David Z Maze <dmaze@mit.edu> writes:
David> 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!
David> You could write a Lisp function to do that for you
David> (untested):
David> (defun (gh-get-new-news &optional arg) (interactive) (let
David> ((nnml-get-new-mail t)) (gnus-group-get-new-news arg)))
David> (define-key gnus-group-mode-map "g" 'gh-get-new-news)
David> ...and similarly for M-g if you want to use that.
Hi David, that sounds like good idea. I thought it might be in gnus
already, since there are more functions there than I know about :-)
Anything to avoid lisp, initially, anyway.
Thanks again,
--
G Hassenpflug