Gnus development mailing list
 help / color / mirror / Atom feed
From: Colin Rafferty <craffert@spspme.ml.com>
Cc: Mark Eichin <eichin@cygnus.com>
Subject: Re: "external" expire?
Date: 20 Sep 1996 09:46:42 -0400	[thread overview]
Message-ID: <ocrohj1ti2l.fsf@spssunp.spspme.ml.com> (raw)
In-Reply-To: Mark Eichin's message of 20 Sep 1996 01:09:53 -0400

Mark Eichin writes:

> Has anyone attempted to either "instrument" expire, so that the files
> that would be expired can be handed off to a backup system instead, or
> alternately come up with a way of doing the expiration outside of
> gnus?

I imagine that doing a defadvice to capture the `delete-file' function
would probably be the simplest.  The following would probably work for
nnmail-related backends (nnml, mh):

(defadvice nnml-request-expire-articles (around instrument activate)
  "Advised to do a different kind of delete."
  (let ((nnmail-delete-file-function me:instrument-expire-function))
    ad-do-it))

;; example function
(defvar me:instrument-expire-function
  '(lambda (article)
     (message "deleting %s" article)
     (delete-file article))
  "Instrumentation of expire-article.")

Look at the code to `nnml-request-expire-articles' in nnml.el for a
concept of what I am doing.

-- 
Colin


      reply	other threads:[~1996-09-20 13:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-09-20  5:09 Mark Eichin
1996-09-20 13:46 ` Colin Rafferty [this message]

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=ocrohj1ti2l.fsf@spssunp.spspme.ml.com \
    --to=craffert@spspme.ml.com \
    --cc=craffert@ml.com \
    --cc=eichin@cygnus.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).