Merge lp:~charno/ubuntu/quantal/kdepim/fix-for-1075130 into lp:ubuntu/quantal/kdepim

Proposed by Christof Arnosti on 2012-11-05
Status: Work in progress
Proposed branch: lp:~charno/ubuntu/quantal/kdepim/fix-for-1075130
Merge into: lp:ubuntu/quantal/kdepim
Diff against target: 87 lines (+67/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/fix_gpg_warnings_in_composer.patch (+59/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~charno/ubuntu/quantal/kdepim/fix-for-1075130
Reviewer Review Type Date Requested Status
Sebastien Bacher Needs Fixing on 2012-11-30
Ubuntu branches 2012-11-05 Pending
Review via email: mp+132930@code.launchpad.net

Description of the Change

- Fix for 1075130 (Upstream bug - patch also sent to kdepim upstream developers)

To post a comment you must log in.
Sebastien Bacher (seb128) wrote :

Thank you for your work, do you have a reference to the upstream bug (or how did you send it to the developers)?

Christof Arnosti (charno) wrote :

Hi,

I sent the patch via mailing list, therfore there isn't a kde bug.

In the meantime, Laurent Montel (from kde-pim mailing list) decided to forward-port the feature from kdemail1 to kdemail2, so it's implemented differently in the actual upstream. You can view the change at http://quickgit.kde.org/index.php?p=kdepim.git&a=commit&h=7f70328e652140c4d77235cfc78a8ba07dfba824

Since in the meantime I use a self-compiled kdepim, the bug does not anymore apply to me. But to fix it, I think that we could use either of the fixes (mine is a bit less sophisticated, but does generally do the work), and - when using the new upstream-version - remove the patch.

Best
Christof

Sebastien Bacher (seb128) wrote :

Thanks, do you know what version will include the patch?

Setting to work in progress, the merge request should be updated for at least targetting raring and to use the upstream version of the fix if possible

review: Needs Fixing

Unmerged revisions

210. By Christof Arnosti <email address hidden> on 2012-11-05

debian/patches/fix_gpg_warnings_in_composer.patch: implemented warning on
unencrypted / unsigned email in kmcomposer.cpp (LP: #1075130)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2012-10-05 01:11:19 +0000
3+++ debian/changelog 2012-11-05 17:16:19 +0000
4@@ -1,3 +1,10 @@
5+kdepim (4:4.9.2-0ubuntu4) UNRELEASED; urgency=low
6+
7+ * debian/patches/fix_gpg_warnings_in_composer.patch: implemented warning on
8+ unencrypted / unsigned email in kmcomposer.cpp (LP: #1075130)
9+
10+ -- Christof Arnosti <charno@charno.ch> Mon, 05 Nov 2012 18:08:29 +0100
11+
12 kdepim (4:4.9.2-0ubuntu2) quantal; urgency=low
13
14 * Rebuild to get missing binaries that were lost due to being copied from
15
16=== added file 'debian/patches/fix_gpg_warnings_in_composer.patch'
17--- debian/patches/fix_gpg_warnings_in_composer.patch 1970-01-01 00:00:00 +0000
18+++ debian/patches/fix_gpg_warnings_in_composer.patch 2012-11-05 17:16:19 +0000
19@@ -0,0 +1,59 @@
20+## Description: add some description
21+## Origin/Author: add some origin or author
22+## Bug: bug URL
23+Index: kdepim.dev/kmail/kmcomposewin.cpp
24+===================================================================
25+--- kdepim.dev.orig/kmail/kmcomposewin.cpp 2012-11-05 14:21:19.756828000 +0100
26++++ kdepim.dev/kmail/kmcomposewin.cpp 2012-11-05 14:25:32.022750153 +0100
27+@@ -2780,6 +2780,42 @@
28+ if ( !checkRecipientNumber() )
29+ return;
30+
31++
32++ if ( MessageComposer::MessageComposerSettings::self()->cryptoWarningUnencrypted() && MessageComposer::MessageComposerSettings::self()->cryptoWarningUnsigned() && !mSignAction->isChecked() && !mEncryptAction->isChecked()) {
33++ int rc = KMessageBox::warningYesNo( mMainWidget,
34++ i18n("About to send unsigned and unencrypted email..."),
35++ i18n("Unsigned and unencrypted email Confirmation"),
36++ KGuiItem( i18n("&Send") ),
37++ KGuiItem( i18n("&Cancel") ) );
38++ if ( rc == KMessageBox::No ) {
39++ return;
40++ }
41++ }
42++ else {
43++
44++ if ( MessageComposer::MessageComposerSettings::self()->cryptoWarningUnencrypted() && !mEncryptAction->isChecked()) {
45++ int rc = KMessageBox::warningYesNo( mMainWidget,
46++ i18n("About to send unencrypted email..."),
47++ i18n("Unencrypted email Confirmation"),
48++ KGuiItem( i18n("&Send") ),
49++ KGuiItem( i18n("&Cancel") ) );
50++ if ( rc == KMessageBox::No ) {
51++ return;
52++ }
53++ }
54++
55++ if ( MessageComposer::MessageComposerSettings::self()->cryptoWarningUnsigned() && !mSignAction->isChecked()) {
56++ int rc = KMessageBox::warningYesNo( mMainWidget,
57++ i18n("About to send unencrypted email..."),
58++ i18n("Unencrypted email Confirmation"),
59++ KGuiItem( i18n("&Send") ),
60++ KGuiItem( i18n("&Cancel") ) );
61++ if ( rc == KMessageBox::No ) {
62++ return;
63++ }
64++ }
65++ }
66++
67+ if ( GlobalSettings::self()->confirmBeforeSend() ) {
68+ int rc = KMessageBox::warningYesNoCancel( mMainWidget,
69+ i18n("About to send email..."),
70+@@ -2795,6 +2831,8 @@
71+ } else {
72+ doSend( MessageSender::SendImmediate );
73+ }
74++
75++
76+ }
77+
78+ //----------------------------------------------------------------------------
79
80=== modified file 'debian/patches/series'
81--- debian/patches/series 2012-07-26 17:54:28 +0000
82+++ debian/patches/series 2012-11-05 17:16:19 +0000
83@@ -1,3 +1,4 @@
84 #debianize_akregator_default.diff
85 kubuntu_debianize_akregator_default.diff
86 kubuntu_install_headers.diff
87+fix_gpg_warnings_in_composer.patch

Subscribers

People subscribed via source and target branches