Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Marcus Frings <iam-est-hora-surgere@fuckmicrosoft.com>
Subject: Re: gnus-demon-scan-mail problems
Date: Mon, 16 Jun 2003 21:24:38 +0200	[thread overview]
Message-ID: <vita-brevis-breviter-in-brevi-finietur-mors-venit-velociter-quae-neminem-veretur-87brwxn7ux.fsf@gothgoose.net> (raw)
In-Reply-To: <un0girkzn.fsf@gnu.org>

* Sam Steingold <sds@gnu.org> wrote:

> 1. gnus-demon-scan-mail does not do anything if gnus is not alive.
>    this is not too nice: I want to watch for new mail even when I am
>    not reading news.
>
> 2. even when gnus is alive, gnus-demon-scan-mail does not appear to
>    change anything, i.e., even when there is new mail (either pop or
>    imap), gnus-demon-scan-mail does not notify me about it in any way.
>
> Does anyone use this functionality?

Yes, I do. I read mails via IMAP, too.

Here is my code which works perfectly for me:

--8<---------------cut here---------------start------------->8---
(setq gnus-use-demon t)

(defun gnus-demon-scan-news ()
  (when (gnus-alive-p)
    (save-excursion
      (set-buffer gnus-group-buffer)
      (gnus-group-get-new-news))
    )
  )

(defun gnus-demon-scan-mail ()
  (when (and (gnus-alive-p) mail-here)
    (save-excursion
      (set-buffer gnus-group-buffer)
      (gnus-group-get-new-news 3)
      )
    )
  )

(gnus-demon-add-handler 'gnus-demon-scan-news 5 10)

(gnus-demon-init)
--8<---------------cut here---------------end--------------->8---

As you can see I don't use the "gnus-demon-scan-mail"-function but mail
checking works.

Regards,
Marcus
-- 
"Tuba cum sonuerit dies erit extrema
et iudex advenerit vocabit sempiterna
electos in patria
prescitos ad inferna."


       reply	other threads:[~2003-06-16 19:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <un0girkzn.fsf@gnu.org>
2003-06-16 19:24 ` Marcus Frings [this message]
     [not found]   ` <ur85sk6m3.fsf@gnu.org>
2003-06-20 11:33     ` Marcus Frings

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=vita-brevis-breviter-in-brevi-finietur-mors-venit-velociter-quae-neminem-veretur-87brwxn7ux.fsf@gothgoose.net \
    --to=iam-est-hora-surgere@fuckmicrosoft.com \
    --cc=protagonist@gmx.net \
    /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).