From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Suvayu Ali Newsgroups: gmane.emacs.help Subject: Re: From Gnus to mu4e Date: Fri, 21 Aug 2015 15:06:14 +0200 Message-ID: <20150821130614.GD31789@chitra.no-ip.org> References: <87d1yhpsbr.fsf@free.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1440162414 961 80.91.229.3 (21 Aug 2015 13:06:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Aug 2015 13:06:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 21 15:06:38 2015 Return-path: Envelope-to: geh-help-gnu-emacs@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 1ZSm1f-0000Jg-2k for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Aug 2015 15:06:31 +0200 Original-Received: from localhost ([::1]:41465 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSm1e-0004yL-Ew for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Aug 2015 09:06:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSm1T-0004xv-8b for help-gnu-emacs@gnu.org; Fri, 21 Aug 2015 09:06:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZSm1S-00062q-3w for help-gnu-emacs@gnu.org; Fri, 21 Aug 2015 09:06:19 -0400 Original-Received: from mail-wi0-x230.google.com ([2a00:1450:400c:c05::230]:34935) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSm1R-00062h-Tf for help-gnu-emacs@gnu.org; Fri, 21 Aug 2015 09:06:18 -0400 Original-Received: by wicne3 with SMTP id ne3so15610296wic.0 for ; Fri, 21 Aug 2015 06:06:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=oxlCOgr4l9EikPxA0lXoRqZURvWsdcsrHHnQNH3X9x4=; b=Bni/EvrXU7Tik83BkLmCvdQqCZMTsQkkwpbwcztQGBshyBG6bV2nVgQMBLa/CdTbCH Mk7g6eE8YlKFI3Fi/LZtuyOiPxHSragM3cKcq+swNOX8VOUuh2wdiJGKfLtZLl9me9vH NjG+h/wxQt+HG3gwxV7DtMDLYfOSB75d4aA/FLrtz0SMan/0VGfU8plwZ7d4hV8Yw6kI jSkxXzGTb62f37ooEMqZXHQhlJTeeg+18Pfrh3ZJ1tCIOY9g6ycr28WAYlhl8P73AgNL yBBslF0JqJicPUcfFA439D8IKsBhSAhqI6kU2vJhiu9QWzEnYpMDHST6Cb0PLcTP0dR7 BdRQ== X-Received: by 10.180.83.72 with SMTP id o8mr6208970wiy.27.1440162377217; Fri, 21 Aug 2015 06:06:17 -0700 (PDT) Original-Received: from chitra.no-ip.org ([2001:610:120:3001:2ad2:44ff:fe4a:b029]) by smtp.gmail.com with ESMTPSA id v9sm9933315wjq.41.2015.08.21.06.06.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Aug 2015 06:06:15 -0700 (PDT) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <87d1yhpsbr.fsf@free.fr> User-Agent: Mutt/1.5.23.1 (2014-03-12) 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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:106748 Archived-At: Hi, I think I can answer some of your queries. On Thu, Aug 20, 2015 at 11:23:36PM +0200, Julien Cubizolles wrote: > > * Can OfflineImap or whatever imap sync tool used exclude some folders > in the main Maildir folder from being synced to the IMAP server ? I'd > like to be able to archive some old mail without it being sent to > Gmail. Yes, it is possible. Just use a folderfilter. Something like this: folderfilter = lambda foldername: foldername in ['INBOX', 'mysent', 'mailinglist', 'org-mode', 'mutt', 'Emacs', 'Tux', 'XFCE', 'bash', 'notmuch', 'travel', '[Google Mail]/Drafts'] So Colin's statement about mbsync being better than OfflineIMAP because of this reason, is inaccurate. Although, I have heard mbsync performs better than OfflineIMAP, I still have to test this though. > * Can mu4e use the Gmail labels for search queries ? Probably not directly, but if it allows for limiting by folder name, it should be possible. You can do this with notmuch (I use notmuch). > * If a message is tagged with several labels on Gmail, does it appear in > several folders in the local repository ? On a related note, if one > were to move a message from a folder in a repository synced with Gmail > to another folder not synced (for archiving purposes), I guess the > message would remain at least in the [Gmail]/All Mail folder. Is there > an easy way to remove it altogether from Gmail ? There are many subtleties when it comes to Gmail's implementation of the IMAP interface. I would recommend reading these two articles: - https://support.google.com/mail/answer/77657?hl=en - https://support.google.com/mail/answer/78755?hl=en That said, in Gmail, you need something like this: When a message is marked as deleted and expunged from the last visible IMAP folder: - [ ] Archive the message (default) - [X] Move the message to the Bin - [ ] Immediately delete the message forever You can also set the last option, choosing the default will leave it in Gmail. On top of this, you should make sure the All Mail folder is _not_ accessible over IMAP. This is important. As long as the message is present in at least one IMAP folder, Gmail will retain it. This is where it becomes important how you choose to delete it. With notmuch, when you delete a message the delete flag will be forwarded to all the respective messages in the maildir, which in turn ensures it is deleted from Gmail the next time you sync. Maybe mu4e does something similar. Hope this helps, -- Suvayu Open source is the future. It sets us free.