From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/22616 Path: main.gmane.org!not-for-mail From: Stainless Steel Rat Newsgroups: gmane.emacs.gnus.general Subject: Re: Expiry in virtual groups Date: 19 Apr 1999 12:06:18 -0400 Organization: The Happy Fun Ball Brigade Sender: owner-ding@hpc.uh.edu Message-ID: References: <87d816hi7b.fsf@pc-hrvoje.srce.hr> <87n2078bfb.fsf@pc-hrvoje.srce.hr> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035160503 30275 80.91.224.250 (21 Oct 2002 00:35:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 00:35:03 +0000 (UTC) Return-Path: Original-Received: from farabi.math.uh.edu (farabi.math.uh.edu [129.7.128.57]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id MAA27300 for ; Mon, 19 Apr 1999 12:10:57 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by farabi.math.uh.edu (8.9.1/8.9.1) with ESMTP id LAB08073; Mon, 19 Apr 1999 11:06:48 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 19 Apr 1999 11:07:19 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id LAA11777 for ; Mon, 19 Apr 1999 11:07:06 -0500 (CDT) Original-Received: from peorth.gweep.net (ratinox@adhara.ccs.neu.edu [129.10.116.158]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id MAA27166 for ; Mon, 19 Apr 1999 12:06:52 -0400 (EDT) Original-Received: (from ratinox@localhost) by peorth.gweep.net (8.8.7/8.8.8) id MAA02727; Mon, 19 Apr 1999 12:06:18 -0400 Original-To: "(ding)" X-Attribution: Rat In-Reply-To: Justin Sheehy's message of "19 Apr 1999 10:34:29 -0400" Original-Lines: 50 User-Agent: Gnus/5.070083 (Pterodactyl Gnus v0.83) XEmacs/20.4 (Emerald) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:22616 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:22616 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 * Justin Sheehy 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 \ 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.