From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: PATCH: Fix malformed "message" links produced by org-mac-link.el Date: Thu, 25 Sep 2014 08:14:17 +0200 Message-ID: References: <35ACE9A2-E7B9-41DC-A748-13022BC1FABC@sanityinc.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43578) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XX2K4-0006V7-N3 for emacs-orgmode@gnu.org; Thu, 25 Sep 2014 02:14:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XX2Jz-0000lm-CH for emacs-orgmode@gnu.org; Thu, 25 Sep 2014 02:14:36 -0400 Received: from mx1.polytechnique.org ([129.104.30.34]:40638) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XX2Jz-0000kj-6t for emacs-orgmode@gnu.org; Thu, 25 Sep 2014 02:14:31 -0400 In-Reply-To: (Steve Purcell's message of "Wed, 24 Sep 2014 20:56:22 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Steve Purcell Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2014-09-24 20:56, Steve Purcell writes: > On 24 Sep 2014, at 20:01, Alan Schmitt w= rote: > >> This was the case here: the string returned by the AppleScript had >> quotes (and it still does). >>=20 >> For instance, with the message you mention, the call to >> org-as-get-selected-mail returns this (doing a debug): >>=20 >> Result: "\"message://2.b2af716655bbac583727@NY-WEB01::split::Private bet= a invitation for Emacs Q&A site - Area 51 - Stack Exchange\=E2=80=9D=E2=80= =9D > > > I definitely don=E2=80=99t get quotes in the result of org-as-get-selecte= d-mail. =E2=80=A6 > Not sure how to proceed, then=E2=80=A6 It seems that the difference is with getting quotes or not. How about changing org-as-get-selected-mail to make sure there is no quote? We could for instance test whether the first and last characters are quotes, and remove them if they are. Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBCgAGBQJUI7K+AAoJEAQNCjtO0uXHKQgH/ij75boFvxuwREjwj+g2k3KN AaTEOdFKym6nUpdSYrDrA9OrfNOKF5wboVyfyxrYmvM2I84uk26/91waNdEUmPxR N2E1GrrPMb31NPULPl7xrik0LCqJmIl6BNfJN2k03eyGA50r5tk1sgjN0fg0TLdH NnSPIOBnd0tQDxTAydynOVXH5t0JYxhhaNJ9vp3SanT9cRp3LGsuygu3NH8B+enp 5l1Q/xYg7Rj7u8dr7FgWFadPI2a79Zv/PicUtUKHYGAkHU/d/XeTuqk3E0a6ApIR 3+URMUGMHa8BYSoCkf+VEK3SbYhtvM4ppHCdE/Gfdb+5h+5fewjC6ydKbFTBWVE= =5mqO -----END PGP SIGNATURE----- --=-=-=--