From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/16211 Path: news.gmane.org!not-for-mail From: Rainer@krugs.de (Rainer M. Krug) Newsgroups: gmane.emacs.gnus.user Subject: Re: How to deal with "Archive" and "delete" in gmail? Date: Thu, 04 Apr 2013 10:09:18 +0200 Message-ID: <874nfmsonl.fsf@krugs.de> References: <87eherj2og.fsf@krugs.de> <871uarpsqj.fsf@riseup.net> 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 1365062976 21675 80.91.229.3 (4 Apr 2013 08:09:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Apr 2013 08:09:36 +0000 (UTC) Cc: info-gnus-english@gnu.org To: wgreenhouse@riseup.net (W. Greenhouse) Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Thu Apr 04 10:10:03 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 1UNfFC-0006KA-Pp for gegu-info-gnus-english@m.gmane.org; Thu, 04 Apr 2013 10:10:03 +0200 Original-Received: from localhost ([::1]:39413 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNfEk-00023j-UK for gegu-info-gnus-english@m.gmane.org; Thu, 04 Apr 2013 04:09:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNfEf-000234-5c for info-gnus-english@gnu.org; Thu, 04 Apr 2013 04:09:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNfEc-0003o8-6H for info-gnus-english@gnu.org; Thu, 04 Apr 2013 04:09:29 -0400 Original-Received: from mail-we0-x234.google.com ([2a00:1450:400c:c03::234]:61647) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNfEc-0003mC-0I for info-gnus-english@gnu.org; Thu, 04 Apr 2013 04:09:26 -0400 Original-Received: by mail-we0-f180.google.com with SMTP id r5so1770117wey.11 for ; Thu, 04 Apr 2013 01:09:25 -0700 (PDT) X-Received: by 10.194.220.37 with SMTP id pt5mr7392062wjc.16.1365062965150; Thu, 04 Apr 2013 01:09:25 -0700 (PDT) Original-Received: from ecolmod ([2a01:e35:8baa:b070:f52e:a187:546f:1d99]) by mx.google.com with ESMTPS id g4sm14259733wib.11.2013.04.04.01.09.21 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 04 Apr 2013 01:09:21 -0700 (PDT) In-Reply-To: <871uarpsqj.fsf@riseup.net> (W. Greenhouse's message of "Wed, 03 Apr 2013 14:57:08 +0000") 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::234 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:16211 Archived-At: wgreenhouse@riseup.net (W. Greenhouse) writes: > Rainer@krugs.de (Rainer M. Krug) writes: > >> Hi >> >> I have a question about using Archive and Delete when accessing gmail >> via gnus. I am aware, that Archiving can be achieved by "deleting" the >> message in gnus from the e.g. inbox (B DEL), but then I always have to >> confirm with "yes". Also, it might be dangerous when using this on other >> accounts. >> >> In contrast, "Deleting" can be achieved by moving the message to the >> folder [gmail]\bin (or what it is called in the locale one is using). >> >> Now I am using Expire to move the emails to the bin folder, i.e. to >> delete them. But is there something similar I could use to Archive them? >> especially archiving several message becomes a pain. >> >> Would it be possible, to define a key (possibly A) to archive, while E >> still expires (i.e. deletes) the email? > > See the variable `gnus-move-split-methods.' You can set [Gmail]/All > Mail as the default move target for your Gmail nnimap groups, then when > you mark a bunch of messages and do B m that will be the default choice > for moving. <#secure method=pgpmime mode=sign> > In contrast, "Deleting" can be achieved by moving the message to the > folder [gmail]\bin (or what it is called in the locale one is using). > > Now I am using Expire to move the emails to the bin folder, i.e. to > delete them. But is there something similar I could use to Archive them? > especially archiving several message becomes a pain. > > Would it be possible, to define a key (possibly A) to archive, while E > still expires (i.e. deletes) the email? See the variable `gnus-move-split-methods.' You can set [Gmail]/All Mail as the default move target for your Gmail nnimap groups, then when you mark a bunch of messages and do B m that will be the default choice for moving. This looks like a good option. But I am still struggling with the regexp for groups (maybe because I do not understand the naming of groups?). So I have my gmail account defined as primary source: (setq gnus-select-method '(nnimap "gmail" (nnimap-address "imap.gmail.com") (nnimap-server-port 993) (nnimap-stream ssl) (nnimap-authinfo-file "~/.authinfo.gpg") (nnmail-expiry-target "[Gmail]/Bin") (nnmail-expiry-wait 2))) and I would like to set the default move target for all groups in this primary source to "[gmail]/All Mail": (setq gnus-move-split-methods '(("nnimap.*" "[gmail]/All Mail"))) but it is not working. I assume it is something wrong with the regexp "nnimap.*" - my reasoning was: match all groups which start with nnimap. This regexp also concerns other configuratios which are not working... Any suggestions? Thanks, 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