Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Julien Cubizolles <j.cubizolles@free.fr>
To: info-gnus-english@gnu.org
Subject: Re: gnus-agent-toggle-plugged doesn't open the connections to agentized servers
Date: Fri, 02 Aug 2013 11:06:33 +0200	[thread overview]
Message-ID: <87txj8qx5y.fsf@free.fr> (raw)
In-Reply-To: <m3ehadlhui.fsf@stories.gnus.org>

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Julien Cubizolles <j.cubizolles@free.fr> writes:
>
>> Is there a way to make it so ? I tried adding
>> gnus-server-open-all-servers to gnus-agent-plugged-hook but 
>>    * I'd prefer to open only agentized servers
>
> If you don't want certain servers to be opened, then put the groups from
> these servers on group levels where opening doesn't happen.

I tried it with no success, always the same error message. I came up
with the following code:

--8<---------------cut here---------------start------------->8---
(setq gnus-agentized-servers '("nnimap:gmail" "nnimap:free" "nntp:news.gmane.org"))

(defun jc-open-agentized-servers ()
  (let 
  ((servers gnus-agentized-servers))
    (while servers
      (gnus-open-server (car servers))
      (setq servers (cdr servers))))
  )

(add-hook 'gnus-agent-plugged-hook 'jc-open-agentized-servers)
--8<---------------cut here---------------end--------------->8---

Julien.


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

  reply	other threads:[~2013-08-02  9:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.23788.1365451470.855.info-gnus-english@gnu.org>
2013-08-01 12:24 ` Lars Magne Ingebrigtsen
2013-08-02  9:06   ` Julien Cubizolles [this message]
2013-04-08 20:04 Julien Cubizolles

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87txj8qx5y.fsf@free.fr \
    --to=j.cubizolles@free.fr \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).