From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/17850 Path: news.gmane.org!not-for-mail From: Benjamin Slade Newsgroups: gmane.emacs.gnus.user Subject: Re: multi-email gnus setup questions Date: Thu, 24 Dec 2015 14:22:49 -0700 Message-ID: <87bn9fbkye.fsf@jnanam.net> References: <87mvt3ny9x.fsf@jnanam.net> <87fuyvmgw1.fsf@ericabrahamsen.net> <8760zpxvr8.fsf@kloecker.org> <87d1twonfv.fsf@jnanam.net> <877fk4xsp3.fsf@ericabrahamsen.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 1450992195 18092 80.91.229.3 (24 Dec 2015 21:23:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Dec 2015 21:23:15 +0000 (UTC) Cc: info-gnus-english@gnu.org To: Eric Abrahamsen Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Thu Dec 24 22:23:01 2015 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 1aCDLf-0005B0-HS for gegu-info-gnus-english@m.gmane.org; Thu, 24 Dec 2015 22:22:59 +0100 Original-Received: from localhost ([::1]:33467 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCDLe-0007LX-Qe for gegu-info-gnus-english@m.gmane.org; Thu, 24 Dec 2015 16:22:58 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44519) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCDLc-0007Ki-37 for info-gnus-english@gnu.org; Thu, 24 Dec 2015 16:22:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aCDLY-0000Dx-Qh for info-gnus-english@gnu.org; Thu, 24 Dec 2015 16:22:56 -0500 Original-Received: from mail-s40.mailgun.us ([184.173.153.40]:53652) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCDLY-0000Dc-N3 for info-gnus-english@gnu.org; Thu, 24 Dec 2015 16:22:52 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=jnanam.net; q=dns/txt; s=krs; t=1450992172; h=Content-Type: MIME-Version: Message-ID: Date: In-reply-to: Subject: Cc: To: From: References: Sender; bh=HHYNbR1HuZdHD3oyoi2nQ0Dq8y4/uM/TZ63GBMlW0f0=; b=QXkwdAMQ99rAkCjBnWno2hx4eOX1RtPVqQduyLEBwJ0fIz45OP7+1/zDb4fXnFbtiG1qjQBM f5BiMGDSlMU6Culsjl0YzhKqK8NNA35ybC/IOMQwSTQZkpZF1v5VmscHrRZNFsYRmmjl699q FlUEA0JCUxMTKhRlTe2a9+n7eZY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=jnanam.net; s=krs; q=dns; h=Sender: References: From: To: Cc: Subject: In-reply-to: Date: Message-ID: MIME-Version: Content-Type; b=gCumqM13pXT8mvYr4NRDj6oCUWQ6J6wod+0BOfYJd3gDivq22A5TAlHRHbPAxir+yyj9/4 fpoV3/CQ2rwqlDaMEinpZuRGEWrL3YocrLYXR3hxMzAdOiJfiMpm/MXic7GY10CpWNjOQMDf FLekGmjujitPzsGn/XD/oaOgOJ4tE= X-Mailgun-Sid: WyI0MjM1NSIsICJpbmZvLWdudXMtZW5nbGlzaEBnbnUub3JnIiwgIjZlOWRiIl0= Original-Received: from sindhu.homepc (107-191-36-23ch.openskytelcom.net [107.191.36.23]) by mxa.mailgun.org with ESMTP id 567c622b.7f53108b1d88-in1; Thu, 24 Dec 2015 21:22:51 -0000 (UTC) User-agent: mu4e 0.9.15; emacs 24.5.1 In-reply-to: <877fk4xsp3.fsf@ericabrahamsen.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 184.173.153.40 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:17850 Archived-At: Eric Abrahamsen writes: > `nnmail-expiry-targets' isn't a server variable, just a regular > variable. Also, there's no `nnimap-expiry-targets', and > `nnmail-fancy-expiry-targets' only lets you base expiration on group > names, not backends. Here's what I do (outside of the server > definition): > > (setq nnmail-expiry-target 'my-expire-gmail-imap-message) > > (defun my-expire-gmail-imap-message (group) > "In gmail-based imap groups, expiry should happen by moving the > message to the corresponding [Gmail]/Trash folder." > (if (string-match "nnimap\\+\\(several\\|gmail\\|backends\\):" group) > (format "nnimap+%s:[Gmail]/Trash" (match-string 1 group)) > 'delete)) > > That expires everything in a Gmail imap account to the corresponding > [Gmail]/Trash folder. Hmm.. ok, so outside of the server definition, just in the main .gnus.el fail (not in the scope of anything else), I've tried putting: (setq nnmail-expiry-target 'my-expire-gmail-imap-message) (defun my-expire-gmail-imap-message (group) "In gmail-based imap groups, expiry should happen by moving the message to the corresponding [Gmail]/Bin folder." (if (string-match "nnimap\\+\\(homemail\\|workmail\\|funmail\\):" group) (format "nnimap+%s:[Gmail]\Bin" (match-string 1 group)) 'delete)) [So in my Gnus groups, I see things like: 3:nnimap+homemail:INBOX 7:nnimap+homemail:Madness 9:nnimap+workmail:INBOX etc. And my Gmail boxes are [Gmail]/Bin rather than [Gmail]/Trash] The resulting behaviour, when I open up the Gmail webclient, that the deleted message indeed disappears from the Inbox, but does not appear in the [Gmail]/Bin directory. (I.e., as far as I can, it must just be matching the 'delete rule). I've also tried setting (setq nnmail-expiry-wait 'immediate), but that doesn't seem to make a difference. Finally, I also tried changing the regex to: nnimap\\+\\(homemail\\|workmail\\|funmail\\):.* but that also doesn't work. Any ideas where something could be going wrong?