Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* expiring into two folders simultaneously
@ 2013-04-12 16:22 Rainer M. Krug
  0 siblings, 0 replies; 2+ messages in thread
From: Rainer M. Krug @ 2013-04-12 16:22 UTC (permalink / raw)
  To: info-gnus-english

Hi

I am using gmail via offlineimap and am syncing all folders. Now I want
to keep my All Mail folder small to make gnus there a little bit
faster. I setup a few Archive.YEAR folders and when I expire a message,
it is moved into that folder (which is not synced back to gmail). Now
the mail on gmail obviously still sits in the All Mail folder, and even
expiring the emails from the All Mail folder, i.e. moving them locally
from the All Mail folder into the Archive.YEAR folder does not delete
them, as they are deleted in the first offlineimap sync on gmail, but
during the second sync afterwards, they are synced back from gmail as
gmail does only consider emails in the Bin folder as deleted. 

Therefore my idea: if I could do two things upon expiring:

1) copy the message to the Archive.YEAR folder
2) move the message to the [gmail].Bin folder

the email would be archived into the local-only folder Archive.YEAR, and
removed from the gmail account.

But as far as I see, I can only specify one folder where the message
should be moved to upon expiring. 

I have at the moment the following nnmail-fancy-expiring-targets defined:
,----
| (setq nnmail-expiry-target 'nnmail-fancy-expiry-target
|         nnmail-fancy-expiry-targets
|         '(;;(to-from "boss" "nnfolder:Work")
|           ;;("subject" "IMPORTANT" "nnfolder:IMPORTANT.%Y.%b")
|           ;; ("from" ".*" "nnimap+Maildir:RMKrugGMAIL.[Gmail].Bin")))
|           ("from" ".*" "nnimap+Maildir:Archives.%Y")))
`----

But how can I achieve that the message is moved *and* copied to two
different folders?

Cheers,

Rainer


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

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

* Re: expiring into two folders simultaneously
       [not found] <mailman.24043.1365783789.855.info-gnus-english@gnu.org>
@ 2013-08-01 12:14 ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 2013-08-01 12:14 UTC (permalink / raw)
  To: Rainer M. Krug; +Cc: info-gnus-english

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

> But how can I achieve that the message is moved *and* copied to two
> different folders?

There's no built-in support for doing this in Gnus, I think.

-- 
(domestic pets only, the antidote for overdose, milk.)
  No Gnus T-Shirt for sale: http://ingebrigtsen.no/no.php

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

end of thread, other threads:[~2013-08-01 12:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-12 16:22 expiring into two folders simultaneously Rainer M. Krug
     [not found] <mailman.24043.1365783789.855.info-gnus-english@gnu.org>
2013-08-01 12:14 ` Lars Magne Ingebrigtsen

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