Gnus development mailing list
 help / color / mirror / Atom feed
From: Stainless Steel Rat <ratinox@peorth.gweep.net>
Subject: Re: Expiry in virtual groups
Date: 19 Apr 1999 12:06:18 -0400	[thread overview]
Message-ID: <m3ogkkmw79.fsf@peorth.gweep.net> (raw)
In-Reply-To: Justin Sheehy's message of "19 Apr 1999 10:34:29 -0400"

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

* Justin Sheehy <justin@linus.mitre.org>  on Mon, 19 Apr 1999
| Heh.  That's the only way that I expire.  I turn off the exit-hook to
| do expiry, which makes exiting groups much quicker.  About once a week
| I will C-c M-C-x before leaving my desk for the day.

I wrote my own exit hook function:

(defun rat:gnus-exit-gnus-hook ()
  (and (equal send-mail-function 'smtpmail-queue-it)
       (smtpmail-query-send-queued-mail-now))
  (cond ((equal gnus-select-method '(nnml ""))
         (if (not (boundp 'rat:gnus-group-expired-mail-this-session))
             (progn
               (gnus-group-expire-all-groups)
               (setq rat:gnus-group-expired-mail-this-session t))))
	(t
	 (if (not (boundp 'rat:gnus-group-expired-news-this-session))
             (progn
               (and (fboundp 'gnus-agent-expire) (gnus-agent-expire))
               (setq rat:gnus-group-expired-news-this-session t))))
	)
  (mc-deactivate-passwd nil)
  (kill-buffer (get-buffer-create "*Compile-Log*")))

In order,

* If I am using stmpmailq, query to send queued mail on exit.
* Expire nnml groups only if I am reading mail (I use separate newsrcs and
  backends for mail and news), then set a flag so I do not expire again
  that session.  I should probably use car, but the hack works as-is for me.
* Expire agentized articles only if the agent is being used, and set a flag 
  so that I do not expire again this session.
* Forcibly unset my GPG passphrase.
* Delete the *Compile-Log* buffer (I use gnus-compile frequently).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v0.9.5 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE3G1R6gl+vIlSVSNkRAi5HAKDDx+hL5UnN51Of/snLrpwoJqs6GwCeI3k4
K2vaEiCfJvYjVHSQtsyd0mI=
=4Knw
-----END PGP SIGNATURE-----

-- 
Rat <ratinox@peorth.gweep.net>    \ Warning: pregnant women, the elderly, and
Minion of Nathan - Nathan says Hi! \ children under 10 should avoid prolonged
PGP Key: at a key server near you!  \ exposure to Happy Fun Ball.


  reply	other threads:[~1999-04-19 16:06 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-14 23:54 Hrvoje Niksic
1999-04-17  8:08 ` Lars Magne Ingebrigtsen
1999-04-17 16:22   ` Hrvoje Niksic
1999-04-17 16:53     ` Lars Magne Ingebrigtsen
1999-04-18 17:51       ` Hrvoje Niksic
1999-04-18 18:29         ` Lars Magne Ingebrigtsen
1999-04-19 12:30           ` Hrvoje Niksic
1999-06-12  2:04             ` Lars Magne Ingebrigtsen
1999-04-17 19:35     ` Matt Pharr
1999-04-19 14:34     ` Justin Sheehy
1999-04-19 16:06       ` Stainless Steel Rat [this message]
2000-01-12  7:26 expiry " Dan Christensen
2000-04-21 13:25 ` Lars Magne Ingebrigtsen
2000-04-24 17:51   ` Dan Christensen
2000-08-10 19:19     ` Lars Magne Ingebrigtsen
2000-08-10 19:28       ` Paul Jarc
2000-08-10 19:41         ` Lars Magne Ingebrigtsen
2000-09-04  3:57           ` Paul Jarc
2000-09-09 18:19           ` Dan Christensen

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=m3ogkkmw79.fsf@peorth.gweep.net \
    --to=ratinox@peorth.gweep.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).