Bug 249959 - Signing emails with OpenPGP hangs Kmail-mobile
Summary: Signing emails with OpenPGP hangs Kmail-mobile
Status: RESOLVED UNMAINTAINED
Alias: None
Product: KMail Mobile
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-03 01:45 UTC by Sabine Faure
Modified: 2018-09-04 20:08 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Kmail-mobile hanging while the user tries to send a sign message (206.21 KB, image/png)
2010-09-08 18:28 UTC, Sabine Faure
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sabine Faure 2010-09-03 01:45:24 UTC
Version:           unspecified (using Devel) 
OS:                Linux

Signing an email and sending it to a signature known recipient hangs Kmail-mobile.


Reproducible: Always

Steps to Reproduce:
Prerequisite: set up an OpenPGP signature for the user and the recipient

- Launch Kmail-mobile
- Click on 'Write New email'
- Enter a subject and a few words in the Composer text editor
- Open the 'Recipients' tab and enter the recipient's email
- Open the 'Actions' tab and click on 'Sign'
- Click on 'Send'

Actual Results:  
Kmail hangs indefinitely and two error messages appear in a yellow background.

Here is what I get in the terminal after I click on 'send':
kmail-mobile(11655) ComposerView::send:
kmail-mobile(11655) Message::ComposerViewBase::send: Plain text
kmail-mobile(11655) Message::ComposerViewBase::readyForSending: Entering readyForSending
void Nepomuk::Search::QueryServiceClient::close() 
void Nepomuk::Search::QueryServiceClient::close() 
void Nepomuk::Search::QueryServiceClient::close() 
void Nepomuk::Search::QueryServiceClient::close() 
kmail-mobile(11655) Message::ComposerViewBase::generateCryptoMessages: filling crypto info
kmail-mobile(11655) Kleo::KeyResolver::lookup: ( " "29BCD9DFD0931485794B5109FAD230F76BADBFA6", "08AB4539D2B8B72D80478669EEF12F1803458739" ", true )
"KConfigIni: In file /opt/maemo/usr/share/kde4/config/libkleopatrarc, line 42: " Invalid entry (missing '=') 
kmail-mobile(11655) Kleo::KeyResolver::lookup:  returned 2 keys
kmail-mobile(11655) Kleo::KeyResolver::checkKeyNearExpiry: Key 0x 03458739 expires in less than 626 days
kmail-mobile(11655) Kleo::KeyResolver::lookup: ( " "0CBB157CBE5ACD8F343DBA0AEAE22FA0BD659BB2" ", false )
kmail-mobile(11655) Kleo::KeyResolver::lookup:  returned 1 keys
kmail-mobile(11655) Kleo::KeyResolver::checkKeyNearExpiry: Key 0x BD659BB2 expires in less than 1019 days
kmail-mobile(11655) Kleo::KeyResolver::lookup: ( " "A6935DD34EF3087973C706FC311AA2CCF733765B" ", false )
kmail-mobile(11655) Kleo::KeyResolver::lookup:  returned 1 keys
kmail-mobile(11655) Kleo::KeyResolver::checkKeyNearExpiry: Key 0x F733765B expires in less than 1029 days
void Nepomuk::Search::QueryServiceClient::close() 
kmail-mobile(11655) Message::ComposerViewBase::generateCryptoMessages: done resolving keys:
kmail-mobile(11655) Message::Util::selectCharset: Chosen charset "utf-8"
kmail-mobile(11655) Message::MainTextJobPrivate::encodeTexts: Done.
kmail-mobile(11655) Message::MainTextJob::doStart: Making text/plain
kmail-mobile(11655) Message::ContentJobBasePrivate::doNextSubjob: Calling process.
kmail-mobile(11655) Message::SinglepartJobPrivate::chooseCTE: Settled on encoding "7bit"
kmail-mobile(11655) Message::ContentJobBase::slotResult: A subjob finished. 0 more to go.
kmail-mobile(11655) Message::ContentJobBasePrivate::doNextSubjob: Calling process.
kmail-mobile(11655) Message::ContentJobBasePrivate::doNextSubjob: Calling process.
kmail-mobile(11655) Message::SignJob::process: creating signJob from: "OpenPGP" "gpg"
kmail-mobile(11655) Message::SignJob::process: signing content before LFtoCRLF: "Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="utf-8"

testing openpgp signing on n900 "
kmail-mobile(11655) Message::SignJob::process: signing content: "Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="utf-8"

