Bug 65623 - Incorrect signature (wrong encoding) when composer is launched from the "Print to PDF attachment" feature and the KMail main window is not opened.
Summary: Incorrect signature (wrong encoding) when composer is launched from the "Prin...
Status: CLOSED FIXED
Alias: None
Product: kdeprint
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KDEPrint Devel Mailinglist
URL:
Keywords:
: 102703 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-10-06 21:46 UTC by Olivier Fisette
Modified: 2008-12-31 13:18 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Fisette 2003-10-06 21:46:54 UTC
Version:            (using KDE KDE 3.1.4)
Installed from:    Gentoo Packages
Compiler:          GNU Make 3.80 
OS:          Linux

I have KMail configured to use the content of a Unicode text file as my signature. My locale is set to use the Unicode encoding.

When I start KMail and create a new message, my signature file is correctly loaded. When KMail is running and I print a file (from a KDE application) to a PDF attachment, my signature is correctly loaded in the new composer window. However, if KMail IS NOT running when I print a file to a PDF attachment, the signature gets imported as an iso 8859-1 text file (rather than Unicode), and the configuration dialog incorrectly reports that iso 8859-1 is my locale. (When the composer is run from the main KMail window or from a link in an HTML page (wheter or not KMail is running), it correctly reports Unicode as my locale).
Comment 1 Marc Mutz 2003-10-07 00:55:54 UTC
Looks like kdeprint starts KMail in some non-standard way and should have a look at Konq? 
Comment 2 Stephan Kulow 2003-10-07 11:30:45 UTC
Marc: you need to reassign the bug owner too if you change the product 
Comment 3 Michael Goffioul 2003-10-07 11:43:09 UTC
Subject: Re:  Incorrect signature (wrong encoding) when composer
 is launched from the "Print to PDF attachment" feature and the KMail main
 window is not opened.

KMail is called using the following command:

kmail --composer --attach file:/path/to/file.pdf
(see kdelibs/kdeprint/specials.desktop)

Could you tell me how to call it then?

Comment 4 Marc Mutz 2003-10-07 14:15:29 UTC
Subject: Re:  Incorrect signature (wrong encoding) when composer is launched from the "Print to PDF attachment" feature and the KMail main window is not opened.

On Tuesday 07 October 2003 11:42, Michael Goffioul wrote:
> Could you tell me how to call it then?

Have a look at how Konq does it. I'd expect it to use kapp->invokeMailer
() or else call it through kmailservice...

Marc

Comment 5 Michael Goffioul 2003-10-07 14:41:50 UTC
Subject: Re:  Incorrect signature (wrong encoding) when composer
 is launched from the "Print to PDF attachment" feature and the KMail main
 window is not opened.

>>Could you tell me how to call it then?
> 
> 
> Have a look at how Konq does it.  I'd expect it to use kapp->invokeMailer()

KDEPrint calls it from a script, you cannot rely on kapp.

> or else call it through kmailservice...

As far as I can tell from kapplication.cpp, invokeMailer() (used
by kmailservice) doesn't support attachment specification (code is
commented out).

Comment 6 Cristian Tibirna 2005-08-22 22:10:50 UTC
UNCONFIRMED (batch reassigning messed this)
Comment 7 Cristian Tibirna 2005-09-24 04:58:02 UTC
SVN commit 463433 by tibirna:

kmailservice is to be preferred
BUG:65623


 M  +1 -1      specials.desktop  


--- branches/KDE/3.5/kdelibs/kdeprint/specials.desktop #463432:463433
@@ -692,7 +692,7 @@
 Require=exec:/kdeprintfax
 
 [Printer 3]
-Command=ps2pdf -sPAPERSIZE=%psl %in %out && kmail --composer --attach file:%out && sleep 15 && rm -f %out
+Command=ps2pdf -sPAPERSIZE=%psl %in %out && kmailservice 'mailto:?attachment=file:%out' && sleep 15 && rm -f %out
 Comment=Attachment for KMail Composer
 Comment[af]=Aanhegsel vir Kpos Saamsteller
 Comment[ar]=مرفقات كاتب KMail
Comment 8 Cristian Tibirna 2005-09-24 07:29:47 UTC
*** Bug 102703 has been marked as a duplicate of this bug. ***
Comment 9 John Layt 2008-12-31 13:18:46 UTC
Closing old Resolved status bug.