Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@pdc.kth.se>
Cc: Ding Mailing List <ding@gnus.org>
Subject: Re: IMAP Questions
Date: 07 Jun 2000 02:16:48 +0200	[thread overview]
Message-ID: <iluvgzmtken.fsf@badis.pdc.kth.se> (raw)
In-Reply-To: Johan Parin's message of "06 Jun 2000 22:02:33 +0200"

Johan Parin <Johan.Parin@abc.se> writes:

>   >> (gnus-demon-add-handler 'gnus-demon-scan-mail 2 nil)
...
> You're right. Tried it at home, where I'm using pop, and it's the same 
> problem. I hope I'm not misunderstanding something - I mean
> gnus-demon-scan-mail _is_ supposed to fetch new mail, right?

Perhaps `gnus-demon-scan-news' is what you want?  By the look of the
code, `g-d-s-mail' only scan (ie perform splitting), and `g-d-s-news'
does the same but also update the group buffer.

> Anyway, I did some more debugging and what happens is that when
> nnmail-get-new-mail is called from the demon, nnmail-fetched-sources
> is nil. This means that the 'when fetching-sources' form where the
> mail is actually fetched will not be run. 

This might work.

2000-06-07  Simon Josefsson  <jas@pdc.kth.se>

	* gnus-demon.el (gnus-demon-scan-mail): Bind
	nnmail-fetched-sources.

Index: gnus-demon.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/gnus-demon.el,v
retrieving revision 5.9
diff -w -u -u -w -r5.9 gnus-demon.el
--- gnus-demon.el	1999/12/04 02:29:32	5.9
+++ gnus-demon.el	2000/06/06 00:16:18
@@ -272,6 +272,9 @@
 (defun gnus-demon-scan-mail ()
   (save-window-excursion
     (let ((servers gnus-opened-servers)
+          ;; Binding this variable will inhibit multiple fetchings
+          ;; of the same mail source.
+          (nnmail-fetched-sources (list t))
 	  server)
       (while (setq server (car (pop servers)))
 	(and (gnus-check-backend-function 'request-scan (car server))



  reply	other threads:[~2000-06-07  0:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <tn71z2ihahj.fsf@uab.ericsson.se>
     [not found] ` <iluln0qy2lk.fsf@badis.pdc.kth.se>
     [not found]   ` <tn766ro6zxa.fsf@uab.ericsson.se>
     [not found]     ` <iluhfb6yg3q.fsf@badis.pdc.kth.se>
2000-06-06 20:02       ` Johan Parin
2000-06-07  0:16         ` Simon Josefsson [this message]
2000-06-07 18:35           ` Mail Fetching (was: Re: IMAP Questions) Johan Parin
2000-06-07 21:38             ` Kai Großjohann
2000-06-08  9:14             ` Simon Josefsson

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=iluvgzmtken.fsf@badis.pdc.kth.se \
    --to=jas@pdc.kth.se \
    --cc=ding@gnus.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).