Re: [PATCH] Parent match
- To: mutt-dev@xxxxxxxx
- Subject: Re: [PATCH] Parent match
- From: Kyle Wheeler <kyle-mutt-dev@xxxxxxxxxxxxxx>
- Date: Thu, 13 Nov 2008 10:04:20 -0600
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date :from:to:subject:message-id:references:mime-version:content-type :in-reply-to; s=default; bh=uJ3WnqlzUEOLyqB2pr4UZ1pu+Us=; b=Tbli hwAXsKOi4CcWReSnxZOfb4KAe9tD6WuYjb7ChIIVNf5o57IRFcprwxQtClufJBoX Y2fp1JeESaGCpXrJlZk81t9eoZLDLZJGrojHQwVIHD38HhMlQmhTe42L8dhRXfjw 17fAZt696h+5lAeRwuoOvsa7Hu3TMF1q+y3DN2U=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=cywxrQplsep2RmBwd642ac+VEDQLp4tXsZEzZPJdfobn2cwh36ODzhjYCUm6Ax9r0YDQ2/HkHCK/ALSX+xCb2PoYXBWGYgDXY8I1KUP6b0A3Xekq1VPPS3gSWixoCObSZWCJu1y5VzDDpZnivuGg+TCWpplJDQEaqWG3FFNtPZw=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:OpenPGP:User-Agent;
- In-reply-to: <20081113111740.GL46299@xxxxxxxxxxxxxxxxxxxxxxxx>
- List-post: <mailto:mutt-dev@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-dev"
- Mail-followup-to: mutt-dev@xxxxxxxx
- Openpgp: id=CA8E235E; url=http://www.memoryhole.net/~kyle/kyle-pgp.asc; preference=signencrypt
- References: <20081113111740.GL46299@xxxxxxxxxxxxxxxxxxxxxxxx>
- Sender: owner-mutt-dev@xxxxxxxx
- User-agent: Mutt/1.5.18 (2008-10-30)
On Thursday, November 13 at 12:17 PM, quoth Jeremie Le Hen:
Attached you will find a patch introducing a new match pattern: =().
Thanks to this pattern you can match the parent message of messages
matching the inner pattern.
I don't disagree with the idea, but I do disagree with the syntax. All
the other patterns use ~, =, and % to differentiate between different
ways of matching the same information. For example, ~c uses a regex to
search the CC headers, =c performs a string-based match on the CC
headers, and %c performs a group-based match on the CC headers. This
is consistent across all of the various letters that can be used: %c,
%C, %e, and %f are all group-based variants of the ~ versions of those
same searches. I don't think it's wise to create a new pattern that
appears to be the same sort of variation but does not behave in the
same way. =() looks like it will be a string-based version of ~(),
even if that doesn't necessarily make any sense. I think it would be
smarter to change the brackets; make the pattern be ~{} or ~[]
instead.
~Kyle
--
Morality, like art, means drawing a line someplace.
-- Oscar Wilde
Attachment:
pgphmMn7IMKCf.pgp
Description: PGP signature