Summary: | xdg-email could support MAILER environment variable | ||
---|---|---|---|
Product: | Portland | Reporter: | gsr.bugs <gsr.bugs> |
Component: | xdg-utils | Assignee: | Portland Bugs <portland-bugs> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | enhancement | ||
Priority: | high | CC: | pelle |
Version: | unspecified | Keywords: | patch |
Hardware: | Other | ||
OS: | other | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
xdg-email-envvar.diff
xdg-email-mutt-detect.diff mailer-envvar.patch |
Description
gsr.bugs
2006-04-16 05:51:07 UTC
Will require some heuristics to map executable names to command line options. Is $MAILER used by anyone today? I'm a bit worried that $MAILER my interfere with historical uses of the same. (E.g. it could point to a command line mailer like mutt or something) See also: http://swtch.com/plan9port/man/man1/web.html http://www.opengroup.org/onlinepubs/007908799/xbd/envvar.html http://www.mkssoftware.com/docs/man1/calendar.1.asp It might be worth introducing $XDG_MAILER, trying to configure KDE to use evolution as default mailer for example seems pretty much impossible for mortals: you have to enter "gnome-open %u" in the Email Client Component Chooser The other option is to document these montrocities Started a page on how to configure your favourite mail composer: http://portland.freedesktop.org/wiki/EmailConfig Created attachment 42006 [details] [review] xdg-email-envvar.diff Created attachment 42007 [details] [review] xdg-email-mutt-detect.diff I've added two patches for this. The first one adds support for the $MAILER variable to xdg-email. The second patch also adds some magic which makes xdg-email use mutt if (1) no other MUA is available and (2) the user has a ~/.muttrc. This only works on Debian and derivs though. Can you add the patches anytime soon? This bug is open for over 5 years, and castrates use of alternative DE/Window Manager combinations patch1 looks acceptable, I can look into integrating that. patch2 I would rather not start including code to detect/guess any specific mailers as a fallback. Two years later; any progress on this? (In reply to Rex Dieter from comment #8) > patch2 I would rather not start including code to detect/guess any specific > mailers as a fallback. Well, you already have special code for Thunderbird now. Created attachment 118368 [details] [review] mailer-envvar.patch It turns out that automatic detection of Mutt was not such a good idea. Let's skip that. I have attached a new version of the patch that applies cleanly to the git repo. Or you can just: git pull git://anonscm.debian.org/git/collab-maint/xdg-utils.git feature/mailer-envvar Fixed in git |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.