Bug 159979 - Problem with incoming run parameters in kmail
Summary: Problem with incoming run parameters in kmail
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Mandriva RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-27 22:45 UTC by Nicolas L.
Modified: 2008-03-31 00:47 UTC (History)
0 users

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 Nicolas L. 2008-03-27 22:45:15 UTC
Version:            (using KDE 3.5.9)
Installed from:    Mandriva RPMs

Mandriva bugreport : https://qa.mandriva.com/show_bug.cgi?id=35118

Description of problem:
Hello. I use KDE and kmail. I saw 3 days later that e-mail messages file after
click don't open (view) in kmail from konqueror and Kerry Beagle. I try add
associate with kmail this email files in $HOME/.Mail folder by hand. I saw
programs like kmail and for example kwrite don't accept input parameters with
'-' and '--' character when I try associate file with program. Kmail require
--view parameter to view message from file. Kmail don't recognize this
parameter and attach file instead of view (default action without -/--
parameters). When I try open the same command in konsole - it's work properly.
Example in kde: kmail --view %f. Example in konsole: kmail --view
/media/NOVELL/11111-message. I checked kwrite and firefox. Kwrite don't
recognize --line option form KDE but recognize from konsole. Example kwrite
--line 10 /media/NOVELL/11111-message.
I checked also firefox. When I open file 11111-message in firefox with
-jsconsole. This parameter work properly (java console appear) from konsole and
KDE: firefox -jsconsole /media/NOVELL/11111-message. I think problem is in kde
programs. In order to prove this thesis I wrote short script in bash:
#!/bin/bash
echo Parameters: $@ >> $HOME/parameters.txt
# Writed Output: --view /media/NOVELL/11111-wiadomosc
kmail --view $@ # Kmail work properly from this command
---------
This script show that all input parameters are gived to program to all ran
programs but kde programs don't recognize parameters with '-' and '--'. Most
important to notice is that script after get input parameter can run all kde
programs properly.

Version-Release number of selected component (if applicable):
kwrite 4.5.7 - kde 3.5.7
kmail 1.9.7 - kde 3.5.7
I have installed all updates to Mandriva 2008 x86_64 from MainUpdetes,
Main32Updates, ContribUpdates, NonFreeUpdates and Main, Contrib today.

How reproducible:
After open email file from $HOME/.Mail I don't see preview but i see new
message with attachment.


Steps to Reproduce:
1. Change directory $HOME/.Mail and find file with e-mail message.
2. Try open file. When it ask for program try print kmail --view %f
3. You should see body of opened message, but you see new massage with attached
file - file what you want see
4. the end.
Comment 1 Thomas McGuire 2008-03-31 00:47:16 UTC
Works fine here with openSuse, which uses kmail --view %u.
Running KMail from command line for viewing a message also works fine.