Gnus development mailing list
 help / color / mirror / Atom feed
From: dsg@linus.mitre.org (David S. Goldberg)
Subject: Re: TODO idea:
Date: 18 Jun 1997 10:55:00 -0400	[thread overview]
Message-ID: <m1bpvtkx8or.fsf@blackbird.mitre.org> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of "18 Jun 1997 14:09:41 +0200"

[-- Attachment #1: Type: text/plain, Size: 1109 bytes --]

This is probably not what is desired, though it may be a part of it.
A not very long time ago, I also cared about keeping gnus and mh in
sync.  For incoming stuff, if I used MH to inc a folder, I had as part
of my gnus-select-group-hook (I think, though it may have been a
different hook) a call to nnml-generate-nov-databases-1.  Then, to
have gnus update the unseen sequence, I used the lisp found at the end
of this message.  If gnus incorporated the mail (which was becoming
more and more the normal case) I punted on the unseen sequence stuff.
I wanted to get it done, but none of the advices I put on the
nnml-accept functions ever seemed to work reliably.  For what its
worth, back then (I'm pretty sure the last time I ever bothered with
this, it was still September) nnmh didn't do anything with the mh
sequences either (does it now?).  Anyway, if this helps someone make
gnus deal better with mh, so much the better.  If not, I apologize for
the waste of bandwidth.

--
Dave Goldberg
Post: The Mitre Corporation\MS B305\202 Burlington Rd.\Bedford, MA 01730
Phone: 617-271-3887
Email: dsg@mitre.org


[-- Attachment #2: Type: text/plain, Size: 2386 bytes --]

(defun dsg-gnus-mh-make-seen (&optional doall)
  (if (eq (car
	   (gnus-group-method (if (eq major-mode 'gnus-group-mode)
				       (gnus-group-group-name)
				     gnus-newsgroup-name)))
	  'nnml)
      (let ((mark-cmd (concat mh-progs "/mark"))
	    (fldr-cmd (concat mh-progs "/folder"))
	    (fldr
	     (if (eq major-mode 'gnus-group-mode)
		 (substring (gnus-group-group-name) 5)
	       (substring nnml-current-directory (length mh-user-path)))))
	(call-process fldr-cmd nil nil nil
		      "-push" (concat "+" fldr))
	(cond ((eq doall 'all)
	       (call-process mark-cmd nil nil nil
			     "-sequence" "unseen" "-delete" "all"))
	      ((integerp doall)
	       (call-process mark-cmd nil nil nil
			     "-sequence" "unseen" "-delete"
			     (concat "1-" (int-to-string doall))))
	      (t
	       (call-process mark-cmd nil nil nil
			     "-sequence" "unseen" "-delete"
			     (int-to-string (gnus-summary-article-number)))))
	(call-process fldr-cmd nil nil nil "-pop"))))

(defadvice gnus-group-catchup (before make-seen activate)
  "Mark all messages as seen in MH."
  (dsg-gnus-mh-make-seen 'all))

(defadvice gnus-group-catchup-current (before make-seen activate)
  "Mark all messages as seen in MH."
  (dsg-gnus-mh-make-seen 'all))

(defadvice gnus-group-catchup-current-all (before make-seen activate)
  "Mark all messages as seen in MH."
  (dsg-gnus-mh-make-seen 'all))

(defadvice gnus-summary-catchup (before make-seen activate)
  "Mark all messages as seen in MH."
  (dsg-gnus-mh-make-seen 'all))

(defadvice gnus-summary-catchup-all (before make-seen activate)
  "Mark all messages as seen in MH."
  (dsg-gnus-mh-make-seen 'all))

(defadvice gnus-summary-catchup-all-and-exit (before make-seen activate)
  "Mark all messages as seen in MH."
  (dsg-gnus-mh-make-seen 'all))

(defadvice gnus-summary-catchup-and-exit (before make-seen activate)
  "Mark all messages as seen in MH."
  (dsg-gnus-mh-make-seen 'all))

(defadvice gnus-summary-catchup-and-goto-next-group (before make-seen activate)
  "Mark all messages as seen in MH."
  (dsg-gnus-mh-make-seen 'all))

(defadvice gnus-summary-catchup-to-here (before make-seen activate)
  "Mark all messages as seen in MH."
  (dsg-gnus-mh-make-seen (gnus-summary-article-number)))

(defadvice gnus-summary-mark-as-expirable (before make-seen activate)
  "Mark the message as seen in MH."
  (dsg-gnus-mh-make-seen))

  reply	other threads:[~1997-06-18 14:55 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-06  7:00 Wesley Hardaker
1997-06-06  9:29 ` Lars Balker Rasmussen
1997-06-06 11:28   ` Kai Grossjohann
1997-06-06 17:36 ` Lars Magne Ingebrigtsen
1997-06-09  8:39   ` Wesley Hardaker
1997-06-10  2:58     ` Jason R Mastaler
1997-06-10  6:58       ` Wesley Hardaker
1997-06-11  3:49         ` Jason R Mastaler
1997-06-11  6:49           ` Wesley Hardaker
1997-06-16 18:10           ` Paul Graham
1997-06-17 15:34             ` Lars Magne Ingebrigtsen
1997-06-18  6:58               ` Wesley Hardaker
1997-06-18 12:09                 ` Lars Magne Ingebrigtsen
1997-06-18 14:55                   ` David S. Goldberg [this message]
1997-06-19  8:47                   ` Wesley Hardaker
1997-06-19 17:37                     ` Paul Franklin
1997-06-20  3:58                       ` Darren/Torin/Who Ever...
1997-06-19 18:32                     ` Scott Blachowicz
1997-06-20  9:12                       ` Wesley Hardaker
1997-06-20 18:16                         ` Scott Blachowicz
1997-06-20 21:32                           ` Richard Coleman
1997-06-20 22:12                     ` Lars Magne Ingebrigtsen
1997-06-21  0:08                       ` Richard Coleman
1997-06-21 20:29                         ` Scott Blachowicz
1997-06-22 13:32                         ` Lars Magne Ingebrigtsen
1997-06-22 22:24                           ` Richard Coleman
1997-06-24 21:11                             ` Jason R Mastaler
1997-06-22 23:35                       ` Darren/Torin/Who Ever...
1997-06-17 15:33           ` Lars Magne Ingebrigtsen
1997-06-25  8:34         ` anonymous
1997-06-25 20:26           ` Paul Franklin
1997-06-26  9:38         ` anonymous
     [not found]         ` <1997 <19970626093841.17915.qmail@sunsite.auc.dk>
1997-06-26 19:27           ` Paul Graham
1997-06-26 20:40             ` Paul Franklin
1997-06-10 17:52       ` Paul Franklin

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=m1bpvtkx8or.fsf@blackbird.mitre.org \
    --to=dsg@linus.mitre.org \
    --cc=dsg@mitre.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).