From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Diane Murray Newsgroups: gmane.emacs.devel Subject: Parsing URL attributes - url-mailto, url-imap, url-ldap broken? Date: Thu, 12 Apr 2007 17:02:56 +0200 Message-ID: <87ps69tz33.fsf@x3y2z1.net> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1176390022 12550 80.91.229.12 (12 Apr 2007 15:00:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 12 Apr 2007 15:00:22 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 12 17:00:19 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hc0mP-0008Uo-LQ for ged-emacs-devel@m.gmane.org; Thu, 12 Apr 2007 17:00:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hc0qZ-0001gR-Qo for ged-emacs-devel@m.gmane.org; Thu, 12 Apr 2007 11:04:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hc0qV-0001g4-Ci for emacs-devel@gnu.org; Thu, 12 Apr 2007 11:04:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hc0qQ-0001fs-VR for emacs-devel@gnu.org; Thu, 12 Apr 2007 11:04:22 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hc0qQ-0001fp-Pf for emacs-devel@gnu.org; Thu, 12 Apr 2007 11:04:18 -0400 Original-Received: from mailout04.sul.t-online.com ([194.25.134.18]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hc0mF-0000Fu-QJ for emacs-devel@gnu.org; Thu, 12 Apr 2007 11:00:00 -0400 Original-Received: from fwd33.aul.t-online.de by mailout04.sul.t-online.com with smtp id 1Hc0mE-00025F-05; Thu, 12 Apr 2007 16:59:58 +0200 Original-Received: from spargel (rPBun-ZEgetIkurPFgXGxicl0RBVoqZMgkuJTN1dmjz6CFH+IsefUj@[84.189.247.91]) by fwd33.sul.t-online.de with esmtp id 1Hc0ly-1eGGem0; Thu, 12 Apr 2007 16:59:42 +0200 X-ID: rPBun-ZEgetIkurPFgXGxicl0RBVoqZMgkuJTN1dmjz6CFH+IsefUj@t-dialin.net X-TOI-MSGID: af48521f-0ff5-4be2-b133-d7fc24121e80 X-detected-kernel: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:69334 Archived-At: I just noticed that `url-mailto' doesn't parse URLs with query arguments like it used to. If I call (url-retrieve-synchronously "mailto:ml+atest@x3y2z1.net?subject=testing") the word "testing" should be inserted in the Subject field, but it isn't. In Emacs CVS of 2006-09-19 it does that. I'm assuming after because of the following changes, now it doesn't: 2006-10-09 Magnus Henoch * url-parse.el (url-generic-parse-url): Handle URLs with empty path component and non-empty query component. Untangle path, query and fragment parsing code. Add references to RFC 3986 in comments. (url-recreate-url-attributes): Start query string with "?", not ";". I think `url-imap' and `url-ldap' won't work correctly either, from what I've seen in the source code. Since the change was probably made to parse http query strings better, and there is no such use of url-attributes in url-http.el, I believe it should be safe to somehow revert to the old way, since many of the other url scheme files depend on that way of doing things. -- Diane Murray