Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 0E681431FAF for ; Thu, 19 Jan 2012 13:23:21 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5t-uxJdMgX1u for ; Thu, 19 Jan 2012 13:23:20 -0800 (PST) Received: from mail-we0-f181.google.com (mail-we0-f181.google.com [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 4C78A431FAE for ; Thu, 19 Jan 2012 13:23:20 -0800 (PST) Received: by werp13 with SMTP id p13so386490wer.26 for ; Thu, 19 Jan 2012 13:23:19 -0800 (PST) Received: by 10.180.76.235 with SMTP id n11mr42054342wiw.11.1327008199106; Thu, 19 Jan 2012 13:23:19 -0800 (PST) Received: from localhost ([109.131.97.13]) by mx.google.com with ESMTPS id eb2sm30216787wib.0.2012.01.19.13.23.18 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 19 Jan 2012 13:23:18 -0800 (PST) From: Pieter Praet To: Austin Clements Subject: Re: [PATCH v3 2/2] search: Support automatic tag exclusions In-Reply-To: <20120119193647.GN16740@mit.edu> References: <1326586654-16840-3-git-send-email-amdragon@mit.edu> <1327000744-25463-1-git-send-email-pieter@praet.org> <20120119193647.GN16740@mit.edu> User-Agent: Notmuch/0.11+99~gab86e73 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-unknown-linux-gnu) Date: Thu, 19 Jan 2012 22:21:28 +0100 Message-ID: <8739bbo0br.fsf@praet.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Notmuch Mail X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 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: Thu, 19 Jan 2012 21:23:21 -0000 On Thu, 19 Jan 2012 14:36:47 -0500, Austin Clements wrote: > Quoth Pieter Praet on Jan 19 at 8:19 pm: > > Nice feature! I won't be using it myself, but I can imagine it being > > *very* useful for those who still feel the need to "delete" email :). > > Same here. I probably will use the spam tag, though. > Really? Then how will you be able to reply to my emails?!? ;) > > Nitpicking: > > > > - All other config-related functions and args include the section title > > in their name [1], so for the sake of consistency, we might want to > > mirror that. Also, the "auto"matic part is pretty much a given. > > > > So I'd like to suggest replacing all occurences of "auto_exclude_tags" > > with "search_exclude_tags" (and simply "exclude_tags" in the args to > > `_config_get_list' and `_config_set_list', of course). > > You are technically correct, the best kind of correct. I'd completely > missed this pattern. This should get fixed ASAP, while this feature > still has limited adoption. > > > Unfortunately, this would also partially invalidate your recent NEWS > > submission [2]. > > No worries, though maybe you want to tack an updated version of that > patch on the end of your series? > Will do. > > - If the 'search.exclude_tags' option is missing from the config file, > > its value is automatically set to "deleted;spam;", which probably isn't > > a sane default. Luckily, you've already provided the solution [3]. > > I'm good either way. I got lost in the discussion of defaults but > Jamie assured me everything was okay, so I took the path of least > resistance and left things as they were. > Hmm. I probably haven't read everything pertaining to that issue yet, but IMO it violates the Principle of Least Surprise with a vengeance. Tagging stuff some way or another shouldn't make it disappear by default. What if "spam" means "read it when you're bored", or "deleted" means "processed request for user deletion" (pretty far-fetched, but still...) for someone? > > - To make new users aware of the config option's existence, we should > > prompt them to configure it during setup. > > Sure. > > > Patches follow. > > > > > > Peace > > > > > > [1] Eg. `notmuch_config_get_user_name', `notmuch_config_get_new_tags', > > `notmuch_config_get_maildir_synchronize_flags', ... > > > > [2] id:"1326920330-31496-1-git-send-email-amdragon@mit.edu" > > > > [3] id:"20120117203211.GQ16740@mit.edu" > > Peace -- Pieter