From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: How do you automatically refile mails with mu4e? Date: Mon, 20 Mar 2017 09:33:54 +0100 Message-ID: <878to0z6rx.fsf@fastmail.fm> References: <87r31siemr.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: blaine.gmane.org 1489998879 15678 195.159.176.226 (20 Mar 2017 08:34:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 20 Mar 2017 08:34:39 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 25.2.2 Cc: help-gnu-emacs@gnu.org To: Danny YUE Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 20 09:34:36 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cpslp-0002rn-6d for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Mar 2017 09:34:29 +0100 Original-Received: from localhost ([::1]:59815 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cpslt-0000O1-EQ for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Mar 2017 04:34:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59976) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cpslO-0000Nv-SG for help-gnu-emacs@gnu.org; Mon, 20 Mar 2017 04:34:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cpslL-00011y-QC for help-gnu-emacs@gnu.org; Mon, 20 Mar 2017 04:34:02 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:33275) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cpslL-00011N-AR for help-gnu-emacs@gnu.org; Mon, 20 Mar 2017 04:33:59 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 79BF420657; Mon, 20 Mar 2017 04:33:57 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Mon, 20 Mar 2017 04:33:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=fm1; bh=pQIhAg12aRuIsGizzXxkdpNGvkWy4m1Ig/TR5YSo7 j8=; b=jpKxO97PfVonnsJFf0YbFV9zf0FQhHrjP7WfKAAl1XYaRA+hNhiLVndIH BsTeWafLYck1U23vv+RQ4NXDuw5e7+DrM7tfGFeOhvN2cDIRGZlFOfmLJFE9nWPU ymY3yQcEAvYJmXXZk6dAFBXc+qv7nXCI1Zo+StZPVBaX+amRCxhx801mfdrVf9Cz 4s3J+zFhJ5iAtTnHpfBRLdnmyqCX1xG3hhlb8vKlHMhu0FkZAaV4fjtcf3jayXiU TJBv264Ywe0jgYO9XT+FoaReNIP6qVuJWK1WSGAkQK142Bqdwd7f/XYYvtcW5CTn 7dMP4E/JZBZZ9RRhT70SmCfof1+Dg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=pQIhAg12aRuIsGizzX xkdpNGvkWy4m1Ig/TR5YSo7j8=; b=Iwjzav7l+aPH43Ej+XHoAz9a5gAtw1xNxR QKVzBLdHSMhn3iqFNvHM/Sd3GgcHF4QskEpeiVHBofEnDNHFD9XXD0IBc2UXwPwJ jCm/PYPO3ae75r6FVTLyXHIEUULKgnVOXheIddbhcwX08VzsMKRyk3JCIIjVzHU4 0G9NTqzmDTW617lu+X+8muKbOsJI290O5UsrDq/b9BnJatbRuRjeezFaRNdbxw5z +jbKrNnhs0MZ/uIJV5mWL8AC6RKRO2cnOsidnBay5oHnwHSiSnCotwnH8+AX6+P3 auq4tFw8cGUP5eJqD7TJoxshT35o8E0ur2CdVuWn+6kOC17A0wig== X-ME-Sender: X-Sasl-enc: NaBkRny6DKh2OH4Kmdp68E+7DNGp7hY5ZF92Oe52oAdD 1489998836 Original-Received: from IdeaPad.messagingengine.com (x4d0aad86.dyn.telefonica.de [77.10.173.134]) by mail.messagingengine.com (Postfix) with ESMTPA id B25782436D; Mon, 20 Mar 2017 04:33:56 -0400 (EDT) In-reply-to: <87r31siemr.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.111.4.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:112609 Archived-At: On Mon, Mar 20 2017, Danny YUE wrote: > How can you refile the mails without opening any mu4e buffers? > > I read the manual and I know that it is possible to define a > function to > refile based on something. > But every time I have to mark-and-execute manually, and it > sometimes > annoys me. > > I would like it to be automatically done: every time the index > is > updated, the incoming unread mails are refiled automatically. > > My idea is to add something to the mu4e-update-pre-hook. > But I did not found any clue how I can refile mails in the > background, without opening any buffer. > Looking into the code did not really help. > > Can anyone help? Thanks in advance. I'm not sure if what you want is possible at all with mu4e (personally I use my mail provider's file & filtering options, other people do it locally using something like procmail). However, mu4e has its own mailing list. I think your best bet would be to ask your question there. HTH -- Joost Kremers Life has its moments