[Bug 292283] New: Filters don't work because headers are not downloaded

S. Burmeister sven.burmeister at gmx.net
Mon Jan 23 18:05:29 GMT 2012


https://bugs.kde.org/show_bug.cgi?id=292283

           Summary: Filters don't work because headers are not downloaded
           Product: kmail2
           Version: unspecified
          Platform: openSUSE RPMs
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdepim-bugs at kde.org
        ReportedBy: sven.burmeister at gmx.net


Version:           unspecified (using Devel) 
OS:                Linux

If emails arrive in the imap inbox they are filtered. If they are filtered for
criteria other than the subject, i.e. things that have been downloaded for the
message list already, filters fail.

Filter log, notice that () is empty although the emails contains: List-Id:
german translators <kde-i18n-de.kde.org>:
[18:38:20] Evaluating filter rules: (match any of the following) "List-Id"
<contains> "<kde-i18n-doc.kde.org>" "List-Id" <contains>
"<kde-i18n-de.kde.org>"
[18:38:20] 0 = "List-Id" <contains> "<kde-i18n-doc.kde.org>" ()
[18:38:20] 0 = "List-Id" <contains> "<kde-i18n-de.kde.org>" ()

but filtering for subject rules show that some email content is available for
filters:

[18:38:20] Evaluating filter rules: (match any of the following) "Subject"
<contains> "[Bug " "Subject" <contains> "[Issue " "Subject" <contains> "Bugs"
[18:38:20] 0 = "Subject" <contains> "[Bug " (Re: Hilfe, meine
Netzwerkschnittstellen wollen "Nach oben" )
[18:38:20] 0 = "Subject" <contains> "[Issue " (Re: Hilfe, meine
Netzwerkschnittstellen wollen "Nach oben" )
[18:38:20] 0 = "Subject" <contains> "Bugs" (Re: Hilfe, meine
Netzwerkschnittstellen wollen "Nach oben" )

Akonadiconsole shows:

KMailFilterKernel:
* 35 33 (NAME "INBOX" MIMETYPE (message/rfc822 inode/directory) REMOTEID
"/INBOX" REMOTEREVISION "" RESOURCE "akonadi_imap_resource_2" MESSAGES 1233
UNSEEN 145 SIZE 34112236 CACHEPOLICY (INHERIT true INTERVAL 5 CACHETIMEOUT 60
SYNCONDEMAND true LOCALPARTS (ENVELOPE HEAD)) ANCESTORS ((33
"imap://my_imap_account/") (0 "")) ENTITYDISPLAY "(\"Posteingang\"
\"mail-folder-inbox\" \"\" ())" uidnext "350076" collectionflags "\\Answered
\\Flagged \\Draft \\Deleted \\Seen KMAILFORWARDED KMAILTODO KMAILWATCHED
KMAILIGNORED $FORWARDED $TODO $WATCHED $IGNORED $SIGNED $ATTACHMENT $REPLIED
$JUNK $NOTJUNK $ERROR $QUEUED \\*" uidvalidity "1064465519" collectionquota
"59271168 104858624" imapacl "imap_account lrswipcda %% " imapquota
"user/imap_account %%%% STORAGE % 102401 %%%% STORAGE % 57882" AccessRights "a"
INDEXPOLICY "(ENABLE false)" collectionannotations
"/vendor/cmu/cyrus-imapd/sharedseen false" timestamp "1327318937") 
950 OK List completed 
951 STATUS 35 (MESSAGES UNSEEN SIZE) 
* STATUS "RWTH IMAP/INBOX" (MESSAGES 1233 UNSEEN 145 SIZE 34112236) 
951 OK STATUS completed 

akonadi_mailfilter_agent:
2643 OK UID FETCH completed 
2644 UID STORE 70989 REV 0 (REMOTEID "350075" PLD:HEAD[1] {447} 
+ Ready for literal data (expecting 447 bytes) 
+ Ready for literal data (expecting 348 bytes) 
* 70989 FETCH (REV 1) 
2644 OK DATETIME "23-Jan-2012 17:38:20 +0000" STORE completed 
2646 LSUB 35 0 () () 
* 35 33 (NAME "INBOX" MIMETYPE (message/rfc822 inode/directory) REMOTEID
"/INBOX" REMOTEREVISION "" RESOURCE "akonadi_imap_resource_2" CACHEPOLICY
(INHERIT true INTERVAL 5 CACHETIMEOUT 60 SYNCONDEMAND true LOCALPARTS (ENVELOPE
HEAD)) ENTITYDISPLAY "(\"Posteingang\" \"mail-folder-inbox\" \"\" ())" uidnext
"350076" collectionflags "\\Answered \\Flagged \\Draft \\Deleted \\Seen
KMAILFORWARDED KMAILTODO KMAILWATCHED KMAILIGNORED $FORWARDED $TODO $WATCHED
$IGNORED $SIGNED $ATTACHMENT $REPLIED $JUNK $NOTJUNK $ERROR $QUEUED \\*"
uidvalidity "1064465519" collectionquota "59271168 104858624" imapacl
"imap_account lrswipcda %% " imapquota "user/imap_account %%%% STORAGE % 102401
%%%% STORAGE % 57882" AccessRights "a" INDEXPOLICY "(ENABLE false)"
collectionannotations "/vendor/cmu/cyrus-imapd/sharedseen false" timestamp
"1327318937") 
2646 OK List completed 

KMAil Kernel:

* 70989 FETCH (UID 70989 REV 0 REMOTEID "350075" MIMETYPE "message/rfc822"
COLLECTIONID 35 SIZE 5092 DATETIME "23-Jan-2012 18:38:20 +0000" FLAGS ()
PLD:ENVELOPE[1] {348} ("Mon, 23 Jan 2012 18:37:02 +0100" "Re: Hilfe, meine
Netzwerkschnittstellen wollen \"Nach oben\"\r" (("Christian Gebler" NIL
"geblerchristian" "googlemail.com")) NIL NIL (("german translators" NIL
"kde-i18n-de" "kde.org")) NIL NIL "<201201231832.06323.lueck at hube-lueck.de>"
"<4F1D9ABE.6080504 at gmail.com>" "<201201231832.06323.lueck at hube-lueck.de>")) 
3434 OK UID FETCH completed 
3435 UID FETCH 70989 EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID
FLAGS SIZE DATETIME PLD:ENVELOPE) 
* 70989 FETCH (UID 70989 REV 1 REMOTEID "350075" MIMETYPE "message/rfc822"
COLLECTIONID 35 SIZE 795 DATETIME "23-Jan-2012 17:38:20 +0000" FLAGS ()
PLD:ENVELOPE[1] {348} ("Mon, 23 Jan 2012 18:37:02 +0100" "Re: Hilfe, meine
Netzwerkschnittstellen wollen \"Nach oben\"\r" (("Christian Gebler" NIL
"geblerchristian" "googlemail.com")) NIL NIL (("german translators" NIL
"kde-i18n-de" "kde.org")) NIL NIL "<201201231832.06323.lueck at hube-lueck.de>"
"<4F1D9ABE.6080504 at gmail.com>" "<201201231832.06323.lueck at hube-lueck.de>")) 
3435 OK UID FETCH completed 
3436 LSUB 35 0 () (STATISTICS true ANCESTORS INF) 
* 35 33 (NAME "INBOX" MIMETYPE (message/rfc822 inode/directory) REMOTEID
"/INBOX" REMOTEREVISION "" RESOURCE "akonadi_imap_resource_2" MESSAGES 1233
UNSEEN 145 SIZE 34112236 CACHEPOLICY (INHERIT true INTERVAL 5 CACHETIMEOUT 60
SYNCONDEMAND true LOCALPARTS (ENVELOPE HEAD)) ANCESTORS ((33
"imap://my_imap_account/") (0 "")) ENTITYDISPLAY "(\"Posteingang\"
\"mail-folder-inbox\" \"\" ())" uidnext "350076" collectionflags "\\Answered
\\Flagged \\Draft \\Deleted \\Seen KMAILFORWARDED KMAILTODO KMAILWATCHED
KMAILIGNORED $FORWARDED $TODO $WATCHED $IGNORED $SIGNED $ATTACHMENT $REPLIED
$JUNK $NOTJUNK $ERROR $QUEUED \\*" uidvalidity "1064465519" collectionquota
"59271168 104858624" imapacl "imap_account lrswipcda %% " imapquota
"user/imap_account %%%% STORAGE % 102401 %%%% STORAGE % 57882" AccessRights "a"
INDEXPOLICY "(ENABLE false)" collectionannotations
"/vendor/cmu/cyrus-imapd/sharedseen false" timestamp "1327318937") 
3436 OK List completed 
3437 STATUS 35 (MESSAGES UNSEEN SIZE) 
* STATUS "RWTH IMAP/INBOX" (MESSAGES 1233 UNSEEN 145 SIZE 34112236) 
3437 OK STATUS completed 

If one selects the emails all of its content is downloaded and applying manual
filters works.

Reproducible: Always

Steps to Reproduce:
Create some filter criteria based on List-ID or List-Post headers

Actual Results:  
Emails not filtered when they arrive in the inbox

Expected Results:  
All needed information for filtering downloaded before filtering.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list