Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Nevin Kapur <nevin@jhu.edu>
Subject: Re: nnmail-fancy-expiry-targets questions
Date: Thu, 16 May 2002 13:34:20 -0400	[thread overview]
Message-ID: <m34rh8uhcz.fsf@fermat.mts.jhu.edu> (raw)
In-Reply-To: <ubsbgcpkg.fsf@cisco.com>

anti-spam-pranav@cisco.com (Pranav K. Tiwari) writes:

> 1. I am trying to set nnmail-fancy-expiry-targets to a value such that all
>    articles matching "to" or "cc" to a regexp are expired into
>    "nnml:expired.%Y-%m", and the others are expired to 'delete. How should
>    I specify 'delete as an option?

With the current implementation, you can't.  But see the end of the
post for a workaround.

> 2. As a workaround, I tried setting the following based on what I found in
>    the info:
>
> (setq nnmail-fancy-expiry-targets
>       '(("to" "pranav" "nnml:expired.%Y-%m")
> 	("from" ".*" "nnml:expired-other.%Y-%m")))
>
>
>    The problem with this is that the articles in nndraft:draft don't have a
>    from string and I get an error whenever I try to send a message which is
>    saved in drafts folder. I also get an error if I try to DEL something in
>    drafts group.

Yup.  I set the group-parameter expiry-target to 'delete on the
nndrafts group so that it doesn't go through the fancy expiry
process.  

> Any hints on what nnmail-fancy-expiry-targets should be set to?

Articles that don't match anything in nnmail-fancy-expiry-targets are
'deleted.  So what you want in 1. can be achieved via

(setq nnmail-fancy-expiry-targets
      '(("to" "pranav" "nnml:expired.%Y-%m")
        ("cc" "pranav" "nnml:expired.%Y-%m")))


You will still need to make sure that nndrafts groups don't use
n-f-e-t.

-- 
Nevin


      reply	other threads:[~2002-05-16 17:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-16 11:14 Pranav K. Tiwari
2002-05-16 17:34 ` Nevin Kapur [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=m34rh8uhcz.fsf@fermat.mts.jhu.edu \
    --to=nevin@jhu.edu \
    /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).