testing openpgp signing on n900 "
kmail-mobile(11655) Message::SignJob::process: signing failed: Bad passphrase
kmail-mobile(11655) Message::Util::composeHeadersAndBody: making MIME message, format: 2
kmail-mobile(11655) Message::Util::composeHeadersAndBody: processed header: "Content-Type: multipart/signed; boundary="nextPart4289891.2IPixoubrR"; micalg="pgp-"; protocol="application/pgp-signature"
Content-Transfer-Encoding: 7Bit
"
kmail-mobile(11655) Message::ComposerViewBase::slotSendComposeResult: compose job might have error error 11 errorString "Bad passphrase"
kmail-mobile(11655) Message::ComposerViewBase::slotSendComposeResult: other Error.
kmail-mobile(11655) Message::ComposerViewBase::slotSendComposeResult: compose job might have error error 11 errorString "Bad passphrase"
kmail-mobile(11655) Message::ComposerViewBase::slotSendComposeResult: other Error.
kmail-mobile(11655) Message::ComposerViewBase::slotEmailAddressResolved: Started a composer for sending!
kmail-mobile(11655) Message::ComposerViewBase::autoSaveMessage: Autosaving message
kmail-mobile(11655) Message::Util::selectCharset: Chosen charset "utf-8"
kmail-mobile(11655) Message::MainTextJobPrivate::encodeTexts: Done.
kmail-mobile(11655) Message::MainTextJob::doStart: Making text/plain
kmail-mobile(11655) Message::ContentJobBasePrivate::doNextSubjob: Calling process.
kmail-mobile(11655) Message::SinglepartJobPrivate::chooseCTE: Settled on encoding "7bit"
kmail-mobile(11655) Message::ContentJobBase::slotResult: A subjob finished. 0 more to go.
kmail-mobile(11655) Message::ContentJobBasePrivate::doNextSubjob: Calling process.
kmail-mobile(11655) Message::ComposerPrivate::contentJobFinished: composing final message
kmail-mobile(11655) Message::ComposerViewBase::writeAutoSaveToDisk: Writing message to disk as "/home/user/.kde/share/apps/kmail2/autosave/{cb8840a3-f1a4-41b2-8a35-c5933a132d85}"
kmail-mobile(11655) Message::ComposerViewBase::autoSaveMessage: Autosaving message
kmail-mobile(11655) Message::Util::selectCharset: Chosen charset "utf-8"
kmail-mobile(11655) Message::MainTextJobPrivate::encodeTexts: Done.
kmail-mobile(11655) Message::MainTextJob::doStart: Making text/plain
kmail-mobile(11655) Message::ContentJobBasePrivate::doNextSubjob: Calling process.
kmail-mobile(11655) Message::SinglepartJobPrivate::chooseCTE: Settled on encoding "7bit"
kmail-mobile(11655) Message::ContentJobBase::slotResult: A subjob finished. 0 more to go.
kmail-mobile(11655) Message::ContentJobBasePrivate::doNextSubjob: Calling process.
kmail-mobile(11655) Message::ComposerPrivate::contentJobFinished: composing final message
kmail-mobile(11655) Message::ComposerViewBase::writeAutoSaveToDisk: Writing message to disk as "/home/user/.kde/share/apps/kmail2/autosave/{cb8840a3-f1a4-41b2-8a35-c5933a132d85}"
kmail-mobile(11655) Message::ComposerViewBase::autoSaveMessage: Autosaving message
kmail-mobile(11655) Message::Util::selectCharset: Chosen charset "utf-8"
kmail-mobile(11655) Message::MainTextJobPrivate::encodeTexts: Done.
kmail-mobile(11655) Message::MainTextJob::doStart: Making text/plain
kmail-mobile(11655) Message::ContentJobBasePrivate::doNextSubjob: Calling process.
kmail-mobile(11655) Message::SinglepartJobPrivate::chooseCTE: Settled on encoding "7bit"
kmail-mobile(11655) Message::ContentJobBase::slotResult: A subjob finished. 0 more to go.
kmail-mobile(11655) Message::ContentJobBasePrivate::doNextSubjob: Calling process.
kmail-mobile(11655) Message::ComposerPrivate::contentJobFinished: composing final message
kmail-mobile(11655) Message::ComposerViewBase::writeAutoSaveToDisk: Writing message to disk as "/home/user/.kde/share/apps/kmail2/autosave/{cb8840a3-f1a4-41b2-8a35-c5933a132d85}"
kmail-mobile(11655) Message::ComposerViewBase::autoSaveMessage: Autosaving message
kmail-mobile(11655) Message::Util::selectCharset: Chosen charset "utf-8"
kmail-mobile(11655) Message::MainTextJobPrivate::encodeTexts: Done.
kmail-mobile(11655) Message::MainTextJob::doStart: Making text/plain
kmail-mobile(11655) Message::ContentJobBasePrivate::doNextSubjob: Calling process.
kmail-mobile(11655) Message::SinglepartJobPrivate::chooseCTE: Settled on encoding "7bit"
kmail-mobile(11655) Message::ContentJobBase::slotResult: A subjob finished. 0 more to go.
kmail-mobile(11655) Message::ContentJobBasePrivate::doNextSubjob: Calling process.
kmail-mobile(11655) Message::ComposerPrivate::contentJobFinished: composing final message
kmail-mobile(11655) Message::ComposerViewBase::writeAutoSaveToDisk: Writing message to disk as "/home/user/.kde/share/apps/kmail2/autosave/{cb8840a3-f1a4-41b2-8a35-c5933a132d85}"
kmail-mobile(11655) Message::ComposerViewBase::autoSaveMessage: Autosaving message
kmail-mobile(11655) Message::Util::selectCharset: Chosen charset "utf-8"
kmail-mobile(11655) Message::MainTextJobPrivate::encodeTexts: Done.
kmail-mobile(11655) Message::MainTextJob::doStart: Making text/plain
kmail-mobile(11655) Message::ContentJobBasePrivate::doNextSubjob: Calling process.
kmail-mobile(11655) Message::SinglepartJobPrivate::chooseCTE: Settled on encoding "7bit"
kmail-mobile(11655) Message::ContentJobBase::slotResult: A subjob finished. 0 more to go.
kmail-mobile(11655) Message::ContentJobBasePrivate::doNextSubjob: Calling process.
kmail-mobile(11655) Message::ComposerPrivate::contentJobFinished: composing final message
kmail-mobile(11655) Message::ComposerViewBase::writeAutoSaveToDisk: Writing message to disk as "/home/user/.kde/share/apps/kmail2/autosave/{cb8840a3-f1a4-41b2-8a35-c5933a132d85}"


