From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harri Kiiskinen Subject: More on org-mew Date: Mon, 17 Nov 2008 13:17:39 +0200 (EET) Message-ID: <20081117.131739.66622794.harri.kiiskinen@utu.fi> References: <20081117.120751.200535062.harri.kiiskinen@utu.fi> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7BIT Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L2270-0004pU-Nt for emacs-orgmode@gnu.org; Mon, 17 Nov 2008 06:17:46 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L226z-0004pI-4k for emacs-orgmode@gnu.org; Mon, 17 Nov 2008 06:17:46 -0500 Received: from [199.232.76.173] (port=60840 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L226z-0004pF-22 for emacs-orgmode@gnu.org; Mon, 17 Nov 2008 06:17:45 -0500 Received: from smtp-out-02.utu.fi ([130.232.202.172]:48846) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L226y-0004rm-MM for emacs-orgmode@gnu.org; Mon, 17 Nov 2008 06:17:44 -0500 Received: from localhost (dyn35-171.vpn.utu.fi [130.232.35.171]) by smtp02.mess.utu.fi (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTPS id <0KAH007R061EU1A0@smtp02.mess.utu.fi> for emacs-orgmode@gnu.org; Mon, 17 Nov 2008 13:17:39 +0200 (EET) In-reply-to: <20081117.120751.200535062.harri.kiiskinen@utu.fi> 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: emacs-orgmode@gnu.org Hello, some more info on my previous report on the broken links to refiled mails in Mew. From: Harri Kiiskinen Subject: org-mew.el: Bug in creating links to messages marked for refile Date: Mon, 17 Nov 2008 12:07:51 +0200 (EET) > Now, I set the refile mark on the message, and create a new link to > it. The result is: > > [[mew:%2008#20081117.115043.144292908.harri.kiiskinen@utu.fi][Email > from Harri Kiiskinen: test]] > > Now, the mew case is still set to UTU, meaning that mew will refile > the message to folder UTU:%2008, but the link that is created by > org-mew-store-link does not include the case information. This patch seems to give correct links: --------------------------------------------------- diff --git a/lisp/org-mew.el b/lisp/org-mew.el index 2e6cb9b..453ce30 100644 --- a/lisp/org-mew.el +++ b/lisp/org-mew.el @@ -76,7 +76,10 @@ (folder-name (if (and org-mew-link-to-refile-destination (eq mark-info ?o)) ; marked as refile - (nth 1 (mew-refile-get msgnum)) + (concat + (mew-sinfo-get-case) + ":" + (nth 1 (mew-refile-get msgnum))) (mew-summary-folder-name))) message-id from to subject desc link) (save-window-excursion -------------------------------------------------- It uses mew-sinfo-get-case, which is buffer-local (or something), so the refile always stays in the same 'world' as the original, to use the Mew terminology. The links produced to a message marked for refile and to a message already in the folder are identical, so things should be ok: [[mew:UTU:%2008#20081117.115043.144292908.harri.kiiskinen@utu.fi][Email from Harri Kiiskinen: test]] [[mew:UTU:%2008#20081117.115043.144292908.harri.kiiskinen@utu.fi][Email from Harri Kiiskinen: test]] Another problem appears, though, and this is definitively beyond me. Now, the problem is, that if these are closed, i.e. look like this: Email from Harri Kiiskinen: test I can't open either with org-open-at-point. Both tell me "Message not found". But when the links are 'open', like this: [[mew:UTU:%2008#20081117.115043.144292908.harri.kiiskinen@utu.fi][Email from Harri Kiiskinen: test] and the point is on the link text ("mew:...") itself, org-open-at-point works nicely and opens the respective message in Mew. Baffled, Harri K.