[email protected] (Rainer M. Krug) writes: > Memnon Anon <[email protected]> writes: > >> [email protected] (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 >> [email protected] >> 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: [email protected] Skype: RMkrug _______________________________________________ info-gnus-english mailing list [email protected] https://lists.gnu.org/mailman/listinfo/info-gnus-english
