From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/53825 Path: main.gmane.org!not-for-mail From: sigurd@12move.de (Karl =?iso-8859-1?q?Pfl=E4sterer?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-url-mailto broken on foo+bar@somewhere.invalid Date: Tue, 26 Aug 2003 20:05:41 +0200 Organization: Lemis World Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1061921381 7483 80.91.224.253 (26 Aug 2003 18:09:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Aug 2003 18:09:41 +0000 (UTC) Original-X-From: ding-owner+M2365@lists.math.uh.edu Tue Aug 26 20:09:40 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 19riGC-0003Gu-00 for ; Tue, 26 Aug 2003 20:09:40 +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 19riFj-0001yJ-00; Tue, 26 Aug 2003 13:09:11 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19riFe-0001yE-00 for ding@lists.math.uh.edu; Tue, 26 Aug 2003 13:09:07 -0500 Original-Received: (qmail 86066 invoked by alias); 26 Aug 2003 18:09:06 -0000 Original-Received: (qmail 86061 invoked from network); 26 Aug 2003 18:09:06 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by sclp3.sclp.com with SMTP; 26 Aug 2003 18:09:06 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 19riLi-0002KE-00 for ; Tue, 26 Aug 2003 20:15:22 +0200 Original-To: ding@gnus.org Original-Path: wintendo.pflaesterer.de!not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 29 Original-NNTP-Posting-Host: p62.246.15.112.tisdip.tiscali.de Original-X-Trace: quimby.gnus.org 1061921722 8935 62.246.15.112 (26 Aug 2003 18:15:22 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 26 Aug 2003 18:15:22 GMT X-Face: #iIcL\6>Qj/G*F@AL9T*v/R$j@7Q`6#FU&Flg6u6aVsLdWf(H$U5>:;&*>oy>jOIWgA%8w* A!V7X`\fEGoQ[@D'@i^*p3FCC6&Rg~JT/H_*MOX;"o~flADb8^ Mail-Copies-To: never User-Agent: Gnus/5.1003 (Gnus v5.10.3) Hamster/2.0.2.2 Cancel-Lock: sha1:rWr0Owfiv2R3IW6HYqKITaK7BaU= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:53825 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:53825 On 26 Aug 2003, Reiner Steib <- 4.uce.03.r.s@nurfuerspam.de wrote: > 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'? I'm not sure. At first sight it looks ugly. I looked at the function (here is part of the code): ;; Fixme: Do it like QP. (defun gnus-url-unhex-string (str &optional allow-newlines) "Remove %XX, embedded spaces, etc in a url. If optional second argument ALLOW-NEWLINES is non-nil, then allow the decoding of carriage returns and line feeds in the string, which is normally forbidden in URL encoding." (setq str (or (mm-subst-char-in-string ?+ ? str) "")) ; why `or'? Two questions? (a) What's meant with the comment? (b) What is the substitution good for? KP -- Mary had a little lambda, Its syntax white as snow, And every program Mary wrote, She wrote in Lisp, you know.