Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Rainer@krugs.de (Rainer M. Krug)
To: info-gnus-english@gnu.org
Subject: expiring into two folders simultaneously
Date: Fri, 12 Apr 2013 18:22:55 +0200	[thread overview]
Message-ID: <87li8nhg68.fsf@krugs.de> (raw)

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

             reply	other threads:[~2013-04-12 16:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-12 16:22 Rainer M. Krug [this message]
     [not found] <mailman.24043.1365783789.855.info-gnus-english@gnu.org>
2013-08-01 12:14 ` Lars Magne Ingebrigtsen

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=87li8nhg68.fsf@krugs.de \
    --to=rainer@krugs.de \
    --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).