From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/53824 Path: main.gmane.org!not-for-mail From: Reiner Steib <4.uce.03.r.s@nurfuerspam.de> Newsgroups: gmane.emacs.gnus.general Subject: gnus-url-mailto broken on foo+bar@somewhere.invalid Date: Tue, 26 Aug 2003 18:52:48 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Sender: ding-owner@lists.math.uh.edu Message-ID: Reply-To: reiner.steib@gmx.de NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1061916904 20288 80.91.224.253 (26 Aug 2003 16:55:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Aug 2003 16:55:04 +0000 (UTC) Original-X-From: ding-owner+M2364@lists.math.uh.edu Tue Aug 26 18:55:03 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 19rh5y-0006tn-00 for ; Tue, 26 Aug 2003 18:55:03 +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 19rh4D-0001mi-00; Tue, 26 Aug 2003 11:53:13 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19rh48-0001md-00 for ding@lists.math.uh.edu; Tue, 26 Aug 2003 11:53:08 -0500 Original-Received: (qmail 81597 invoked by alias); 26 Aug 2003 16:53:08 -0000 Original-Received: (qmail 81592 invoked from network); 26 Aug 2003 16:53:08 -0000 Original-Received: from main.gmane.org (80.91.224.249) by sclp3.sclp.com with SMTP; 26 Aug 2003 16:53:08 -0000 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19rh4s-00023a-00 for ; Tue, 26 Aug 2003 18:53:54 +0200 Mail-Followup-To: ding@gnus.org X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19rh4r-00023S-00 for ; Tue, 26 Aug 2003 18:53:53 +0200 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 19rh44-00059L-00 for ; Tue, 26 Aug 2003 18:53:04 +0200 Original-Lines: 25 Original-X-Complaints-To: usenet@sea.gmane.org X-Face: .*T0'iU(sujq_j9\J>-d4fg;N/1++U#U$_5ii6k.=|"-n'?5O:Hyz&wi'-!I~,}7~GgT=0S /&-R5sbkNy5+Xo1y{Tw2KKxi@Xh"g@]Qc|.U<*]WDd)qvGowFDvfU1F]{EDho:7P0@|oOD=Bc{K4?> WP68K[Mx:}=`ZT'6g4'f+g?;`vri2!)xGy}3:=l'(/Cea0l4lo^H5#@/Z3ev Mail-Copies-To: nobody User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:r5aLGX+K6/2nQNWG4Y4TSsds3mA= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:53824 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:53824 Hi, 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 " ": ELISP> (gnus-url-unhex-string "foo+bar@somewhere.invalid") "foo bar@somewhere.invalid" ELISP> (mm-subst-char-in-string ?+ ? "foo+bar@somewhere.invalid") "foo bar@somewhere.invalid" What is the best fix for this? Adding an additional optional argument[1], say "allow-plus" to `gnus-url-unhex-string' and call (gnus-url-unhex-string url nil t) in `gnus-url-mailto'? Bye, Reiner. [1] - (defun gnus-url-unhex-string (str &optional allow-newlines) + (defun gnus-url-unhex-string (str &optional allow-newlines allow-plus) -- ,,, (o o) ---ooO-(_)-Ooo--- PGP key available via WWW http://rsteib.home.pages.de/