From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: hyperlink type for Claws-mail Date: Thu, 27 Apr 2017 14:43:28 -0400 Message-ID: <87fugtsncf.fsf@alphaville.usersys.redhat.com> References: <87y3un2drj.fsf@atmarama.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3oOE-0004CR-44 for emacs-orgmode@gnu.org; Thu, 27 Apr 2017 14:43:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d3oOB-0000eZ-34 for emacs-orgmode@gnu.org; Thu, 27 Apr 2017 14:43:42 -0400 Received: from [195.159.176.226] (port=41662 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d3oOA-0000e1-Rr for emacs-orgmode@gnu.org; Thu, 27 Apr 2017 14:43:39 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1d3oO0-00011l-Et for emacs-orgmode@gnu.org; Thu, 27 Apr 2017 20:43:28 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Saša Janiška writes: > Hello, > > I do wonder if there is some way to add hyperlink type for Claws-mail? > org-link-set-parameters. There are examples of its use for gnus, rmail, mhe, eww, w3m, irc and a few others in the source. AFAICT, almost all of them define two functions, one to follow the link and the other to store the link. E.g. org-gnus does this: (org-link-set-parameters "gnus" :follow #'org-gnus-open :store #'org-gnus-store-link) > Today, asked the same question in #claws and I was told that something > like this could work: > > claws-mail --select [#mh/mailbox/]folder[/msg|/msgid]` > > and tried with the following: > > claws-mail --select '#imap/gour/INBOX/10254' > > and I can confirm that it works. > > The 'msgid' from above is visible within Claws when one enables 'Number' > column in Summary view… > > Now I wonder what would be correct way to create such link(s) within > org-mode by invoking some function by feeding it the ’msgid’ or possibly > some more data ( mailbox, folder etc.) so that when I later click on > such created hyperlink the following: > > claws-mail --select ... > > is going to be invoked? > > Any hint? > > > Sincerely, > Gour -- Nick