Expected Results:  
The email should be properly sent and signed

I did manage to send from the n900 and receive the signed email once but when I opened it from another computer it was not signed at all.

Also, I was never asked to enter my password for the signature to be valid as it is the case in the desktop version.

atm the only way to stop kmail-mobile from hanging is to stop it from a terminal.

N900, 4:4.5~20100902.1171086-1maemo1.1170522
Comment 1 Sabine Faure 2010-09-08 18:28:55 UTC
Created attachment 51434 [details]
Kmail-mobile hanging while the user tries to send a sign message

I retested this bug today and I can still reproduce it.

N900, 4:4.5~20100906.1172093-1maemo1.1171830
Comment 2 Sabine Faure 2010-09-08 18:31:34 UTC
I managed to get the whole error message: 'Error while trying to send email. Could not compose message: No pinentry'

N900, 4:4.5~20100906.1172093-1maemo1.1171830
Comment 3 David Faure 2010-11-25 22:48:57 UTC
I discovered that ~/.gnupg/gpg-agent.conf said
pinentry-program /usr/bin/pinentry-qt4
(copied from a kubuntu machine)
but on the n900 it's /usr/bin/pinentry. Configuration changed, but we can't retest this just yet, due to another problem (can't select the gpg key for signing anymore).
Comment 4 Bjoern Ricks 2010-11-26 09:46:44 UTC
Normally your distribution should always use /usr/bin/pinentry (should be also the default) and create a symlink to the correct pinentry version. For maemo it's pinentry-qt and NOT pinentry-qt4.

Nokia-N900:~# ls -la /usr/bin/pinentry
lrwxrwxrwx    1 root     root           11 Nov  1 12:30 /usr/bin/pinentry -> pinentry-qt
Comment 5 Tobias Koenig 2010-12-28 17:02:48 UTC
Hej,

any news on this issue? Still reproducible?

Ciao,
Tobias
Comment 6 Sabine Faure 2011-01-05 23:43:14 UTC
Hi Tobias! (and Happy New year!!!) ;o)

I tried retesting this bug but unfortunately configuring my OpenPGP signing key does not work because of bug #257924.

I'll retest this once that bug is corrected.


N900,4:4.6~.20110105.0808.gitba42ec9-1maemo1.121147
Comment 7 Andrew Crouthamel 2018-09-04 20:08:31 UTC
Hello! Sorry to be the bearer of bad news, but this project has been unmaintained for many years so I will be closing this bug.