From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/16249 Path: news.gmane.org!not-for-mail From: Rainer@krugs.de (Rainer M. Krug) Newsgroups: gmane.emacs.gnus.user Subject: expiring into two folders simultaneously Date: Fri, 12 Apr 2013 18:22:55 +0200 Message-ID: <87li8nhg68.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 1365783789 24670 80.91.229.3 (12 Apr 2013 16:23:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Apr 2013 16:23:09 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Apr 12 18:23:13 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 1UQgko-0001tX-QU for gegu-info-gnus-english@m.gmane.org; Fri, 12 Apr 2013 18:23:10 +0200 Original-Received: from localhost ([::1]:50117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQgko-0001Ng-E6 for gegu-info-gnus-english@m.gmane.org; Fri, 12 Apr 2013 12:23:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQgkg-0001Ls-Hk for info-gnus-english@gnu.org; Fri, 12 Apr 2013 12:23:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQgkd-0002iB-8M for info-gnus-english@gnu.org; Fri, 12 Apr 2013 12:23:02 -0400 Original-Received: from mail-we0-x22d.google.com ([2a00:1450:400c:c03::22d]:57264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQgkd-0002i2-2Q for info-gnus-english@gnu.org; Fri, 12 Apr 2013 12:22:59 -0400 Original-Received: by mail-we0-f173.google.com with SMTP id t57so2154285wey.18 for ; Fri, 12 Apr 2013 09:22:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:subject:date:message-id:user-agent:mime-version :content-type; bh=w1CJuLGCsMBS3jAlNPNOSCIHq8vgAd/KhJg9VXUtdMA=; b=jH1X/uuCq8PjfjF6TRrZfepdR6eTj9VBIvE+rHYje/U03aeUdv3NHZm+w1fuecm2rv szG/nZAr2onPRK/ke4kamQ/tRdg8LMg8F4oejf4/NzCBuO6NEatoikNVM80Eu88zqn3h gbiz1nChAKVvhHWsRC0Dlw7hOUy26dKZkdpDEfE9RI4fBD5AdWsTpWrA9olsu5ZJCxmc QwGB3hoqdEmX6QxECpw47p+ltQnYN4+p9Fn8AxRL5XPxMOg+1XDcgsGHCSv0cByITokZ DCPjouRIhiqZzVd3f02Wf8cA612y3oHca8KT6RnFv3apml6CkYmGkLwGNPRVHiAzJZjU ubpg== X-Received: by 10.180.19.39 with SMTP id b7mr5271240wie.15.1365783778018; Fri, 12 Apr 2013 09:22:58 -0700 (PDT) Original-Received: from ecolmod ([2a01:e35:8baa:b070:5049:a128:14c:47c]) by mx.google.com with ESMTPS id gl11sm4176780wic.8.2013.04.12.09.22.56 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 12 Apr 2013 09:22:57 -0700 (PDT) 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::22d 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:16249 Archived-At: 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