Bug 102931 - Manually applied filters seem to mess up folder indexes
Summary: Manually applied filters seem to mess up folder indexes
Status: RESOLVED DUPLICATE of bug 89549
Alias: None
Product: kmail
Classification: Applications
Component: search (show other bugs)
Version: 1.8
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-31 14:27 UTC by Malte S. Stretz
Modified: 2007-09-14 12:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot (56.01 KB, image/png)
2005-03-31 14:29 UTC, Malte S. Stretz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Malte S. Stretz 2005-03-31 14:27:08 UTC
Version:           1.8 (using KDE 3.4.0, Gentoo)
Compiler:          gcc version 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)
OS:                Linux (i686) release 2.6.10-gentoo-r4

In my UBE folder I created a search to look for all mail not recognized as spam so I can learn them.  I used
  "X-Spam-Status" <matches re> "^No"

I selected all mails and applied the (wizard-generated) filter Classify as Spam.  Afterwards, all items seem to have disappeared from the search folder but it still reported one unread and 187 total messages.  The message list also still displayed 187 (haven't counted them :) rows which were completely empty.

Screenshot follows.
Comment 1 Malte S. Stretz 2005-03-31 14:29:01 UTC
Created attachment 10451 [details]
Screenshot

Note the selected empty row in the message list.
Comment 2 Malte S. Stretz 2005-04-20 16:35:02 UTC
Wow, just had a very frightening experience:  The same bug has happened to my inbox!  I classified two mails as spam, read some others, and put KMail in the background.  When I looked again, my whole inbox seemes to be empty.  Seemed, because the count at the folder list still said there were 159 mails and I had a bunch of empty rows.  When I left the folder and entered it again, everything was fine again.

According to the debug output it seems like the compation job hit in and something messed up the index file:

kmail: (139210108, last 139209967) Allergies bothering you? Buy drugs online. broadcast Mikel Madden, readyToShow true
kmail: text  plain
kmail: text  html
kmail: image  gif
kmail: parseMsg(KMMessage* aMsg == aMsg )
kmail: + Multipart/Related
kmail:  + Multipart/Alternative
kmail:   + Text/Plain
kmail:   + Text/HTML
kmail:  + Image/gif
kmail:       Inserting one item into MimePartTree
kmail:                 Content-Type: Multipart/Related
kmail:       Inserting one item into MimePartTree
kmail:                 Content-Type: image/gif
kmail:       Inserting one item into MimePartTree
kmail:                 Content-Type: multipart/alternative
kmail:       Inserting one item into MimePartTree
kmail:                 Content-Type: text/html
kmail:       Inserting one item into MimePartTree
kmail:                 Content-Type: text/plain
kmail: partNode::findType() is looking at Multipart/Related
kmail: partNode::findType() is looking at Multipart/Alternative
kmail: partNode::findType() is looking at Text/Plain
kmail: partNode::findType() is looking at Text/HTML
kmail: [static KMail::SpamScores KMail::SpamHeaderAnalyzer::getSpamScores(const KMMessage*)]
kabc: StdAddressBook::self()
kmail: Multiple / No addressees matched email address; Count is 0
kmail: ObjectTreeParser::parseObjectTree( node OK, showOnlyOneMimePart: FALSE )
kmail: ObjectTreeParser::parseObjectTree( node OK, showOnlyOneMimePart: FALSE )
kmail: partNode::findType() is looking at Text/Plain
kmail: partNode::findType() is looking at Text/HTML
kmail: partNode::findType() is looking at Text/Plain
kmail: ObjectTreeParser::parseObjectTree( node OK, showOnlyOneMimePart: FALSE )
kmail: writePartIcon: PartNum: 5
kmail: KMReaderWin  -  finished parsing and displaying of message.
kmail: (139210084, last 0) RE: Neuer Monitor Martin Schulze, readyToShow true
Learned from 1 message(s) (1 message(s) examined).
kmail: Removing folder from internal store inbox
kmail: parseMsg(KMMessage* aMsg == aMsg )
kmail: + Text/Plain
kmail:       Inserting one item into MimePartTree
kmail:                 Content-Type: Text/Plain
kmail: partNode::findType() is looking at Text/Plain
kmail: [static KMail::SpamScores KMail::SpamHeaderAnalyzer::getSpamScores(const KMMessage*)]
kabc: StdAddressBook::self()
kmail: ObjectTreeParser::parseObjectTree( node OK, showOnlyOneMimePart: FALSE )
kmail: KMReaderWin  -  finished parsing and displaying of message.
kmail: Compacting inbox
kmail: MaildirCompactionJob: starting to compact in folder /home/mss//.Mail/folders/inbox
[...]
QGArray::at: Absolute index 632 out of range
QGArray::at: Absolute index 632 out of range
QGArray::at: Absolute index 632 out of range
QGArray::at: Absolute index 632 out of range
QGArray::at: Absolute index 632 out of range
QGArray::at: Absolute index 632 out of range
QGArray::at: Absolute index 632 out of range
QGArray::at: Absolute index 632 out of range
QGArray::at: Absolute index 632 out of range
QGArray::at: Absolute index 632 out of range
QGArray::at: Absolute index 628 out of range
QGArray::at: Absolute index 628 out of range
QGArray::at: Absolute index 628 out of range
QGArray::at: Absolute index 628 out of range
QGArray::at: Absolute index 628 out of range
QGArray::at: Absolute index 624 out of range
QGArray::at: Absolute index 624 out of range
QGArray::at: Absolute index 624 out of range
QGArray::at: Absolute index 624 out of range
QGArray::at: Absolute index 624 out of range
QGArray::at: Absolute index 620 out of range
[repeat 4 times]
QGArray::at: Absolute index 616 out of range
[repeat 4 times]
QGArray::at: Absolute index 612 out of range
[repeat 4 times]
QGArray::at: Absolute index 608 out of range
[repeat 4 times]
QGArray::at: Absolute index 604 out of range
[repeat 4 times]
QGArray::at: Absolute index 600 out of range
[repeat 4 times]
QGArray::at: Absolute index 596 out of range
[repeat 4 times]
QGArray::at: Absolute index 592 out of range
[repeat 4 times]
QGArray::at: Absolute index 632 out of range
[repeat 4 times]
QGArray::at: Absolute index 592 out of range
[repeat 4 times]
QGArray::at: Absolute index 588 out of range
[repeat 4 times]
QGArray::at: Absolute index 580 out of range
[repeat 4 times]
QGArray::at: Absolute index 576 out of range
[repeat 4 times]
QGArray::at: Absolute index 568 out of range
[repeat 4 times]
QGArray::at: Absolute index 564 out of range
[repeat 4 times]
QGArray::at: Absolute index 620 out of range
[repeat 4 times]
QGArray::at: Absolute index 616 out of range
[repeat 4 times]
QGArray::at: Absolute index 612 out of range
[repeat 4 times]
QGArray::at: Absolute index 608 out of range
[repeat 4 times]
QGArray::at: Absolute index 604 out of range
[...]
Comment 3 Till Adam 2005-04-23 14:12:07 UTC
Duplicate of #89549?
Comment 4 Malte S. Stretz 2005-04-23 14:30:22 UTC
Possibly.  Seems like somehow the internal message index (not the file as I wrote before) gets out of sync with reality.
Comment 5 Till Adam 2005-06-05 11:54:48 UTC

*** This bug has been marked as a duplicate of 89549 ***