[Users] Insert browser URL link into open 'compose' mail -- the "smartphone chat" way

Ralf Mardorf silver.bullet at zoho.com
Sat Apr 23 22:12:15 CEST 2016

On Sat, 23 Apr 2016 22:05:32 +0200, Ralf Mardorf wrote:
>Assign a shortcut to a script.
>I marked a link and bash can display it:
>[rocketmouse at archlinux ~]$ echo $(xsel -b)
>A script could generate a mail with the message body $(xsel -b).
>$ claws-mail --help
>--compose-from-file file
>  open composition window with data from given file;
>  use - as file name for reading from standard input;
>  content format: headers first (To: required) until an
>  empty line, then mail body until end of file.
>There are several commands that can copy a selection to the clipboard
>and get content from the clipboard, IOW you not necessarily need to
>first push Ctrl+C and then the shortcut for the script, you also could
>directly do all with one shortcut.
>However, yesterday another user and I wrote for somebody on another
>list a script, for usage with a shortcut to resize the active window to
>75% of it's original size and I won't continue today to write a script
>to generate mails with copied links/text. It's not hard to do, but
>takes some time.


Why using claws at all? The script could directly send a mail, by a
sendmail replacement. I once used msmtp.

[rocketmouse at archlinux ~]$ ls -hAl /usr/bin/sendmail 
lrwxrwxrwx 1 root root 5 Jan 18 04:20 /usr/bin/sendmail -> msmtp

More information about the Users mailing list