Problems with Mail to KGTD
A number of users have reported that when their mail rules activate Mail to KGTD, they get an error type 8. I’ve tracked down the CAUSE of this problem, but I’m not quite at a solution yet.
The cause is that when messages come in, they don’t seem to have message IDs anymore. Since my script requests a message ID, everything borks when it tries to get it. Once messages are properly received (after rules are run), they have IDs (like they should), which is why Mail Act-On continues to work, as will the rule if you edit it and then request that the new rule run on all messages in your inbox.
The script also works fine from Quicksilver, LaunchBar, the scripts menu, FastScripts… Any way you kick it off except for on an incoming mail rule will work just fine.
As far as I can tell, this is a bug in Mail (one of many Applescript bugs which haven’t been fixed for many, many, updates, I’m afraid). It was introduced during a recent security update, which I hadn’t yet installed, which is why I was having trouble replicating this error.
The best I can do, I think, is to remove the ability to create a link to the original message, which will avoid the need for a message ID, but also loses the link, which I know a lot of users like. I’m hoping I can find a way around that.
So, at any rate, I’ve found the root cause of the problem and I’m working on a fix. I’ll post an update here once I have a fix or workaround.
In the meantime, please let me know in the comments whether or not you make use of the “link” feature, or whether you’d just as soon see it go by the wayside. It takes a looooong time on some folks’ Macs, so perhaps it’s just unnecessary.
Bookmark with Del.icio.us
problem with message-id
As the developer of Act-On, I am keenly interested in this problem. What do you mean by message id . the internal id # that mail applies to the message (known as the library id) or the message-id that exists in the message header (looks like g00bleyG00k-UUID@domain.com
MailTags has started (in V2.0 to use the header message-id to refer to the message outside of Mail) and has registered an URL handler for message:// (ie requesting message://g00bleyG00k-UUID@domain.com will open mail and bring up relevant message)
Re: problem with message-id
Nope, that message-id that you’re using is something of a GUID for messages, and is, unfortunately, useless for my purposes.
Every mail message has an ID (in Applescript, just get the ID of a message, it’s there). This ID also happens to be the bulk of the file name for the .emlx file which comprises the Spotlight index. So a message with an ID of 71345 will have an instance of itself called “71345.emlx” in the filesystem.
It’s this file that I link to so that you can click in Kinkless and pop open the file.
Perhaps the secret to all of this is to grab the message-id GUID, create a message:// link, and inform Kinkless users that they need to install MailTags in order to have the link work (or I could create a link-to-message Applescript…).
I do need to give Mailtags 2.0 a try. Version 1 was a bit spare for my tastes, but 2 seems to be a major jump forward. I’d just hate to get hooked when I can’t afford it. (And I really do need to save up for a copy of Script Debugger — Script Editor isn’t really cutting it with these larger scripts.)
honestly, all I want to do
honestly, all I want to do is e-mail myself things from my Blackberry that automatically end up in my kGTD inbox as unprocessed tasks. you get that working and I’ll be stoked, I don’t need links, I don’t even need the contexts, projects and other fancy stuff, just want it in from mail = > kGTD automatically so I don’t have to manually enter all of those e-mails every time I get home. Thanks!
also, is there a formal manual on exactly how to work this anywhere? I’m confused on syntax and rules etc?
Workaround
I wouldn’t mind if the links didn’t work for some time. Just like Skylar I really want my mails to show up in my KGTD Inbox. So, could you please post a workaround? Maybe the lines we have to change or the actual modified script? TIA.
Post new comment