Solved Send by Email....right click menu

Solved issue

Condobloke

Well-Known Member
Joined
Apr 30, 2017
Messages
8,364
Reaction score
6,786
Credits
55,809
Linux Mint 21.1..Cinnamon

Right click on an .epub file which has been saved to the desktop...returns this error

1677985214284.png

it will then open a blank email....but will not attach the .epub file
It will attach a.png file
It will not attach a .pdf file

I have used the following to create the 'Send by Email' in the right click menu

navigate using the home folder as the opening..

Save the following text in a file at /.local/share/nemo/actions/ (thunderbird-mailto.nemo-actions will be added next)

right click in nemo action and select open in root.....password required....and then right click and create an

empty document ....name the empty document : thunderbird-mailto.nemo_action


Then copy and paste the blurb below into that empty document and SAVE IT



[Nemo Action]
Active=true
Name=Send by Email
Comment=Attach one or several files to Thunderbird message
Exec=thunderbird -compose to=,"attachment='%F'"
Icon-Name=thunderbird
Selection=Any
Extensions=any
Separator=,
Dependencies=thunderbird


You will then have a right click menu item of "send by Email"

What am I missing/leaving out/doing incorrectly/...etc
 
Last edited:


hmmm.....too hard for the ensembled experts ?
 
Hope you are not including moi in that group. ;)

Where did you get the idea from?

I am betting that

right click in nemo action and select open in root.....password required...

is a fly in the ointment, regarding permissions.

You could run

Code:
ls -al  /.local/share/nemo/actions/

to get a clearer picture.

Wiz
 

near the bottom of the page

Code:
ls -al  /.local/share/nemo/actions/

brian@brian-desktop:~$ ls -al /.local/share/nemo/actions/
ls: cannot access '/.local/share/nemo/actions/': No such file or directory
brian@brian-desktop:~$

I can access,(manually)......home/.local/share/nemo/actions/thunderbird-mailto.nemo_action....which opens to display the below:


[Nemo Action]
Active=true
Name=Send by Email
Comment=Attach one or several files to Thunderbird message
Exec=thunderbird -compose to=,"attachment='%F'"
Icon-Name=thunderbird
Selection=Any
Extensions=any
Separator=,
Dependencies=thunderbird
 
I read this. .. https://forums.linuxmint.com/viewtopic.php?t=336053
I am not going to go down the rabbit hole of altering xdg-utils to a previous version

I read elsewhere that send by email is a known security drama....which doesnt make a great deal of sense to me, becasue when I installed LM21.1 and set about setting it up, send by email was one of the first to be put in place.
It worked perfectly.
On occasion some of the file names would give it some grief....but they were easy enough to clean up....and again...it worked

Until 'now'.....which translates to the past week

Unless I have made a duh error (entirely possible) I may just have to alter my habit of right clicking and selecting send by email.

I had a minor whinge to Clem about this...apparently this fell on deaf ears.....either that or there are bigger fish to fry related to this particular problem

Dunno
 
I am just right clicking on various files...then 'send by email'.....and attempting to come to grips with the absurdity of this.

Anything that has an .epub file type incurs=++ the error....even if I remove the .epub it still refuses/errors

I select a .gz file...no problem...attaches it instantly.

Plain text file or .pdf...error

.png ....no problem

.jpg...error

I can only imagine the misery people who use this in order to maintain a workflow, experience.

I believe if I change my file manager to Nautilus ....it can 'send by email'
 
No such file or directory

My bad, left out the tilde, should have been

Code:
 ls -al ~/.local/share/nemo/actions/

I believe if I change my file manager to Nautilus ....it can 'send by email'

Don't forget if you install Nautilus, don't remove Nemo, it will brick your Cinnamon. You can remove the Nautilus (Files) icon from your panel if it is there, without actually removing Nautilus.

Also, if you prefer an option to Open as Admin/Root it does not by default, but this functionality can be reached using the package

nautilus-admin

So you would use something like

Code:
sudo apt-get -y install nautilus nautilus-admin

Wiz
 
brian@brian-desktop:~$ ls -al ~/.local/share/nemo/actions/
total 12
drwxr-xr-x 2 brian brian 4096 Mar 5 13:47 .
drwxr-xr-x 5 brian brian 4096 Aug 28 2022 ..
-rw-rw-rw- 1 brian brian 240 Mar 5 13:47 thunderbird-mailto.nemo_action
brian@brian-desktop:~$
 
Can you share with us the content of

thunderbird-mailto.nemo_action

Cheers
 
brian@brian-desktop:~$ thunderbird-mailto.nemo_action
thunderbird-mailto.nemo_action: command not found
brian@brian-desktop:~$
 
Doh, I mean

cat ~/.local/share/nemo/actions/thunderbird-mailto.nemo_action

silly billy

More coffee
 
brian@brian-desktop:~$ cat ~/.local/share/nemo/actions/thunderbird-mailto.nemo_action
[Nemo Action]
Active=true
Name=Send by Email
Comment=Attach one or several files to Thunderbird message
Exec=thunderbird -compose to=,"attachment='%F'"
Icon-Name=thunderbird
Selection=Any
Extensions=any
Separator=,
Dependencies=thunderbird
brian@brian-desktop:~$
 
Thought so, got to go out for an hour but will whip this off.

It's like a script, so it needs executable permissions.

Currently it reads as

-rw-rw-rw- 1 brian brian 240 Mar 5 13:47 thunderbird-mailto.nemo_action

so you want ti change that with

Code:
sudo chmod +x /home/brian/.local/share/nemo/actions/thunderbird-mailto.nemo_action

That will change those permissions to

-rwxrwxrw- 1 brian brian 240 Mar 5 13:47 thunderbird-mailto.nemo_action

and then try it.

If it fails to work with that, it is because of an upstream package known as

xdg-utils

which comes from Ubuntu, and which was neutered a couple of years ago as it was perceived as a security risk. It affects Cinnamon and MATE but Xfce does not have the functionality to send as email.

You could dial back to an older version of xdg-utils and then apt-mark it to hold at that version if it works, but I have not had time to check on whether having to have a current xdg-utils could affect other packages, so you might be better off pursuing the Nautilus option.

Back when I can.

Chris
 
brian@brian-desktop:~$ sudo chmod +x /home/brian/.local/share/nemo/actions/thunderbird-mailto.nemo_action
[sudo] password for brian:
brian@brian-desktop:~$

No change...still error

Yes, I am aware of xdg-utils

Later !
 
Last edited:
I thought of that page this morning...apparently Clem has his knickers in a twist about it.....and closed the topic.

The 'fixes' there no longer work.

Using Synaptic to 'Force Version' does not help...same result.

I am a bit wary of installing Nautilus.

I did that back in LM21 and I think also in LM20....Nautilus seems to infiltrate every nook and cranny.....to thje point where it becomes a downright pest.
If I could just install a small part to then have the send by email bit....that would be so cool...but.....I am thinking there would be no such luck

It would appear that my next course of action will be throw another dart into Clems pic on the wall, and remove the various actions related to emial and do the whole b thing manually.

Linux Mint....custom convenient tools....the best distro.......good ol Clem is dragging that image through the mud.
 
Last edited:
ok....well....i just have no clue.

Here I was resigned to my fate

i now have three 'send by email' in my right click menu....two with a paper clip symbol and one with a thunderbird symbol

The second of the 'paper clip symbols'...works

it attaches the .epub file to an email and it sends....and receives

However, another .epub does not attach

The difference between them?.....is a .(period) at the end of the title of the book, just before the authors name.

I take out the . and it works

I drag 3 more books to my desktop////they have had the name/descriptions altered to alert the recipients that they are to be read in order....1, 2, 3.
So they have .'s everywhere....me separating the title, read number, author etc...
no.1 will not send
No's 2 & 3 will both send

