We have moved to a new Sailfish OS Forum. Please start new discussions there.
2

Mail to self with one button or string in terminal [answered]

asked 2018-06-06 10:04:13 +0300

ds1979 gravatar image

Hello dear Sailors!

After I have become a big fan of Taskwarrior and after the Android app has some trouble with the new DB structure, I still want to use my Jolla 1 as collection device for ideas, because I always have it with me. Actually, I am using the e-mail client to send mails to myself with a subject that contains the idea.

How would I do this with one command in terminal or even better with one tap on an icon? I have searched Jolla Store and Storeman without success.

Thank you very much in advance!

Cheers Dejan

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by Spam Hunter
close date 2018-06-20 18:11:14.415836

5 Answers

Sort by » oldest newest most voted
5

answered 2018-06-20 16:25:08 +0300

ds1979 gravatar image

updated 2019-07-18 18:50:49 +0300

Okay, I have got this together:

Three steps:

First a script:

#!/bin/sh
xdg-open "mailto:d@s.de?subject=TW:"

I have downloaded a little mail-icon file from the internet.

Then a .desktop file:

[Desktop Entry]
Type=Application
Name=NoteToSelf 
Icon=/home/nemo/mail_appt.png
Exec=xdg-open "mailto:d@s.de?subject=TW:"
X-Desktop-File-Install-Version=0.20

Save this file to /home/nemo/.local/share/applications and you are done!

Thank you everybody for giving me the pieces to this puzzle!

Cheers Dejan

edit flag offensive delete publish link more

Comments

If someone interesting, I can create a small app similar to Bomb SMS or Fastdial icon 2 for creating icons on the desktop for specific contacts...

Schturman ( 2018-06-21 12:32:49 +0300 )edit

Hi Schturman! This is a nice idea! I have already found my way to do this "manually", but with copy and paste, this can be a little easier in the future. Perhaps someone else could need this.

ds1979 ( 2018-06-21 12:58:57 +0300 )edit

Ok... What you think is better for this ? with contact image like in Fastdial icon 2 or with static image like in Bomb SMS ?

Schturman ( 2018-06-21 13:10:23 +0300 )edit

My honest opinion is, that a contact image would be the nicer solution, but still if someone does not have an image, a static icon is needed.

ds1979 ( 2018-06-21 13:23:56 +0300 )edit

Ok, will see what I can do...

Schturman ( 2018-06-21 13:27:00 +0300 )edit
4

answered 2018-06-20 15:38:30 +0300

updated 2018-06-20 15:47:25 +0300

I'm not sure about starting from a launcher icon, but from within terminal, you can do the following (tried and tested on Jolla1 and it works);

xdg-open "mailto:fred@bloggs.com?subject=My idea"

this opens a new email with recipient inserted. Perhaps with a little bit of modification, this could be started from an icon on launcher, for now, I do not know how this might be done.

Hope this helps...

edit flag offensive delete publish link more

Comments

you could also make it a quick action like is explained in this question

rgrnetalk ( 2018-06-20 15:48:45 +0300 )edit

possibly not as there is no dbus-interface for jolla-email, but I will look, thanks for the link!

I've been playing, but so far no result, I'm certain there are no methods for dbus with jolla-email, but I will keep looking :)

MapRemovals ( 2018-06-20 15:49:54 +0300 )edit
1

answered 2018-06-06 14:56:30 +0300

naytsyrhc gravatar image

You could use the Note app provided by Jolla and use the "Share to Email" option from pulley menu of the note. Or you could use the sendmail package from NielDK's repository on openrepos and write some bash script to accomplish your task.

edit flag offensive delete publish link more

Comments

And you can add a desktop icon by following these "instructions".

naytsyrhc ( 2018-06-06 15:07:21 +0300 )edit

I can start the e-mail app in terminal. Can't I input some e-mail address to open it up with the address input and that's it?

ds1979 ( 2018-06-12 11:02:14 +0300 )edit

As far as I can see you have only two command line options "-desktop" and "-prestart". But "-prestart" option means, that mail app is started in background and waits for commands via dbus. So it's probably possible to send a dbus command to mail app in order to send an email or prepare a mail. But I don't know where to find the documentation for those dbus commands (if available that is).

naytsyrhc ( 2018-06-12 11:12:54 +0300 )edit
0

answered 2018-06-19 17:48:32 +0300

qeef gravatar image

updated 2018-06-19 18:03:37 +0300

I used this https://gitlab.com/qeef/harbour-writemail before the last update. I will try to figure out why not working after update, hopefully on weekend.

Plan is to release harbour-writemail at https://openrepos.net/ at least.

I have set it as the first shortcut of Lock screen.

edit flag offensive delete publish link more

Comments

I cannot open the gitlab page, it asks me for an account. Because I am not a real user of gitlab, I don't want to share my credentials. Any hint where I can download it and try it out?

ds1979 ( 2018-06-20 11:55:36 +0300 )edit

Definitely my fault, sorry for that. When importing from github, project went private (don't know why). Should be fixed now.

qeef ( 2018-06-20 16:37:52 +0300 )edit
0

answered 2018-06-20 08:30:57 +0300

rgrnetalk gravatar image

Here some info on the dbus command.

edit flag offensive delete publish link more

Comments

The commands are really only suited to Nokia's N900. While some may work with extensive rewriting, the 'new mail' command certainly does not work with Jolla, not even by changing the dbus addresses.

MapRemovals ( 2018-06-20 11:51:34 +0300 )edit

Ye I can confirm that the Nokia dbus-commands don't work on the Jolla1.

ds1979 ( 2018-06-20 11:53:33 +0300 )edit

ok, would be nice to have a set of dbus commans that work on sailfish os (not only jolla 1) with all harbour reatrictions (still) in place ( ;') )

rgrnetalk ( 2018-06-20 14:03:08 +0300 )edit

Question tools

Follow
4 followers

Stats

Asked: 2018-06-06 10:04:13 +0300

Seen: 807 times

Last updated: Jul 18 '19