From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/16244 Path: news.gmane.org!not-for-mail From: Rainer@krugs.de (Rainer M. Krug) Newsgroups: gmane.emacs.gnus.user Subject: Re: Move message of a given year into new group Date: Wed, 10 Apr 2013 13:06:08 +0200 Message-ID: <8761zu1w7z.fsf@krugs.de> References: <87ip3xtc7w.fsf@krugs.de> <87vc7u3hg2.fsf@mean.albasani.net> <87fvyyvfvz.fsf@krugs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1365591984 15515 80.91.229.3 (10 Apr 2013 11:06:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Apr 2013 11:06:24 +0000 (UTC) Cc: info-gnus-english@gnu.org To: Memnon Anon Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Wed Apr 10 13:06:26 2013 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UPsrB-0002wX-Ev for gegu-info-gnus-english@m.gmane.org; Wed, 10 Apr 2013 13:06:25 +0200 Original-Received: from localhost ([::1]:43014 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPsrA-0007Gf-Um for gegu-info-gnus-english@m.gmane.org; Wed, 10 Apr 2013 07:06:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPsr5-0007G6-Fv for info-gnus-english@gnu.org; Wed, 10 Apr 2013 07:06:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPsqy-0008BB-3K for info-gnus-english@gnu.org; Wed, 10 Apr 2013 07:06:19 -0400 Original-Received: from mail-we0-x22f.google.com ([2a00:1450:400c:c03::22f]:54932) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPsqx-0008Ay-TW for info-gnus-english@gnu.org; Wed, 10 Apr 2013 07:06:12 -0400 Original-Received: by mail-we0-f175.google.com with SMTP id t11so261192wey.20 for ; Wed, 10 Apr 2013 04:06:11 -0700 (PDT) X-Received: by 10.181.11.164 with SMTP id ej4mr2546439wid.29.1365591971040; Wed, 10 Apr 2013 04:06:11 -0700 (PDT) Original-Received: from ecolmod ([2a01:e35:8baa:b070:a021:423c:6b72:6b1a]) by mx.google.com with ESMTPS id bo1sm34686275wib.0.2013.04.10.04.06.09 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 10 Apr 2013 04:06:09 -0700 (PDT) In-Reply-To: <87fvyyvfvz.fsf@krugs.de> (Rainer M. Krug's message of "Wed, 10 Apr 2013 12:28:32 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::22f X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:16244 Archived-At: Rainer@krugs.de (Rainer M. Krug) writes: > Memnon Anon writes: > >> 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... > > Absolutely - and this looks exactly like what I would need. I would then > have to change my habit of Expiring=deleting (moving to [Gmail]\Bin > folder) to Expiring=Archiving - which makes much more sense anyway as E > is pressed easily. Deleting I could then with B m Just realized the one problem: in gmail, to delete an email from the account, I have to move it into the Bin directory - so I would have to do two things: 1) expire it with the fancy target, which works nicely by the way, and 2) copy it into the bin folder Other option: I think that when I move it out of the All Mail folder, it will be removed. So I would have to set expiry targets depending on the folder from which I want to expire it. Is it from the group [Gmail]\All Mail I want to expire it to the archive folder nnimap+Maildir:Archives.%Y but from any other group, I want to expire it to the [Gmail]\All Mail group. Is this possible? I don't see any indication in the manual on how I can use nnmail-fancy-expiry-targets based on groups? Thanks, Rainer > > Thanks a lot - I will investigate, > > Rainer > > >> >> hth >> Memnon >> >> >> _______________________________________________ >> info-gnus-english mailing list >> info-gnus-english@gnu.org >> https://lists.gnu.org/mailman/listinfo/info-gnus-english > <#secure method=pgpmime mode=sign> > <#secure method=pgpmime mode=sign> -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug