jschlatow / taskopen

Tool for taking notes and open urls with taskwarrior
GNU General Public License v2.0
363 stars 31 forks source link

integration with Claws-mail #141

Closed gour closed 2 years ago

gour commented 3 years ago

Hello,

although I managed to integrate taskwarrior & cb-thunderlink (see #138), I've decided to explore integration with Claws-mail which is my beloved mail client...

My idea is to take advantage of mutt2task script from the task-attach project to be able to create tw task from within Claws-mail and then annotate the task by using something like:

claws-mail --select ~/.claws-mail/newscache/news.gmane.io/gmane.comp.tex.context/112779

which does work in the terminal, but wonder what would be required at the taskopen side to make such link open-able by it?

Sincerely

jschlatow commented 2 years ago

Hi @gour. I'm sorry for the late reply. I was on a long summer vacation so that it took a while to work through the backlog.

Instead of annotating the task with the full command line, you could also use a uri syntax, e.g. mail://newscache/news.gmane.io/.... This makes it easier for taskopen to distinguish these annotation from other, non-actionable, annotations.

You can try setting a CUSTOM0_REGEX="mail:\/\/" and CUSTOM0_CMD="claws-mail --select ~/.claws-mail/$FILE" in your ~./taskopenrc.

gour commented 2 years ago

Hi @gour. I'm sorry for the late reply. I was on a long summer vacation so that it took a while to work through the backlog.

I hope you had a nice time!

Instead of annotating the task with the full command line, you could also use a uri syntax, e.g. mail://newscache/news.gmane.io/.... This makes it easier for taskopen to distinguish these annotation from other, non-actionable, annotations.

I solved my integration and described it here, but I promised to write appropriate wiki entry for the Claws' FAQ. :wink:

The most important thing is that I'm now settled on Claws & tw. :grinning:

jschlatow commented 2 years ago

@gour using the mime type is such an elegant solution. Love it and thanks for sharing.

The most important thing is that I'm now settled on Claws & tw. 

How cool :sunglasses: