Difference between revisions of "80995"

From ThorstensHome
Jump to: navigation, search
 
m (1 revision(s))
 

Latest revision as of 09:09, 18 October 2008

This is how I try to work on KDE bug 80995.

svn diff
Index: kmaccount.cpp
===================================================================
--- kmaccount.cpp       (revision 849853)
+++ kmaccount.cpp       (working copy)
@@ -426,6 +426,7 @@
 //-----------------------------------------------------------------------------
 void KMAccount::mailCheck()
 {
+  kDebug(5006) << "Entering function";
   if (mTimer)
     mTimer->stop();

Index: accountmanager.cpp
===================================================================
--- accountmanager.cpp  (revision 849853)
+++ accountmanager.cpp  (working copy)
@@ -128,6 +128,7 @@
 //-----------------------------------------------------------------------------
 void AccountManager::singleCheckMail(KMAccount *account, bool interactive)
 {
+  kDebug(5006) << "Entering function";
   mNewMailArrived = false;
   mInteractive = interactive;

Show a pixAttachment for every mail

svn diff headeritem.cpp
Index: headeritem.cpp
===================================================================
--- headeritem.cpp      (revision 849853)
+++ headeritem.cpp      (working copy)
@@ -300,7 +300,7 @@
     }

     // Only merge the attachment icon in if that is configured.
-    if ( headers->paintInfo()->showAttachmentIcon &&
+    if ( true || headers->paintInfo()->showAttachmentIcon &&
         !headers->paintInfo()->showAttachment &&
         msgBase->attachmentState() == KMMsgHasAttachment )
       pixmaps << *KMHeaders::pixAttachment;

Show when a mail object is created

svn diff kmmsgbase.cpp
Index: kmmsgbase.cpp                              
===================================================================
--- kmmsgbase.cpp       (revision 849853)                          
+++ kmmsgbase.cpp       (working copy)                             
@@ -88,6 +88,7 @@                                                  
     mStatus(),                                                    
     mTagList( 0 )
 {
+  kDebug(5006) << "entering function";
 }

 #ifdef KMAIL_SQLITE_INDEX
@@ -106,6 +107,7 @@
     mStatus(),
     mTagList( 0 )
 {
+  kDebug(5006) << "entering function";
 }

 //----------------------------------------------------------------------------
@@ -115,6 +117,7 @@
  , mData( 0 )
 #endif
 {
+  kDebug(5006) << "entering function";
     assign( &other );
 }

@@ -769,6 +772,7 @@
 //-----------------------------------------------------------------------------
 KMMsgAttachmentState KMMsgBase::attachmentState() const
 {
+  return KMMsgHasAttachment;
   if ( mStatus.hasAttachment() )
     return KMMsgHasAttachment;
 // FIXME

For an imap account slotMessageArrived is called when the message arrived, not when the header arrived. So, it is called when you click onto a mail.