Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* nnmail-fancy-expiry-targets questions
@ 2002-05-16 11:14 Pranav K. Tiwari
  2002-05-16 17:34 ` Nevin Kapur
  0 siblings, 1 reply; 2+ messages in thread
From: Pranav K. Tiwari @ 2002-05-16 11:14 UTC (permalink / raw)



Running Oort Gnus 0.07.

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?

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.

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

[Remove 'anti-spam-' from the front of my address to reply]


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: nnmail-fancy-expiry-targets questions
  2002-05-16 11:14 nnmail-fancy-expiry-targets questions Pranav K. Tiwari
@ 2002-05-16 17:34 ` Nevin Kapur
  0 siblings, 0 replies; 2+ messages in thread
From: Nevin Kapur @ 2002-05-16 17:34 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-05-16 17:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-16 11:14 nnmail-fancy-expiry-targets questions Pranav K. Tiwari
2002-05-16 17:34 ` Nevin Kapur

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).