I studied the properties of No 1...it had a comma at the front of a series of ...periods....I take the comma out and it works

I am not going nuts

I think

So....why the second of the send by works and not the others, I have no idea

The "trick" to keeping the show on the road appears to be the properties of each book....needs to show the title and author without any commas or periods ...just a period in front of the epub file name (.epub)
scrub that....just remove the commas?....who knows ?

All very weird

I am wondering if this somehow related to one of my book sources.

More research.
 
Last edited:
Downloaded a book from my usual source

it worked using the 'middle' send by email

I went to properties, and removed the name of the site (which I usually do....if the recipients start clicking on that site they could end up in all sorts of trouble) ...
and it worked.

Note to self....no commas !

how do I remove the unwanted 'send by email' in the context menu?......I am not game to try. It works...I may just leave it alone
 
For those of you who are riveted to your seats by this enthralling roll-out of events/ongoing drama....

Here are the two inclusions in .local/share/nemo/actions ....which work.
The below is in a text file named...

Send-by-mail.nemo_action

[Nemo Action]
Name=Send by Email
Name[am]=በ ኢሜይል መላኪያ
Name[ar]=إرسال بالبريد الالكتروني
Name[as]=ই-মেইলৰ দ্বাৰা প্রেৰণ কৰক
Name[ast]=Unviar per corréu
Name[az]=Epoçtla göndәr
Name[be]=Даслаць праз email
Name[bg]=Изпращане по имейл
Name[bn]=ইমেল দ্বারা পাঠানো হয়েছে
Name[bs]=Pošalji e-poštom
Name[ca]=Envia per correu electrònic
Name[ca@valencia]=Enviar per correu
Name[cs]=Odeslat e-mailem
Name[cy]=Anfon drwy E-bost
Name[da]=Send med e-mail
Name[de]=Per E-Mail versenden
Name[el]=Αποστολή με email
Name[eo]=Elsendi per retpoŝto
Name[es]=Enviar por correo
Name[et]=Saada e-kirjaga
Name[eu]=Bidali posta bidez
Name[fa]=ارسال از طریق ایمیل
Name[fi]=Lähetä sähköpostilla
Name[fil]=Ipadala sa pamamagitan ng Email
Name[fr]=Envoyer par courriel
Name[fr_CA]=Envoyer par courriel
Name[frp]=Mandar pèr mèssâjo
Name[fy]=Ferstjoere oer Email
Name[gd]=Cuir air a' phost-d
Name[gl]=Enviar por correo-e
Name[he]=שלח בדוא"ל
Name
=Pošalji e-poštom
Name[hu]=Küldés levélben
Name[hy]=Ուղարկել էլ․ փոստով
Name[ia]=Invia per e-posta
Name[id]=Dikirim oleh Email
Name[is]=Senda með tölvupósti
Name[it]=Invia per Email
Name[ja]=電子メールで送信
Name[ka]=ელექტრონული ფოსტით გაგზავნა
Name[kab]=Azen s yimayl
Name[kk]=Электронды пошта арқылы жіберу
Name[ko]=이메일로 보내기
Name[ksw]=sgur kaw ploe email
Name[ku]=Bi Epeyamê bişîne
Name[lb]=Per Email verschécken
Name[lo]=ສົ່ງໂດຍອີເມລ
Name[lt]=Siųsti el. paštu
Name[lv]=Sūtīt pa e-pastu
Name[mg]=Alefa imailaka
Name[mn]=Е-майлээр илгээх
Name[mr]=ईमेल द्वारे पाठवा
Name[ms]=Hantar melalui Emel
Name[my]=အီးမေးလ်ဖြင့် ပေးပို့ပါ
Name[nb]=Send med e-post
Name[nds]=Sende per E-Mail
Name[ne]=इमेल मार्फत पठाउनुहोस्
Name[nl]=Verzenden via e-mail
Name[oc]=Mandar per corrièr electronic
Name[om]=ergaa-e dhaan ergi
Name[pa]=ਈਮੇਲ ਰਾਹੀਂ ਭੇਜੋ
Name[pap]=Manda via Email
Name[pl]=Wyślij e-mailem
Name[pt]=Enviar por correio eletrónico
Name[pt_BR]=Enviar por e-mail
Name[pt_PT]=Enviar por correio eletrónico
Name[ro]=Trimiteți prin email
Name[ru]=Отправить по электронной почте
Name[sc]=Imbia cun s'Email
Name[si]=විද්‍යුත් තැපෑල මගින් යවා ඇත
Name[sk]=Odoslať cez Email
Name[sl]=Pošlji po e-pošti
Name[sq]=Dërgo me Email
Name[sr]=Пошаљи е-поштом
Name[sr@latin]=Пошаљи е-поштом
Name[sv]=Skicka via e-post
Name[sw]=Tuma kwa Barua Pepe
Name[ta]=மின்னஞ்சல் மூலம் அனுப்பு
Name[tg]=Фиристодан тавассути почтаи электронӣ
Name[th]=ส่งทางอีเมล์
Name[tl]=Ipadala sa pamamagitan ng Email
Name[tr]=E-posta ile Gönder
Name[tt]=Электрон почта аша җибәрү
Name[uk]=Надіслати поштою
Name[ur]=ای میل کے ذریعے بھیجئے
Name[uz]=Электрон хат юбориш
Name[vi]=Gửi bằng Điện thư
Name[zh_CN]=通过电子邮件发送
Name[zh_HK]=以電子郵件傳送
Name[zh_TW]=以 email 傳送
Comment=Send as email attachment
Comment[am]=እንደ ኢሜይል ማያያዣመላኪያ
Comment[ar]=إرسال كمرفق للبريد الإلكتروني
Comment[as]=ই-মেইলৰ সংযোজন ৰূপে প্রেৰণ কৰক
Comment[ast]=Unviar como axuntu de corréu
Comment[be]=Даслаць як email-далучэнне
Comment[bg]=Изпращане като прикачен файл по имейл
Comment[bn]=ইমেইল এটাচমেন্ট হিসেবে পাঠানো
Comment[bs]=Pošalji kao prilog e-pošte
Comment[ca]=Envia com a adjunt de correu electrònic
Comment[ca@valencia]=Enviar com adjunt de correu
Comment[cs]=Odeslat jako přílohu e-mailu
Comment[cy]=Anfon fel atodiad e-bost
Comment[da]=Send som vedhæftet fil i en e-mail
Comment[de]=Als E-Mail-Anhang versenden
Comment[el]=Επισύναψη σε email και αποστολή
Comment[eo]=Elsendi per retpoŝta afiŝo
Comment[es]=Enviar como adjunto de correo
Comment[et]=Saada e-kirja manusena
Comment[eu]=Bidali posta-eranskin gisa
Comment[fa]=فرستادن به عنوان پیوست ایمیل
Comment[fi]=Lähetä sähköpostin liitteenä
Comment[fil]=Ipadala bilang isang email attachment
Comment[fr]=Envoyer en tant que fichier joint
Comment[fr_CA]=Envoyer en tant que ficher joint
Comment[frp]=Mandar como pièce juenta
Comment[fy]=Ferstjoere taheakke oan in Email
Comment[gd]=Cuir mar cheanglachan puist-d
Comment[gl]=Enviar como anexo do correo
Comment[he]=שלח כמצורף בדוא"ל
Comment
=Pošalji kao privitak e-pošte
Comment[hu]=Küldés levélmellékletként
Comment[hy]=Ուղարկել ֆայլ էլ․ փոստով
Comment[ia]=Invia per attachamento de e-posta
Comment[id]=Kirim sebagai email attachment
Comment[is]=Senda sem viðhengi í tölvupósti
Comment[it]=Invia come allegato email
Comment[ja]=電子メールに添付して送信
Comment[ka]=გაგზავნა ელექტრონული ფოსტის მიმაგრებული ფაილის სახით
Comment[kab]=Azen am umedday n yimayl
Comment[kk]=Электрондық хатқа салым ретінде жіберу
Comment[ko]=이메일에 첨부해서 보내기
Comment[ksw]=sgur attachment kaw ploe email
Comment[lb]=Als Email-Unhang verschécken
Comment[lo]=ສົ່ງເປັນສິ່ງທີ່ແນບມາກັບອີເມລ
Comment[lt]=Išsiųsti kaip el. laiško priedą
Comment[lv]=Sūtīt kā e-pasta pielikumu
Comment[mg]=Alefa amin'ny mailaka
Comment[mr]=ईमेल अट्टचंमेन्ट म्हणून पाठवा
Comment[ms]=Hantar sebagai lampiran emel
Comment[my]=အီးမေးလ် ဖြင့် တွဲပို့ပါ
Comment[nb]=Send som e-postvedlegg
Comment[nds]=Sende als E-Mail Anhang
Comment[ne]=इमेल सङ्लग्नताको रूपमा पठाउनुहोस्
Comment[nl]=Verzenden als e-mailbijlage
Comment[oc]=Mandar en tant que pèça junta
Comment[om]=Akka walqabsiisa ergaa-e dhaan ergi
Comment[pa]=ਈਮੇਲ ਨਾਲ ਨੱਥੀ ਕਰਕੇ ਭੇਜੋ
Comment[pap]=Manda manera un bijlage di email
Comment[pl]=Wyślij jako załącznik do e-maila
Comment[pt]=Enviar como anexo eletrónico
Comment[pt_BR]=Enviar como anexo de e-mail
Comment[pt_PT]=Enviar como anexo eletrónico
Comment[ro]=Trimiteți ca atașament la email
Comment[ru]=Отправить в качестве вложения к электронному письму
Comment[sc]=Imbia che allongiadu de s'email
Comment[sk]=Odoslať ako prílohu emailu
Comment[sl]=Pošlji kot prilogo k e-pošti
Comment[sq]=Dërgoje si bashkangjitje në email
Comment[sr]=Пошаљи као прилог е-поште
Comment[sr@latin]=Пошаљи као прилог е-поште
Comment[sv]=Skicka som epost-bilaga
Comment[ta]=மின்னஞ்சல் இணைப்பாக அனுப்பு
Comment[tg]=Фиристодан ҳамчун замимаи почтаи электронӣ
Comment[th]=ส่งเป็นสิ่งที่แนบมากับอีเมล
Comment[tl]=Ipadala bilang isang email attachment
Comment[tr]=E-posta eki olarak gönder
Comment[tt]=Электрон хатта салынма буларак җибәрү
Comment[uk]=Надіслати як вкладення електронної пошти
Comment[ur]=ای میل کے ساتھ جوڑ کے بھیجیں
Comment[uz]=Электрон хатга илова сифатида юбориш
Comment[vi]=Gửi dưới dạng đính kèm điện thư
Comment[zh_CN]=作为电子邮件附件发送
Comment[zh_HK]=以電子郵件附件傳送
Comment[zh_TW]=以 email 附加檔案傳送
Quote=double
Exec=<send-by-mail.py %F>
Icon-Name=mail-attachment-symbolic
Selection=NotNone
Extensions=nodirs;
Dependencies=xdg-email
Separator=/#/

AND

send-by-mail.py

#!/usr/bin/python3 -OOt

import argparse
from itertools import chain
from subprocess import call

parser = argparse.ArgumentParser()
parser.add_argument('filelist', help='list of absolute paths separated by /#/')
args = parser.parse_args()

command = ['xdg-email'] + list(chain.from_iterable(('--attach', arg) for arg in args.filelist.split('/#/')))
call(command)



The first text file looks like....and the .py file is beside it....both are in actions
1678311222776.png
 
@KGIII ......this fix was on the page you linked to, which I had contributed to back on February 2, 2021


Thank you for prompting me to go and have another look.
 

Members online


Top