Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Memnon Anon <gegendosenfleisch@googlemail.com>
To: info-gnus-english@gnu.org
Subject: Re: Move message of a given year into new group
Date: Wed, 10 Apr 2013 08:45:26 +0000 (UTC)	[thread overview]
Message-ID: <87vc7u3hg2.fsf@mean.albasani.net> (raw)
In-Reply-To: <87ip3xtc7w.fsf@krugs.de>

Rainer@krugs.de (Rainer M. Krug) writes:

> So I would like to move all mails before 2011 into groups Archive.YEAR,
> where YEAR is the year of the email. 

BTW, if you want to set on this method from now on, I found this while
browsing the manual:

,----[ (info "(gnus)Expiring Mail") ]
|       (setq nnmail-expiry-target 'nnmail-fancy-expiry-target
|             nnmail-fancy-expiry-targets
|             '((to-from "boss" "nnfolder:Work")
|               ("subject" "IMPORTANT" "nnfolder:IMPORTANT.%Y.%b")
|               ("from" ".*" "nnfolder:Archive-%Y")))
| 
|    With this setup, any mail that has `IMPORTANT' in its Subject header
| and was sent in the year `YYYY' and month `MMM', will get expired to
| the group `nnfolder:IMPORTANT.YYYY.MMM'.  If its From or To header
| contains the string `boss', it will get expired to `nnfolder:Work'.
`----

I never tried it, but fancy expiring may be worth investigating...

hth
Memnon

  parent reply	other threads:[~2013-04-10  8:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-08 12:53 Rainer M. Krug
2013-04-08 20:08 ` Adam Sjøgren
2013-04-09  7:34   ` Rainer M. Krug
2013-04-09 14:26 ` Memnon Anon
2013-04-09 20:59   ` Julien Cubizolles
2013-04-10  8:45 ` Memnon Anon [this message]
2013-04-10 10:28   ` Rainer M. Krug
2013-04-10 11:06     ` Rainer M. Krug

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=87vc7u3hg2.fsf@mean.albasani.net \
    --to=gegendosenfleisch@googlemail.com \
    --cc=info-gnus-english@gnu.org \
    /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).