Gnus development mailing list
 help / color / mirror / Atom feed
From: Colin Rafferty <craffert@ms.com>
Subject: Re: Gnus and NoCeM.
Date: 15 Jul 1999 15:05:05 -0400	[thread overview]
Message-ID: <vgvwvw1lony.fsf@ms.com> (raw)
In-Reply-To: Ken McGlothlen's message of "Thu, 15 Jul 1999 10:59:42 -0700 (PDT)"

Ken McGlothlen writes:

>     1.	Is there a way to run NoCeM asynchronously?

(gnus-demon-add-nocem)

Since you have a DSL link, I asume you have a full-time connection, so 
the nocem can take place all day long (as long as emacs is up).

>     3.	Is there an easy way to divide up the gnus-group-get-new-news function
> 	into two functions:  gnus-group-get-new-news (which obeys NoCeM) and
> 	gnus-group-get-new-mail (which doesn't)?  (This doesn't matter if
> 	either 1 or 2 can be answered in the positive.)

I wrote this function to do exactly that.  I bind it to C-M-g.  Note
that this only works for nnml backends (though I'm sure it can be
easily converted to other nn*).

(defun gnus-group-get-new-nnml ()
  "Get new mail only."
  (interactive)
  (let ((gnus-group-new-mail-list nil)
	(method '(nnml ""))
	(nnml-prepare-save-mail-hook
	 (cons '(lambda ()
		  (setq gnus-group-new-mail-list
			(union gnus-group-new-mail-list
			       (mapcar 'car group-art))))
	       nnml-prepare-save-mail-hook)))
    (when (gnus-check-server method)
      (gnus-request-scan nil method))
    (while gnus-group-new-mail-list
      (let ((gnus-group-marked (mapcar '(lambda (group)
					  (concat "nnml:" group))
				       gnus-group-new-mail-list)))
	(setq gnus-group-new-mail-list (cdr gnus-group-new-mail-list))
	(gnus-group-get-new-news-this-group)))
    (when gnus-goto-next-group-when-activating
      (gnus-group-next-unread-group 1 t))
    (gnus-summary-position-point)
    (run-hooks 'gnus-after-getting-new-news-hook)
    (gnus-group-list-groups)))


> However, I should point out that I'm gradually incorporating my email (finally)
> into Gnus, and dang, I love this thing.  Only 80 more old mailfolders and a
> LOT of procmail recipes to go.  :)

Don't forget that your old folders can be just viewed with nnfolder,
and you can just continute using nnfolder as your backend.

If you want to actually convert them to nnml, you can `G f' the file
in *Group*, then in *Summary*, `C-c C-s C-n', followed by `9999 #',
followed by `B c'.

Of course, first you need to convert your procmail to nnmail-split.

-- 
Colin


  reply	other threads:[~1999-07-15 19:05 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-15 17:59 Ken McGlothlen
1999-07-15 19:05 ` Colin Rafferty [this message]
1999-07-15 19:32   ` Ken McGlothlen
1999-07-15 20:27     ` Colin Rafferty
1999-07-15 21:51       ` Ken McGlothlen
1999-07-15 22:58         ` David Hedbor
1999-07-16  0:15       ` Dan Christensen
1999-07-17  3:54         ` Justin Sheehy
1999-07-17  7:02           ` Ugh! Ack! Argh! Nggh! Ken McGlothlen
     [not found]             ` <wtnu2r3bslp.fsf@licia.dtek.chalmers.se>
1999-07-17 10:15               ` Hans de Graaff
1999-07-17 16:05                 ` Michael Cook
1999-07-17 10:17               ` Kjetil Ødegaard
1999-07-17 11:02               ` Kai Großjohann
1999-07-17 12:21                 ` Harry Putnam
1999-07-17 11:14             ` Kai Großjohann
1999-07-18  7:10               ` Ken McGlothlen
1999-07-19 10:50                 ` Kai Großjohann
1999-07-27 15:37                   ` Jack Vinson
1999-07-26 17:14                     ` Hrvoje Niksic
1999-07-26 17:45                       ` Paul Stevenson
1999-07-26 17:50                         ` Paul Stevenson
1999-07-26 19:13                         ` François Pinard
1999-07-28 12:15                         ` Robert Bihlmeyer
1999-07-28 14:38                           ` Paul Stevenson
1999-07-17 10:58           ` Gnus and NoCeM Kai Großjohann
1999-07-19 17:53       ` Sudish Joseph
1999-07-15 20:49     ` Justin Sheehy
1999-07-16  4:50     ` Andrew Hobson
1999-07-16  5:37       ` Ken McGlothlen
1999-07-16 14:02         ` Jack Twilley
1999-07-15 21:32 ` Kai Großjohann
1999-07-16 15:28 ` Wes Hardaker

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=vgvwvw1lony.fsf@ms.com \
    --to=craffert@ms.com \
    /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).