* Re: gnus trying to read news while I want only mail
[not found] <mailman.1724.1378827316.10748.help-gnu-emacs@gnu.org>
@ 2013-09-10 18:50 ` Damien Wyart
2013-09-10 19:29 ` Felix Dietrich
1 sibling, 0 replies; 4+ messages in thread
From: Damien Wyart @ 2013-09-10 18:50 UTC (permalink / raw)
To: help-gnu-emacs
* Luca Ferrari <fluca1978@infinito.it> in gnu.emacs.help:
> I want to use gnus only for reading mail, not newsgroup,
You can use (for nnml ; if you need nnimap, adjust accordingly):
(setq gnus-select-method '(nnml ""))
(and also tune nnml-* variables if needed)
Or setq gnus-select-method to nnnil, and have a nnml secondary select
method (the display will then be a bit different), along the lines of
the following example (but without nnimap, except if you need it):
http://www.gnu.org/software/emacs/manual/html_node/gnus/The-Empty-Backend.html
--
DW
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gnus trying to read news while I want only mail
[not found] <mailman.1724.1378827316.10748.help-gnu-emacs@gnu.org>
2013-09-10 18:50 ` gnus trying to read news while I want only mail Damien Wyart
@ 2013-09-10 19:29 ` Felix Dietrich
1 sibling, 0 replies; 4+ messages in thread
From: Felix Dietrich @ 2013-09-10 19:29 UTC (permalink / raw)
To: help-gnu-emacs
Luca Ferrari <fluca1978@infinito.it> writes:
> I want to use gnus only for reading mail, not newsgroup, so I've
> removed the select-methods variables.
You can set gnus-select-method to your preferred mail retrieval method if
you don't want to use Gnus for news, like in the following example from
the manual:
(setq gnus-select-method
'(nnimap "imap.gmail.com"))
If you have multiple e-mail accounts/servers you can then add them to
`gnus-secondary-select-methods'. Have a look at the info-manual:
(gnus) Getting Started Reading Mail
(gnus) FAQ 3-6
> However, when I start gnus it spins searching for news
> servers. I then set such variables to nil, but an error "attempting to
> use a nil select method" arises. So I tried to point them to localhost
> fake news server, and this made a connection error to raise and asked
> me to continue or not, so I was able to get into gnus at last.
I don't know what Gnus does when it starts and decides what servers to
use. Having `gnus-select-method' set might be necessary for it to
start-up without hick-ups.
--
Felix Dietrich
^ permalink raw reply [flat|nested] 4+ messages in thread
* gnus trying to read news while I want only mail
@ 2013-09-10 15:35 Luca Ferrari
2013-09-10 19:13 ` W. Greenhouse
0 siblings, 1 reply; 4+ messages in thread
From: Luca Ferrari @ 2013-09-10 15:35 UTC (permalink / raw)
To: help-gnu-emacs
Hi,
I'm moving the first steps into gnus following this tutorial
http://www.emacswiki.org/emacs/GnusTutorial, and I've created my
.gnus.el file with my mail information. I want to use gnus only for
reading mail, not newsgroup, so I've removed the select-methods
variables. However, when I start gnus it spins searching for news
servers. I then set such variables to nil, but an error "attempting to
use a nil select method" arises. So I tried to point them to localhost
fake news server, and this made a connection error to raise and asked
me to continue or not, so I was able to get into gnus at last.
Is there a way to instrument gnus for not reading news at all?
Thanks,
Luca
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gnus trying to read news while I want only mail
2013-09-10 15:35 Luca Ferrari
@ 2013-09-10 19:13 ` W. Greenhouse
0 siblings, 0 replies; 4+ messages in thread
From: W. Greenhouse @ 2013-09-10 19:13 UTC (permalink / raw)
To: help-gnu-emacs
Hello Luca,
Luca Ferrari <fluca1978@infinito.it> writes:
> Hi,
> I'm moving the first steps into gnus following this tutorial
> http://www.emacswiki.org/emacs/GnusTutorial, and I've created my
> .gnus.el file with my mail information. I want to use gnus only for
> reading mail, not newsgroup, so I've removed the select-methods
> variables. However, when I start gnus it spins searching for news
> servers. I then set such variables to nil, but an error "attempting to
> use a nil select method" arises. So I tried to point them to localhost
> fake news server, and this made a connection error to raise and asked
> me to continue or not, so I was able to get into gnus at last.
> Is there a way to instrument gnus for not reading news at all?
Yes. There are at least three options:
1. As described in (info "(gnus) The Empty Backend"), set `nnnil' for a
select method; this select method is a noop and just silently
succeeds while returning no new news. This was an option designed
for mail-only Gnus users:
(setq gnus-select-method '(nnnil ""))
2. Start Gnus with M-x gnus-no-server. This will get new messages from
the `gnus-secondary-select-methods' while ignoring
`gnus-select-method'.
3. If you wish to use Gnus for mail only, it is actually perfectly fine
to use your chosen mail backend as `gnus-select-method' instead of as
one of the `gnus-secondary-select-methods'. There is no requirement
that `gnus-select-method' be a news backend; in fact, aside from a
few convenience functions, Gnus does not differentiate in its
handling of "mail", "news", and other sources of messages (e.g. RSS,
local files, etc.)
In this configuration, you may also wish to
(setq gnus-read-newsrc-file nil
gnus-save-newsrc-file nil)
as there's not much point in creating/using this old-style newsreader
compatibility file if you are not visiting news servers anyway.
--
Best,
WGG
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-09-10 19:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.1724.1378827316.10748.help-gnu-emacs@gnu.org>
2013-09-10 18:50 ` gnus trying to read news while I want only mail Damien Wyart
2013-09-10 19:29 ` Felix Dietrich
2013-09-10 15:35 Luca Ferrari
2013-09-10 19:13 ` W. Greenhouse
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.