From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/16215 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: Fri, 05 Apr 2013 10:46:44 +0200 Message-ID: <87k3oh5pqj.fsf@krugs.de> References: <87eherj2og.fsf@krugs.de> <871uarpsqj.fsf@riseup.net> <874nfmsonl.fsf@krugs.de> <874nfmgy53.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 1365151629 31506 80.91.229.3 (5 Apr 2013 08:47:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Apr 2013 08:47:09 +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 Fri Apr 05 10:47:36 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 1UO2J5-0005Yw-J7 for gegu-info-gnus-english@m.gmane.org; Fri, 05 Apr 2013 10:47:35 +0200 Original-Received: from localhost ([::1]:50191 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UO2Id-00057M-Nv for gegu-info-gnus-english@m.gmane.org; Fri, 05 Apr 2013 04:47:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45749) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UO2IV-00056A-B7 for info-gnus-english@gnu.org; Fri, 05 Apr 2013 04:47:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UO2IL-0006YI-R2 for info-gnus-english@gnu.org; Fri, 05 Apr 2013 04:46:59 -0400 Original-Received: from mail-wi0-x230.google.com ([2a00:1450:400c:c05::230]:48568) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UO2IL-0006Y0-Kh for info-gnus-english@gnu.org; Fri, 05 Apr 2013 04:46:49 -0400 Original-Received: by mail-wi0-f176.google.com with SMTP id hm14so342475wib.15 for ; Fri, 05 Apr 2013 01:46:48 -0700 (PDT) X-Received: by 10.180.82.68 with SMTP id g4mr2460470wiy.26.1365151608762; Fri, 05 Apr 2013 01:46:48 -0700 (PDT) Original-Received: from ecolmod ([2a01:e35:8baa:b070:3927:569b:e63c:9d3d]) by mx.google.com with ESMTPS id bk1sm2682750wib.2.2013.04.05.01.46.45 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 05 Apr 2013 01:46:46 -0700 (PDT) In-Reply-To: <874nfmgy53.fsf@riseup.net> (W. Greenhouse's message of "Thu, 04 Apr 2013 14:37:28 +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:c05::230 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:16215 Archived-At: wgreenhouse@riseup.net (W. Greenhouse) writes: > Hi Rainer, > > Rainer@krugs.de (Rainer M. Krug) writes: > >> 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 > > From the config you posted here, it looks like all your Gmail mailboxes > are so-called "native groups." "Native groups" are those which use > `gnus-select-method' as opposed to one of the secondary select methods > or a "foreign" server. All this "native" vs. "foreign" is perhaps all > making Gnus sound rather ethnocentric, but the gist of it is that > "native groups" do not have the server type prepended to their names. > That is, because Gmail is your primary select method, Gmail groups on > your system simply have names like "INBOX" or "[Gmail]/Important", and > not names like "nnimap+imap.gmail.com:INBOX". So that's why your > regexes went astray. Ok - that is very useful information and it solves one more problem I had - so brilliant info - Thanks! > > `gnus-move-split-methods' and `gnus-split-methods' and similar such > rules in Gnus are applied such that more specific rules can override > more general ones. If you are primarily using Gnus as a Gmail client, > it might make a lot of sense to have the most general rule direct any > re-filed message to the Gmail archive, and then make exceptions to this > later on. So, perhaps try this: > > (setq gnus-move-split-methods > '((".*" "[Gmail]/All Mail"))) Great - looks perfect. That's what I am using and it works like a charm. Thanks a lot, Rainer > > Good luck! > Best, > Will <#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: Rainer@krugs.de Skype: RMkrug