From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher League Subject: Re: processing pending emails as part of your GTD system Date: Wed, 23 Apr 2008 23:38:32 -0400 Message-ID: <0B8C8B23-694C-4C30-BFCE-BC3F2F874804@contrapunctus.net> References: <23F0EFFE-B44D-433C-9C9B-6A6576516020@alexanderonline.org> Mime-Version: 1.0 (Apple Message framework v919.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JosIA-00011z-JO for emacs-orgmode@gnu.org; Wed, 23 Apr 2008 23:38:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JosIA-00011U-7p for emacs-orgmode@gnu.org; Wed, 23 Apr 2008 23:38:38 -0400 Received: from [199.232.76.173] (port=45621 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JosI9-00011R-Pf for emacs-orgmode@gnu.org; Wed, 23 Apr 2008 23:38:37 -0400 Received: from contrapunctus.net ([207.210.219.173]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JosI9-0007Az-51 for emacs-orgmode@gnu.org; Wed, 23 Apr 2008 23:38:37 -0400 Received: from sagan.home.lan (ool-457947e1.dyn.optonline.net [69.121.71.225]) by contrapunctus.net (Postfix) with ESMTP id 86C2683EC for ; Wed, 23 Apr 2008 23:38:33 -0400 (EDT) In-Reply-To: <23F0EFFE-B44D-433C-9C9B-6A6576516020@alexanderonline.org> 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: org-mode mailing list On Apr 23, 2008, at 11:34 AM, bva@alexanderonline.org wrote: > How did you know about this ``message://%3c%3e'' schema syntax!? Is > there anything else I can do to Mail from within Emacs (or from > within Quicksilver {see footnote}). Where can I read more! Is it > safe to upgrade Mail (i.e. if I upgrade to OS X 10.666 will this > script break?) Things like this change all the time between OS revisions, so no guarantee. I think the message URLs are new in Leopard (10.5). You can find some details here: http://daringfireball.net/2007/12/message_urls_leopard_mail The macosxhints.com site is good too for tricks like that. I think I just modified someone else's "Copy Message URL" script to put it in the right format for org-mode. I'm no apple-script expert either. > It seems that the message is found even if I move it to another > folder within Mail after generating the link; anything I need to be > warned about? Yes, Mail in Leopard indexes all the messages and (usually) follows them through refiles. Once in a while a linked message can't be found, but if I revisit the folder or "synchronize with server", then it works again. > I often have two message viewers open (one with mailboxes showing > and one without, for easier filing {see footnote}) -- how does your > script (or Mail) choose which one is 'selected'? No idea, likely the last Mail window with focus? > 1) Why doesn't the applescript work for the messages in the first > folder I tried - my GTD folder? Messages from the org-mode digest > are automatically filed to "On My Mac" -> "Reference" -> "GHI" -> > "GTD" to help keep my inbox clean. But any message I try to run > your script on gives me blank "id" properties. > > Example: [[message://%3c%3e][Emacs-orgmode Digest, Vol 26, Issue 54]] Hm, that %3c%3e means that there was no message-ID field for that message. If you look at "Long Headers" and there IS a "Message-ID:" field (there is on org-mode messages for me), then maybe it has to do with Mail's index after auto-filing. I do my auto-filing on the server with procmail, so I never use Mail's facility for that. > 2) The emacs-lisp code calls (yank) which doesn't grab text from the > Apple Clipboard for me. I am using "GNU Emacs 22.1.50.1 (powerpc- > apple-darwin7.9.0, Carbon Version 1.6.0) of 2007-10-02 on > applecore.inf.ed.ac.uk - Aquamacs Distribution 1.2a" and org-version > 5.23a. Instead, I modified your code to use (cua-paste). Okay, simple enough. Mine is GNU Emacs 22.2.1 (i386-apple-darwin9, Carbon Version 1.6.0) [compiled from emacs22-carbon in Fink]. I use Quicksilver, but don't have much in the way of Mail integration. Let me know if you find something. Chris