[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepim/knode
From:       Jakob Schröter <cvsci () camaya ! net>
Date:       2005-06-01 20:05:43
Message-ID: 1117656343.749598.26350.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 420931 by schrot:

- mark article read only if server replied with 423 or 430
BUG:56568


 M  +3 -3      articlewidget.cpp  


--- trunk/KDE/kdepim/knode/articlewidget.cpp #420930:420931
@@ -515,10 +515,10 @@
   mViewer->write( "</body></html>");
   mViewer->end();
 
-  // mark article as read, typically the article is expired on the server, so its
-  // impossible to read it later anyway.
+  // mark article as read if there is a negative reply from the server
   if ( knGlobals.configManager()->readNewsGeneral()->autoMark() &&
-     mArticle && mArticle->type() == KMime::Base::ATremote && !mArticle->isOrphant() ) {
+       mArticle && mArticle->type() == KMime::Base::ATremote && !mArticle->isOrphant() &&
+       ( msg.find("430") != -1 || msg.find("423") != -1 ) ) {
     KNRemoteArticle::List l;
     l.append( static_cast<KNRemoteArticle*>( mArticle ) );
     knGlobals.articleManager()->setRead( l, true );
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic