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
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
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
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).
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
Hej, any news on this issue? Still reproducible? Ciao, Tobias
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
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.