From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61022 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: Hashcash-generation/check for IDN-domains Date: Tue, 27 Sep 2005 17:09:49 +0200 Message-ID: References: <87y85iejat.fsf@koldfront.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1127834111 27236 80.91.229.2 (27 Sep 2005 15:15:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Sep 2005 15:15:11 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+m9554@lists.math.uh.edu Tue Sep 27 17:15:10 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EKH6K-0003eW-81 for ding-account@gmane.org; Tue, 27 Sep 2005 17:10:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1EKH6F-0002W2-00; Tue, 27 Sep 2005 10:10:31 -0500 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EKH5u-0002Vx-00 for ding@lists.math.uh.edu; Tue, 27 Sep 2005 10:10:10 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1EKH5o-0004JZ-38 for ding@lists.math.uh.edu; Tue, 27 Sep 2005 10:10:09 -0500 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net ([217.13.230.178] helo=yxa.extundo.com) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EKH5n-0000Sy-00 for ; Tue, 27 Sep 2005 17:10:03 +0200 Original-Received: from latte.josefsson.org (c494102a.s-bi.bostream.se [217.215.27.65]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-3) with ESMTP id j8RF9sYY007262 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 27 Sep 2005 17:10:01 +0200 Original-To: asjo@koldfront.dk (Adam =?iso-8859-1?Q?Sj=F8gren?=) OpenPGP: id=B565716F; url=http://josefsson.org/key.txt X-Hashcash: 1:21:050927:asjo@koldfront.dk::EUL1f3aPKQbce63T:5h7P X-Hashcash: 1:21:050927:ding@gnus.org::MF7MPauq2xpbm6+W:6QXh In-Reply-To: <87y85iejat.fsf@koldfront.dk> (Adam =?iso-8859-1?Q?Sj=F8gren'?= =?iso-8859-1?Q?s?= message of "Tue, 27 Sep 2005 15:23:22 +0200") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=failed version=3.0.3 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yxa-iv X-Virus-Scanned: ClamAV version 0.84, clamav-milter version 0.84e on yxa.extundo.com X-Virus-Status: Clean X-MIME-Autoconverted: from 8bit to quoted-printable by yxa.extundo.com id j8RF9sYY007262 X-Spam-Score: -2.3 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61022 Archived-At: asjo@koldfront.dk (Adam Sj=F8gren) writes: > Hi. > > > I (sort-of) recently acquired the domain 'sj=F8gren.org'. > > I just tried sending an email to adam@sj=F8gren.org - Gnus nicely asked > me if it should translate sj=F8gren.org to xn--sjgren-cya.org, and I > happily accepted. > > The email arrived, but was split into the nnml:bogus group and an > error-message occured. The following is the messages I get if I go to > nnml:bogus and do B q on the email (after setting gnus-verbose to 10): > > spam-split: widening the buffer (spam-use-crm114 requires it) > spam-split: calling the spam-check-hashcash function > Error in `nnmail-split-methods'; using `bogus' mail group > This message would go to bogus > > It seems that the hashcash generated is somehow invalid and/or the > check is (too) fragile. I'm not sure which. The X-hashcash header sent appeared to contain the non-ASCII characters, which I believe is wrong. So it is the generation that is faulty. Since, if I recall correctly, it copy the content from To/From/Cc, it probably should do its own IDN-processing. I'm not sure how that would interfact with answering 'n' at the query you refer to though. Perhaps that query is simply wrong? It doesn't make sense to send mail to non-ASCII domains ever, does it? So Gnus should attempt to translate non-ASCII to xn--* via libidn, or refuse to send the message. Then the hashcash code could also unconditionally perform idn-encoding. Not sure what should happen if idn-encoding inside the hashcash cookie generation fail though. Leave the X-hashcash as-is, with non-ASCII characters? Or remove the header? When we knew some more answers to these questions, I can try to implement them... > The entire email is: > > #v+ > X-From-Line: asjo@koldfront.dk Tue Sep 27 14:34:08 2005 > Return-Path: > X-Original-To: asjo@topper.koldfront.local > Delivered-To: asjo@topper.koldfront.local > Received: from virgil.koldfront.dk (virgil.koldfront.local [192.168.1.111= ]) > (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) > (No client certificate requested) > by topper.koldfront.dk (Postfix) with ESMTP id 60489F0000E3 > for ; Tue, 27 Sep 2005 14:34:08 +0200 (CEST) > Received: by virgil.koldfront.dk (Postfix) > id 50B7F3A8AF59; Tue, 27 Sep 2005 14:37:14 +0200 (CEST) > Delivered-To: asjo@koldfront.dk > Received: by virgil.koldfront.dk (Postfix, from userid 1010) > id 4F0A93A8AF5A; Tue, 27 Sep 2005 14:37:14 +0200 (CEST) > Received: from topper.koldfront.dk (gateway.koldfront.dk [192.168.1.1]) > (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) > (No client certificate requested) > by virgil.koldfront.dk (Postfix) with ESMTP id D769E3A8AF59 > for ; Tue, 27 Sep 2005 14:37:13 +0200 (CEST) > Received: by topper.koldfront.dk (Postfix, from userid 1000) > id AB77AF0000E3; Tue, 27 Sep 2005 14:34:06 +0200 (CEST) > From: asjo@koldfront.dk (Adam =3D?iso-8859-1?Q?Sj=3DF8gren?=3D) > To: adam@xn--sjgren-cya.org > Subject: Test > Organization: koldfront - analysis & revolution, Copenhagen, Denmark > X-Face: )qY&CseJ?.:=3D8F#^~GcSA?F=3D9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97,Q= (^@xk}n4Ou > rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/= IS9lMJ > ^St'=3DVZBR X-Hashcash: =3D?iso-8859-1?Q?1=3D3A24=3D3A050927=3D3Aadam=3D40sj=3DF8gren= =3D2Eorg=3D3A=3D3A+?=3D > =3D?iso-8859-1?Q?OOJ2Vgcu8oOshd2=3D3A0ZBhK?=3D > Date: Tue, 27 Sep 2005 14:34:01 +0200 > X-Gnus-Mail-Source: file:/var/mail/asjo > Message-ID: <878xxid70m.fsf@koldfront.dk> > User-Agent: Gnus/5.110004 (No Gnus v0.4) XEmacs/21.4.17 (linux) > MIME-Version: 1.0 > Content-Type: text/plain; charset=3Diso-8859-1 > Content-Transfer-Encoding: 8bit > X-Spam-Checker-Version: SpamAssassin 3.0.3 on virgil.koldfront.dk > X-Spam-Level:=20 > X-Spam-Status: No, score=3D-6.1 required=3D5.0 tests=3DALL_TRUSTED,AWL,BA= YES_00=20 > autolearn=3Dham version=3D3.0.3 > Lines: 6 > Xref: topper bogus:19 > > 1-2 > > --=20 > "Vi falder samme vej eller ej" Adam Sj=F8g= ren > asjo@koldfront.dk > > > > #v- > > It looks like the hashcash-header was qp-encoded due to the '=F8' in the > domain and this somehow confuses hashcash.el when checking it? > > > Best regards, > > --=20 > "Vi falder samme vej eller ej" Adam Sj=F8g= ren > asjo@koldfront.dk