From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: Bug: org-mhe creates corrupt link when Message-ID field contains newline [7.01trans] Date: Wed, 15 Sep 2010 19:02:34 +0200 Message-ID: <87wrqnrlcl.wl%dmaus@ictsoc.de> References: <30477.1284560478@iu.edu> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from [140.186.70.92] (port=34952 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvvNb-0007fJ-Qh for emacs-orgmode@gnu.org; Wed, 15 Sep 2010 13:02:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvvNZ-0006Dt-U1 for emacs-orgmode@gnu.org; Wed, 15 Sep 2010 13:02:43 -0400 Received: from mysql1.xlhost.de ([213.202.242.106]:54590) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvvNZ-0006Cu-On for emacs-orgmode@gnu.org; Wed, 15 Sep 2010 13:02:41 -0400 In-Reply-To: <30477.1284560478@iu.edu> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Andrew J. Korty" Cc: emacs-orgmode@gnu.org Andrew J. Korty wrote: >Some MUAs insert a newline when rendering the Message-ID field: > Message-ID: > <98A78083733DE040834C2B9E91B87FDE0AADEB@example.com> >The newline causes org-mhe-store-link to create a link that looks like > [[mhe:%2Barchive# > %20<98A78083733DE040834C2B9E91B87FDE0AADEB@example.com][subject]] >org later treats the above as separate lines; any tags or properties >added end up in the middle of the link. Thanks for reporting this bug. I've fixed it in master, but not using `replace-regexp-in-string' but Org's internal function to strip leading and trailing white space. Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmjena@jabber.org Email..... dmaus@ictsoc.de