Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-10-18 08:41:48

Guacamole
Member
Registered: 2022-10-18
Posts: 1

Thunar "Send to mail recipient"

I'm using thunar 4.16.11 and thunderbird 102.3.3 (EndeavourOS)
When I use thunar's "send to mail recipient" function, thunderbird starts, opens a new email, but no file(s) is/are attached to it.

Offline

#2 2022-10-18 11:14:29

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,949

Re: Thunar "Send to mail recipient"

Hello and welcome.

I can verify the issue - probably best to create a bug report if you want to get it fixed natively.

As a workaround, create the folder ~/.local/share/Thunar/sendto (if it doesn't exist) and then create the following files

thunar-sendto-thunderbird.desktop file in that folder with the following content:

[Desktop Entry]
Type=Application
Version=1.0
Name=Thunderbird
Icon=mail-send
Exec=/usr/local/bin/tbird.sh

/usr/local/bin/tbird.sh with the following contents:

#!/bin/bash

for f in $@
do
	if [ -z $str ]; then
		str=$f
	else
		str="$str, $f"
	fi
done

thunderbird --compose "attachment='$str'"

...and make it executable.

This will give you another option to send with Thunderbird. Note that you can only attach files. If you want to attach a folder, you'll need to extend the script to compress the folder and then attach the zip file - something that Thunar's sendto already does.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Board footer

Powered by FluxBB