~ubuntu-branches/ubuntu/quantal/kdepim/quantal

« back to all changes in this revision

Viewing changes to messageviewer/spamheaderanalyzer.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:51 UTC
  • mto: This revision was merged to the branch mainline in revision 193.
  • Revision ID: package-import@ubuntu.com-20111215141751-bmhdpiwl23wd9w26
Tags: upstream-4.7.90
ImportĀ upstreamĀ versionĀ 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
SpamScores SpamHeaderAnalyzer::getSpamScores( KMime::Message *message ) {
52
52
  SpamScores scores;
53
53
  const SpamAgents agents = AntiSpamConfig::instance()->uniqueAgents();
54
 
 
55
 
  for ( SpamAgents::const_iterator it = agents.begin(); it != agents.end(); ++it ) {
 
54
  SpamAgents::const_iterator end( agents.end() );
 
55
  for ( SpamAgents::const_iterator it = agents.begin(); it != end; ++it ) {
56
56
    float score = -2.0;
57
57
 
58
58
    SpamError spamError = noError;
66
66
    if ( !header )
67
67
      continue;
68
68
 
69
 
    QString mField = header->asUnicodeString();
 
69
    const QString mField = header->asUnicodeString();
70
70
 
71
71
    if ( mField.isEmpty() )
72
72
      continue;