From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/16214 Path: news.gmane.org!not-for-mail From: wgreenhouse-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org (W. Greenhouse) Newsgroups: gmane.emacs.gnus.user Subject: Re: How to deal with "Archive" and "delete" in gmail? Date: Thu, 04 Apr 2013 14:37:28 +0000 Message-ID: <874nfmgy53.fsf@riseup.net> References: <87eherj2og.fsf@krugs.de> <871uarpsqj.fsf@riseup.net> <874nfmsonl.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 1365086256 13728 80.91.229.3 (4 Apr 2013 14:37:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Apr 2013 14:37:36 +0000 (UTC) To: info-gnus-english-mXXj517/zsQ@public.gmane.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org-mXXj517/zsQ@public.gmane.org Thu Apr 04 16:38:05 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 1UNlId-0007kh-SL for gegu-info-gnus-english@m.gmane.org; Thu, 04 Apr 2013 16:37:59 +0200 Original-Received: from localhost ([::1]:53693 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNlIE-0004v7-Vn for gegu-info-gnus-english@m.gmane.org; Thu, 04 Apr 2013 10:37:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNlI6-0004v0-D9 for info-gnus-english-mXXj517/zsQ@public.gmane.org; Thu, 04 Apr 2013 10:37:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNlI0-0005QV-6A for info-gnus-english-mXXj517/zsQ@public.gmane.org; Thu, 04 Apr 2013 10:37:26 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:33627) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNlI0-0005QD-00 for info-gnus-english-mXXj517/zsQ@public.gmane.org; Thu, 04 Apr 2013 10:37:20 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UNlIJ-0007MG-4z for info-gnus-english-mXXj517/zsQ@public.gmane.org; Thu, 04 Apr 2013 16:37:39 +0200 Original-Received: from r36480.ovh.net ([188.165.33.3]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Apr 2013 16:37:39 +0200 Original-Received: from wgreenhouse by r36480.ovh.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Apr 2013 16:37:39 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 66 Original-X-Complaints-To: usenet-dbVV3NMTNubNLxjTenLetw@public.gmane.org X-Gmane-NNTP-Posting-Host: r36480.ovh.net X-Archive: encrypt User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:60mkWpprDXfXzswrrUVFnp8mnq0= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: info-gnus-english-mXXj517/zsQ@public.gmane.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-mXXj517/zsQ@public.gmane.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.gnus.user:16214 Archived-At: Hi Rainer, Rainer-vfylz/Ys1k4@public.gmane.org (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. `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"))) Good luck! Best, Will -- BOFH excuse #432: Borg nanites have infested the server