From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/53902 Path: main.gmane.org!not-for-mail From: Frank Schmitt Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-url-mailto broken on foo+bar@somewhere.invalid Date: Thu, 04 Sep 2003 23:46:53 +0200 Organization: Hamme net, kren mer och nimmi Sender: ding-owner@lists.math.uh.edu Message-ID: References: Reply-To: replies@Frank-Schmitt.net NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1062712030 9008 80.91.224.253 (4 Sep 2003 21:47:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 Sep 2003 21:47:10 +0000 (UTC) Original-X-From: ding-owner+M2442@lists.math.uh.edu Thu Sep 04 23:47:08 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19v1wa-00050S-00 for ; Thu, 04 Sep 2003 23:47:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19v1w3-0005id-00; Thu, 04 Sep 2003 16:46:35 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19v1vz-0005iY-00 for ding@lists.math.uh.edu; Thu, 04 Sep 2003 16:46:31 -0500 Original-Received: (qmail 27635 invoked by alias); 4 Sep 2003 21:46:31 -0000 Original-Received: (qmail 27630 invoked from network); 4 Sep 2003 21:46:31 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by sclp3.sclp.com with SMTP; 4 Sep 2003 21:46:31 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 19v26C-0006Hy-00 for ; Thu, 04 Sep 2003 23:57:04 +0200 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 35 Original-NNTP-Posting-Host: pd9eac41a.dip0.t-ipconnect.de Original-X-Trace: quimby.gnus.org 1062712624 24177 217.234.196.26 (4 Sep 2003 21:57:04 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 4 Sep 2003 21:57:04 GMT X-Face: :EL9TzGRN){7|oE2~xQ8Q(VjpjsXgX$~gi&rYD5J5p)$w\Thdl~v:7h`/n)J!8nXT%_+Wj6}@EHM8}QbA(9nX-wrQ:ch1%DauV[?kFasXUcnL#+"K8zOx&$@/M'/},q-eztaJra1|?C+p$h\2XnK-HB"8_U writes: > mailto links like `mailto:foo+bar@somewhere.invalid' aren't handled > correctly by `gnus-url-mailto'. `gnus-url-mailto' calls > `gnus-url-unhex-string' and the first line in this function translates > "+" to " ": There's an other case where gnus-url-mailto fails: It doesn't decode encoded "html-characters" and 8bit characters encoded with the &...;-sgml-syntax like in "mailto:Paul%20Krämer%20<foo@schlurps.de>" On Emacs 21 this is quite easy to fix: There's (defun iso-sgml2iso (from to &optional buffer) "Translate SGML entities in the region to ISO 8859-1 characters. The entities used are from \"ISO 8879:1986//ENTITIES Added Latin 1//EN\". Optional arg BUFFER is ignored (for use in `format-alist')." Happily waiting for us. However this does only convert sgml-Umlauts to iso-chararacters, it doesn't handle the html special-characters, we'd have to either change the function before using it, or handle < <=> < > <=> > & <=> & " <=> " specially. -- Did you ever realize how much text fits in eighty columns? If you now consider that a signature usually consists of up to four lines, this gives you enough space to spread a tremendous amount of information with your messages. So seize this opportunity and don't waste your signature with bullshit nobody will read.