On Sunday, 18 January 2015 11:19:34 CEST, Dimitrios Glentadakis wrote:
Very nice, after installing the latest git version the composer window can be opened with arguments for mailto protocol.
I tested it here:
http://www.addressmunger.com/mailto_syntax_tutorial/
and all examples works in trojita, bravo!
Good to hear that people are using this already. Thanks to Pali for the 
patch.
I'd like to ask if there is any argument also implemented to add an attachment ? (i thought an eg: right click on a file and send by mail)
I read that it isn't supported by mailto protocol.
If someone is going to implement this, please keep in mind possible 
security implications (a script calling this function might not have access 
to a possibly sensitive file, while Trojita typically does). Having access 
to the D-Bus session bus IMHO does not imply read access to user's files 
(think selinux).
I see a few options:

- Only support attaching a single file, and open file picker which defaults to that file, but requires a user's OK.
- Open the composer with a passive notification bar within the window, and 
require user's OK in there to confirm attaching the files.
- An ugly interactive dialog.

What do you think?

Oh, and disallow setting arbitrary file name through this API (i.e. make sure that what the user sees in the composer includes the real file name).
Cheers,
Jan

--
Trojitá, a fast Qt IMAP e-mail client -- http://trojita.flaska.net/

Reply via email to