delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/03/30/10:26:58

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-5.2 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,TW_XD,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
X-IronPortListener: Outbound_SMTP
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av8EAFfBdU+cKEcW/2dsb2JhbABFuGuBB4IKAQEEEhUTPxACAQgNJwIJBx8TFAMBDQEBBA4NGodnnmOcC4p/hS5jBI0rjkqKHIMDgUA
From: "Buchbinder, Barry (NIH/NIAID) [E]" <BBuchbinder AT niaid DOT nih DOT gov>
To: cygwin <cygwin AT cygwin DOT com>
CC: Ken Brown <kbrown AT cornell DOT edu>
Date: Fri, 30 Mar 2012 10:23:21 -0400
Subject: RE: cygstart doesn't handle question marks in mailto URLs
Message-ID: <0105D5C1E0353146B1B222348B0411A20A6536C8A5@NIHMLBX02.nih.gov>
References: <4F75B4D7 DOT 8060407 AT cornell DOT edu>
In-Reply-To: <4F75B4D7.8060407@cornell.edu>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q2UEQqjL013568

Ken Brown sent the following at Friday, March 30, 2012 9:28 AM
>If I type `cygstart mailto:recipient?subject=subject' at a Cygwin bash
>prompt, I expect my default Windows mail program to start an outgoing
>message with `recipient' as recipient and `subject' as subject. (This is
>what happens if I type the same URL into a `Start Menu -> Run' box.) the
>  What happens instead is that `recipient?subject=subject' shows up as
>recipient, with the question mark replaced by something unprintable, and
>the subject is blank.
>
>Is this a bug in cygstart, or am I misunderstanding something?
>
>My reason for asking this is that I'm testing xdg-utils, which is
>currently available in Cygwin Ports but which will probably be added to
>the Cygwin distro at some point. I would like xdg-open to be able to
>handle mailto URLs correctly if I export BROWSER=cygstart.

Using "&" instead of "?" does what you want with both cygstart and Windows'
"run".  Remember to escape the "&" when using cygstart.

- Barry
  Disclaimer: Statements made herein are not made on behalf of NIAID.



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019