From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/82906 Path: news.gmane.org!not-for-mail From: Daiki Ueno Newsgroups: gmane.emacs.gnus.general Subject: Re: [BUG] mml2015-epg-find-usable-key finds unusable key Date: Sun, 17 Feb 2013 18:02:49 +0900 Message-ID: <8738wvb9dy.fsf-ueno@gnu.org> References: <87fw106la1.fsf%stlman@poczta.fm> <87bobk85tv.fsf%stlman@poczta.fm> <871ucg6k2g.fsf%stlman@poczta.fm> <878v6nskem.fsf-ueno@gnu.org> <87vc9rtm9u.fsf%stlman@poczta.fm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1361091821 15417 80.91.229.3 (17 Feb 2013 09:03:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Feb 2013 09:03:41 +0000 (UTC) Cc: ding@gnus.org To: =?utf-8?Q?=C5=81ukasz?= Stelmach Original-X-From: ding-owner+M31172@lists.math.uh.edu Sun Feb 17 10:04:04 2013 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U70AD-00028z-7l for ding-account@gmane.org; Sun, 17 Feb 2013 10:04:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1U709G-0003yG-OD; Sun, 17 Feb 2013 03:03:02 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1U709E-0003xz-Su for ding@lists.math.uh.edu; Sun, 17 Feb 2013 03:03:00 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1U709D-0005qU-0w for ding@lists.math.uh.edu; Sun, 17 Feb 2013 03:03:00 -0600 Original-Received: from fencepost.gnu.org ([208.118.235.10] ident=Debian-exim) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1U709B-0005E1-D7 for ding@gnus.org; Sun, 17 Feb 2013 10:02:57 +0100 Original-Received: from [2001:e41:db5e:fb14::1] (port=43583 helo=debian) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1U7098-0000hH-St; Sun, 17 Feb 2013 04:02:55 -0500 In-Reply-To: <87vc9rtm9u.fsf%stlman@poczta.fm> (=?utf-8?Q?=22=C5=81ukasz?= Stelmach"'s message of "Sun, 17 Feb 2013 08:47:09 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) X-Spam-Score: -7.9 (-------) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:82906 Archived-At: =C5=81ukasz Stelmach writes: > What I mean, here is a rather hypothetical case when someone writes > some code forgetting about your assumption of normalisation. We can > say: "let the guy shoot his own foot", but I think we shouldn't. We > should rather follow the logic: assume key-id is a correct uid. In > such case we should check the input for *being* the key-id rather than > not being an e-mail address. In that case, I'd rather modify the caller of mml2015-epg-check-user-id, not to call the function if the recipient is key-id. That makes it clearer that mml2015-epg-check-user-id only deals with user-id not key-id. Regards, --=20 Daiki Ueno