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

List:       kde-pim
Subject:    Re: [Kde-pim] receive all eMails two times with POP3
From:       Ingo =?windows-1252?q?Kl=F6cker?= <kloecker () kde ! org>
Date:       2004-04-26 22:22:29
Message-ID: 200404270022.30183 () erwin ! ingo-kloecker ! de
[Download RAW message or body]

[Attachment #2 (multipart/signed)]

[Attachment #4 (multipart/mixed)]


On Monday 26 April 2004 23:28, André Wöbbeking wrote:
> Hi,
>
> with current CVS version of kdepim I get all eMails two times when I
> use POP3 (web.de) without pipelining.

And with pipelining? I'm using web.de with pipelining and don't 
experience any problems. I've just disabled pipelining and fetched 51 
message. No problems. Some time ago I had some problems with web.de 
(using fetchmail). But that was a problem of the web.de servers. For 
some reason they didn't delete the messages after fetchmail had fetched 
them. I then stopped using fetchmail and started using KMail to fetch 
my mail from web.de. Since then everything was fine.

FYI, web.de (at least freemail) doesn't allow fast interval checking. 
They have a login delay of 720 seconds.

Do you leave messages on the server? Do you use POP filters? Please 
apply the attached patch and gather some debug information.

Regards,
Ingo

["kmacctexppop.diff" (text/x-diff)]

Index: kmacctexppop.cpp
===================================================================
RCS file: /home/kde/kdepim/kmail/kmacctexppop.cpp,v
retrieving revision 1.156
diff -u -3 -p -r1.156 kmacctexppop.cpp
--- kmacctexppop.cpp	24 Apr 2004 18:01:33 -0000	1.156
+++ kmacctexppop.cpp	26 Apr 2004 22:15:30 -0000
@@ -376,11 +377,15 @@ void KMAcctExpPop::slotMsgRetrieved(KIO:
     slotGetNextHdr();
   } else {
     kdDebug(5006) << "stage == Retr" << endl;
-    kdDebug(5006) << QString( "curMsgData.size() %1" ).arg( curMsgData.size() ) << endl;
+    kdDebug(5006) << "curMsgData.size() = " << curMsgData.size() << endl;
     msg->setMsgLength( curMsgData.size() );
     msgsAwaitingProcessing.append(msg);
     msgIdsAwaitingProcessing.append(idsOfMsgs[indexOfCurrentMsg]);
     msgUidsAwaitingProcessing.append( mUidForIdMap[idsOfMsgs[indexOfCurrentMsg]] );
+    kdDebug(5006) << "ID of current message : " << idsOfMsgs[indexOfCurrentMsg]
+                  << endl;
+    kdDebug(5006) << "UID of current message: "
+                  << mUidForIdMap[idsOfMsgs[indexOfCurrentMsg]] << endl;
     slotGetNextMsg();
   }
 }
@@ -473,6 +481,7 @@ void KMAcctExpPop::slotJobFinished() {
       idsOfMsgs = QStringList( mMsgsPendingDownload.keys() );
       KURL url = getUrl();
       url.setPath( "/download/" + idsOfMsgs.join(",") );
+      kdDebug(5006) << "url: " << url.prettyURL() << endl;
       job = KIO::get( url, false, false );
       connectJob();
       slotGetNextMsg();
@@ -663,7 +672,9 @@ void KMAcctExpPop::slotGetNextMsg()
     curMsgStrm = new QDataStream( curMsgData, IO_WriteOnly );
     curMsgLen = nextLen;
     ++indexOfCurrentMsg;
-    kdDebug(5006) << QString("Length of message about to get %1").arg( nextLen ) << endl;
+    kdDebug(5006) << "Length of message about to get: " << nextLen << endl;
+    kdDebug(5006) << "Index (on server) of message about to get: "
+                  << next.key() << endl;
     mMsgsPendingDownload.remove( next.key() );
   }
 }

[Attachment #8 (application/pgp-signature)]

_______________________________________________
kde-pim mailing list
kde-pim@mail.kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/

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

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