← Back to team overview

zim-wiki team mailing list archive

Re: ZIm and email integration

 

Why should this be impossible? I use links to emails all the time, in Zim and other programs. It depends very much on which email client you use, presumably also your OS. 

Under OS X (Mojave now, but this has worked since many years) and Apple mail it works.

The Applescript to fetch the mail URL is the following (I don’t remember the original author)

#######

tell application "Mail"
	set _sel to get selection
	set _links to {}
	repeat with _msg in _sel
		set _messageURL to "message://%3c" & _msg's message id & "%3e"
		set end of _links to _messageURL
	end repeat
	set AppleScript's text item delimiters to return
	set the clipboard to (_links as string)
end tell

#####


Best
Christoph

> On 9 Nov 2018, at 15:34, Joseph Reagle <joseph.2011@xxxxxxxxxx> wrote:
> 
> On 11/9/18 9:15 AM, nik wrote:
>> What I need is links in zim, so that when I click on the link email
>> message opens.
> I don't think this is possible: I don't think there's any URI scheme that corresponds to a local Message-ID.
> 
> Back in 2005, I used email archives that could reference a message by way of Message-ID. I then created an email filter that appended the URL of that archive with its specfic Message-ID to the signature of the email. That way it made it very easy for me to click on or save a link (in Zim) to a specific message.
> 
> https://reagle.org/joseph/pelican/praxis/mailman-message-id-and-persisten-uris.html
> 
> I suppose you could create a local archive that did something similar.
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~zim-wiki
> Post to     : zim-wiki@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~zim-wiki
> More help   : https://help.launchpad.net/ListHelp


Follow ups

References