[Users] Opening mailto: links with Claws Mail in KDE

Charlie Kravetz cjk at teamcharliesangels.com
Tue Apr 25 05:00:49 CEST 2017


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Mon, 24 Apr 2017 22:04:37 +0200
Tristan Miller <psychonaut at nothingisreal.com> wrote:

>Greetings.
>
>Apropos of the recent thread on using Claws Mail instead of KMail, does
>anyone know how to get recent versions of KDE to open mailto: links in
>Claws Mail instead of KMail?
>
>This is supposed to be accomplished by launching System Settings,
>selecting Default Applications->Email Client->Use a different
>email client, and then entering "claws-mail %u" in the input box.
>
>However, this setting doesn't work.  The system opens all mailto: links
>in KMail even when "Use a different email client" is selected.
>
>There is a longstanding bug report for this issue at
><https://bugs.kde.org/show_bug.cgi?id=292606>.  Does anyone here know
>of a workaround, short of uninstalling KMail?  (Maybe I could
>symlink /usr/bin/kmail to /usr/bin/claws-mail, though that would get
>overwritten every time KMail is upgraded.)
>
>Regards,
>Tristan
>


I use a short bash program to this in Firefox. Make sure it is in the
path or it will fail.


#!/bin/bash
#
## Tell Firefox what you've done. 
## Go to the Applications tab in the Preferences dialog 
## When you select 'mailto' in the Content Type column on the left,
## you'll see a drop-down list in the Action column on the right. 
## 
## Choose Use other... and a window opens in which you can select a
## helper application (third screenshot). Navigate in this window to
## the folder where you put mailto.sh, select mailto.sh and choose Open.
##
## Now when choosing to send an email through firefox, claws-mail will 
## open with the 'TO:' filled in
## -----------------------------------------------------------------------------
#

claws-mail --compose "$1"


- -- 
Charlie Kravetz
Linux Registered User Number 425914
[http://linuxcounter.net/user/425914.html]
Never let anyone steal your DREAM.   [http://keepingdreams.com]
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEG5QK93YKrQMH22ZTiq6LjqbJ0IAFAlj+u+EACgkQiq6LjqbJ
0ICNxQf9GTi+Ewr1DZ4hHtgGgx6CQ0pDdWfFJUux/73krW0m4/p9OGxFfRd8wMRP
QQIusjU3JXyi3dfUbysUYVbCHjiIHir2N5mCGhmDQJ8Moo8gwsM/hLmg/AKgG3QT
LXf0Pp8+yrhQOWcMdveFTx/bIdLySlwv57ARw6+KarEhZG9M6nNYa4XT7gAWywl8
2Usew24MpRWpvtvpVE6Amh6uB/4NiRKPnaENhhL62T2XFOLG3hxJJNUVJneIi7Iw
Zu3lh/RUqoq32ehJqNDxO5jwmPkQNCQkKcHdCHwhbIyy8YVXh62+66LdtaXIl7iy
Gw8rYo2umTQrLwp8DairnGQj71CZfg==
=HcHl
-----END PGP SIGNATURE-----


More information about the Users mailing list