Gentoo Archives: gentoo-commits

From: "Johannes Huber (johu)" <johu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in kde-base/kmail/files: kmail-4.9.0-spamfilter-mail-loss.patch kmail-4.8.5-spamfilter-mail-loss.patch
Date: Wed, 29 Aug 2012 10:13:35
Message-Id: 20120829101318.3E37620B23@flycatcher.gentoo.org
1 johu 12/08/29 10:13:18
2
3 Added: kmail-4.9.0-spamfilter-mail-loss.patch
4 kmail-4.8.5-spamfilter-mail-loss.patch
5 Log:
6 Revision bump adds upstream patch which prevents mail loss on spam filtering.
7
8 (Portage version: 2.2.0_alpha123/cvs/Linux i686)
9
10 Revision Changes Path
11 1.1 kde-base/kmail/files/kmail-4.9.0-spamfilter-mail-loss.patch
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kmail/files/kmail-4.9.0-spamfilter-mail-loss.patch?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kmail/files/kmail-4.9.0-spamfilter-mail-loss.patch?rev=1.1&content-type=text/plain
15
16 Index: kmail-4.9.0-spamfilter-mail-loss.patch
17 ===================================================================
18 commit e98937475a7f03e69a3a3c6a4ee67a8d41f027b5
19 Author: Andras Mantia <amantia@×××.org>
20 Date: Sat Aug 25 11:47:36 2012 +0300
21
22 Now fix for real the mail loss on spam filtering. The previous fix's idea was good, just that unfortunately the default value is "setCacheOnly(true)" set in AgentBasePrivate, so we have to explicitely set the cacheonly to false, otherwise mail content is not fetched from the mail server when passing through a filter that *needs* a content.
23
24 FIXED-IN: 4.9.1
25
26 BUG: 295484
27 (cherry picked from commit c691cb5d9cc7bb337c149e0279e21397f168c314)
28
29 diff --git a/mailfilteragent/mailfilteragent.cpp b/mailfilteragent/mailfilteragent.cpp
30 index 7220d90..75d6f05 100644
31 --- a/mailfilteragent/mailfilteragent.cpp
32 +++ b/mailfilteragent/mailfilteragent.cpp
33 @@ -117,6 +117,7 @@ void MailFilterAgent::initialCollectionFetchingDone( KJob *job )
34 Akonadi::CollectionFetchJob *fetchJob = qobject_cast<Akonadi::CollectionFetchJob*>( job );
35
36 changeRecorder()->itemFetchScope().setAncestorRetrieval( Akonadi::ItemFetchScope::Parent );
37 + changeRecorder()->itemFetchScope().setCacheOnly(false);
38 mRequestedPart = m_filterManager->requiredPart();
39 if (mRequestedPart == MailCommon::SearchRule::CompleteMessage) {
40 changeRecorder()->itemFetchScope().fetchFullPayload();
41
42
43
44 1.1 kde-base/kmail/files/kmail-4.8.5-spamfilter-mail-loss.patch
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kmail/files/kmail-4.8.5-spamfilter-mail-loss.patch?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/kmail/files/kmail-4.8.5-spamfilter-mail-loss.patch?rev=1.1&content-type=text/plain
48
49 Index: kmail-4.8.5-spamfilter-mail-loss.patch
50 ===================================================================
51 commit 628faec2651f6f20a438f61fc9c861c0d5eab0f8
52 Author: Andras Mantia <amantia@×××.org>
53 Date: Sat Aug 25 11:52:45 2012 +0300
54
55 Now fix for real the mail loss on spam filtering. The previous fix's idea was good, just that unfortunately the default value is "setCacheOnly(true)" set in AgentBasePrivate, so we have to explicitely set the cacheonly to false, otherwise mail content is not fetched from the mail server when passing through a filter that needs a content.
56
57 FIXED-IN: 4.8.6
58
59 BUG: 295484
60
61 diff --git a/mailfilteragent/mailfilteragent.cpp b/mailfilteragent/mailfilteragent.cpp
62 index 5f66e74..4e37ac7 100644
63 --- a/mailfilteragent/mailfilteragent.cpp
64 +++ b/mailfilteragent/mailfilteragent.cpp
65 @@ -111,6 +111,7 @@ void MailFilterAgent::initialCollectionFetchingDone( KJob *job )
66
67 changeRecorder()->itemFetchScope().setAncestorRetrieval( Akonadi::ItemFetchScope::Parent );
68 if (m_filterManager->requiresFullMailBody()) {
69 + changeRecorder()->itemFetchScope().setCacheOnly(false);
70 changeRecorder()->itemFetchScope().fetchFullPayload();
71 } else {
72 changeRecorder()->itemFetchScope().fetchPayloadPart( Akonadi::MessagePart::Header, true );