emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christopher League <league@contrapunctus.net>
To: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: processing pending emails as part of your GTD 	system
Date: Wed, 23 Apr 2008 23:38:32 -0400	[thread overview]
Message-ID: <0B8C8B23-694C-4C30-BFCE-BC3F2F874804@contrapunctus.net> (raw)
In-Reply-To: <23F0EFFE-B44D-433C-9C9B-6A6576516020@alexanderonline.org>

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

  reply	other threads:[~2008-04-24  3:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-23 15:34 processing pending emails as part of your GTD system bva
2008-04-24  3:38 ` Christopher League [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-04-21  6:55 Pete Phillips
2008-04-22 16:55 ` Christopher League
2008-04-23 19:25 ` Erik Hetzner
2008-04-30 21:25 ` Adam Spiers
2008-05-01  6:32   ` Carsten Dominik
2008-05-03 21:32     ` Adam Spiers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0B8C8B23-694C-4C30-BFCE-BC3F2F874804@contrapunctus.net \
    --to=league@contrapunctus.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).