Hi, 2010-06-28 15:55, Jonathan Nieder skrev: > Better to put the logic in xdg-email itself, I think, so it can be > shared across distributions.
Agreed. > Do you know any programs that open up a message in a user-specified > mail user agent? It would be nice to not have to figure this out from > scratch. Most e-mail clients seem to accept the recipient address as an argument, and this is enough for most programs. > To implement 'xdg-email --cc CC --bcc BCC --subject SUBJECT --body TEXT > --attach ATTACHMENT ADDRESS': > > - mutt: > > file=$(mktemp) > echo 'TEXT' >$file > mutt -a ATTACHMENT -b BCC -c CC -H "$file" -s SUBJECT -- ADDRESS Or use "/usr/lib/mutt/mailto-mutt URL". > - thunderbird: > > thunderbird -compose > "to='ADDRESS',cc='CC',bcc='BCC',subject='SUBJECT',"\ > "body='TEXT',attachment='ATTACHMENT'" Or simply "thunderbird URL". > > - gnus with mailto-url-gnus[2]: > > emacsclient -a "" -n -c -e "(mailto-url-gnus \"$url\" t t)" > > - kmail: > > I have no idea. > > As you can see, I suspect would require some kind of per-package > registration to be usable. Grasping at straws, I suggest maybe a > field in the .desktop file. Is there prior art for this? Is there a > relevant mailng list? As I said, I think workarounds should go into the xdg-email script. E-mail clients wishing to avoid workarounds can always learn to accept mailto: URLs as arguments. -- Pelle -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

