From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS11403 64.147.108.0/24 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from pb-smtp2.pobox.com (pb-smtp2.pobox.com [64.147.108.71]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 18E651F9E3 for ; Fri, 24 Apr 2020 03:12:39 +0000 (UTC) Received: from pb-smtp2.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 1635767F82; Thu, 23 Apr 2020 23:12:38 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:in-reply-to:date:message-id:mime-version:content-type; s=sasl; bh=rIfhW+xwpDUNkiniFeTEKLDHTfk=; b=rI/TE9VLALc5IjMBPlAq 6ZiwhbJz585LmBZRyA/WsBdl2cwGKKnFgPmrS8/UhoTnXCAV2Rwm+qshqjakqap8 RN/Ja+wUzV7YAOGidyhjwoDpvBwpTn4TNq9bJwrCsYd53XVFfDYysJ17kM6t9QaA F1W4hLqsKZ/TlQD27G3PdIg= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id F0A1E67F81; Thu, 23 Apr 2020 23:12:37 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=kyleam.com; h=from:to:cc:subject:in-reply-to:date:message-id:mime-version:content-type; s=mesmtp; bh=hUSRKgcHK0co6/seWRo+ZVQHMOi7DYrOfsFBjM1Pwak=; b=HoYz84+N4nL9QsIWiJdPTBSWDzBwvt6zkIt6pOHaXjFb6jZTqMtE4b1yiSUuXFl74tJYaidC56zCvMKcNfJpLhcV0aGcuUhcIei+mVA4LirJNLmc2xGEqnnAq13YpXQEFjcWf/N0N+2RAsTqjcmd1fp3MI3z09ZBurF5Sn1Pf+s= Received: from localhost (unknown [45.33.91.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id 5EE1267F80; Thu, 23 Apr 2020 23:12:37 -0400 (EDT) (envelope-from kyle@kyleam.com) From: Kyle Meyer To: Eric Wong Cc: meta@public-inbox.org Subject: Re: [RFC 0/2] watch behavior changes aNd ProPoSaL In-Reply-To: <20200423083419.835-1-e@yhbt.net> Date: Fri, 24 Apr 2020 03:12:36 +0000 Message-ID: <87r1wdshjv.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 731F7214-85D9-11EA-B2E6-D1361DBA3BAF-24757444!pb-smtp2.pobox.com List-Id: Eric Wong writes: > Now, I don't think the following two patches will cause any > problems for existing users... > > Down the line, for matching non-List-ID headers insensitively, > I'm thinking "mutt style" case-sensitivity is probably a good > default. That is: > > Match case-sensitively iff capital letters exist in > the substring. Otherwise, match case-insensitively. Yeah, I find this behavior to be pretty intuitive/nice, though I guess the only context where I've (knowingly) used it is Emacs search, so that might discount my 2 cents :) However, if it's either this or an option like... > Otherwise, I'm not sure how a user should (or would care to) > specify case-insensitivity vs case-sensitivity... > > Valid email headers names won't have spaces (or many other > chars), so we can do somthing like attempt to parse out " -i" > (like "grep -i"): > > watchheader = To -i:John Smith ... this, I guess this one has the advantage of being able to case-sensitively match all lowercase? I'm not sure how much practical value there is to that, though. I think the -i proposal above is nicer than this next one, but I suppose it'd have the same advantage. > Or, add a new option: > > watchHeaderInsensitively = To:John Smith > > Ugh...