From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 421396DE11F0 for ; Sun, 20 Nov 2016 23:53:19 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.1 X-Spam-Level: X-Spam-Status: No, score=0.1 tagged_above=-999 required=5 tests=[AWL=0.161, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.211, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sL-8GHlBh_ke for ; Sun, 20 Nov 2016 23:53:17 -0800 (PST) Received: from mail-wj0-f175.google.com (mail-wj0-f175.google.com [209.85.210.175]) by arlo.cworth.org (Postfix) with ESMTPS id 637AB6DE11EF for ; Sun, 20 Nov 2016 23:53:17 -0800 (PST) Received: by mail-wj0-f175.google.com with SMTP id qp4so23364605wjc.3 for ; Sun, 20 Nov 2016 23:53:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=wOEyP99PhZSlEFjVdl5BGlcQQ/rFYlGRkBClU46XZkw=; b=WLkoV5mBCWw57dJlqiwd2fPMDzsS4tnQIPWC6wkLRyAbv7NEMnwTdkWNTupbgtPjCo azRmMdaRL4WKfJBmoJhzdUlQT+idZQmoPNPRL+JSZK6b7iFCtHt4gDdYnV1KZGzuu4qz ONauf8qMZviXjVW4urR2mLNHtcsEPoqQNTKzqzv/F8HEjEtQovC7XQpcLunEDNlDviv9 52eQbvupSJ8VOBxtMNwG0s/2em6OD+nzMDvWSybAKjCn3s8IkmYXkgCZMVkcfteomYpR 5yaUZbOyhbJiAW644Nxx6S6V/SZU8gkm3zhc8SUvTkR4vwwRYDQyc4QZSnsD6hmESXvn 7xRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=wOEyP99PhZSlEFjVdl5BGlcQQ/rFYlGRkBClU46XZkw=; b=CLgTfnBKrIOEjxg0Q1b6zfyAmrEcNGHn2nG1uAsTkvKlBKZNIt6XrTGTJHJRW0YN5H oFWVTaXqKcTk5npEqOFikAx18jTgnqZ3p9AiIfJzCXx2DEfzcel+KsIiH+6XP10fmaGH DjFgr6YoQl80NRyInoOL9IQkaJ1OhvzVXqHppryJkydmk9dk28zI2Mxp6v+ARAO2NThA oLyIB9wMxRuohdmtweCRAPfYhQvpYAZlIxOLUtV3J7QSHYSJ4U2O+KFCraaBQmJcaqQt 4ZKmL6+LyEQ/fFoMwVOHd6j0AdjlyGMbwC7gyYuDZbDLCbiVc7put0t8Fu26zUxeMmth l63g== X-Gm-Message-State: AKaTC01j5U7A/CsAbuPA9SYdZTjIr83dMoYTy7XR6EbnzUZ8i0M8rn/EoZtnFD5LQsHTZA== X-Received: by 10.194.66.37 with SMTP id c5mr8093825wjt.138.1479714795634; Sun, 20 Nov 2016 23:53:15 -0800 (PST) Received: from localhost (188.28.76.223.threembb.co.uk. [188.28.76.223]) by smtp.gmail.com with ESMTPSA id n17sm23438075wjq.6.2016.11.20.23.53.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Nov 2016 23:53:15 -0800 (PST) From: Mark Walters To: sfischme@uwaterloo.ca, notmuch@notmuchmail.org Subject: Re: Filtering completions In-Reply-To: <87wpfxqx2x.fsf@uwaterloo.ca> References: <87wpfxqx2x.fsf@uwaterloo.ca> Date: Mon, 21 Nov 2016 07:53:14 +0000 Message-ID: <87twb1jml1.fsf@qmul.ac.uk> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Nov 2016 07:53:19 -0000 Hi On Mon, 21 Nov 2016, Sebastian Fischmeister wrote: > Hi, > > Is there a variable defining a regex to filter harvested completions before showing them? My completions include some outdated or invalid email addresses for people and I would like to automatically remove them from the list. > > I didn't find something for that in notmuch-address.el, and for instance notmuch-address-matching. There is no regex or similar, but you can filter the search used to harvest the addresses -- see notmuch-address-internal-completion (customisable under notmuch-send). You might find that putting a date limit would work; alternatively you could tag messages from the dead addresses (eg tag:dead-address) and put a "not tag:dead-address" in the filter field. Best wishes Mark