Bug 59490 - JJ: "Use different email client" to be "run in terminal" doesn't respect "use different terminal program" setting
Summary: JJ: "Use different email client" to be "run in terminal" doesn't respect "use...
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-07 23:19 UTC by cb-kde
Modified: 2004-07-17 20:45 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cb-kde 2003-06-07 23:19:53 UTC
Version:           Recent KDE_3_1_BRANCH CVS (using KDE KDE 3.1.2)
Installed from:    Compiled From Sources
Compiler:          gcc 3.3 debian package version: 1:3.3-3
OS:          Linux

This goes on a bit. There's quite a few bugs here, please advise which need to be re-filed under another component. I've *'d the single sentences which state what the bug is.

I decided that since I use mutt as my primary mail client I would configure KDE to use mutt to send emails.

I started by looking for the option in kcontrol. I found Network->Email which looked like a possible place for this option, but it's not there. I found it under the KDE component chooser.
* Perhaps a "click here to select your default mail client" would help here.

I then entered the following command in the "use a different email client" writable field: mutt %t -s %s -c %c -b %b -a %A. (This would have been harder if I did not know about the What is this help menu entry). And I also ticked the Run in terminal box. This didn't work. A little experimentation revealed that mutt does not like the -a (attach file) switch with no filename, so I removed that temporarily. Now, I could get mutt to come up inside a Konsole window, but I have selected xterm as my default terminal.
* My prefered terminal emulator setting (xterm -fn fixed -sl 1024 -sb) is being ignored by the email "run in terminal" setting.

My next approach was to build the terminal emulator setting into the email command, so I tried:
xterm -fn fixed +sb -e 'mutt %t -s %s -c %c -b %b'

However, this fails, apparently due to 'mutt not being found
* apparently shell quoting is not understood by this dialogue???

Finally, I wrote a perl script which parses the arguments and invokes mutt correctly. This is way too hard. I think that the user should not have to enter any command lines at all, instead there should be a dialogue which requests:
. the name of their email client executable (eg mutt)
. the switches required to specify the recipient/subject etc
and also provides a list of known configurations for common email clients
Comment 1 Stephan Binner 2004-07-16 11:10:03 UTC
I don't think that placeholder support as noted in the TODO must be added, just assume that "-e fooapp" exists for all terminals.
Comment 2 Stephan Binner 2004-07-17 20:45:11 UTC
*** Bug has been marked as fixed ***.