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

List:       kmail-devel
Subject:    Re: KMail blocks just before checking POP3 mailboxes
From:       Ingo =?iso-8859-1?q?Kl=F6cker?= <kloecker () kde ! org>
Date:       2004-05-31 15:14:13
Message-ID: 200405311714.14036 () erwin ! ingo-kloecker ! de
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Monday 31 May 2004 15:19, Martijn Klingens wrote:
> On Monday 31 May 2004 15:03, Martijn Klingens wrote:
> > So just this small part of the code that updates a QDict takes TWO
> > SECONDS to run! (Between 1.3 and 1.4 in the output, i.e. the above
> > code snippet.)
>
> The time it needs is related to the amount of mail activity on an
> account. The POP account that is by far the most active (KDE CVS)
> also is the slowest:
>
> -----
>     kdDebug( 5006 ) << QTime::currentTime().toString( Qt::TextDate )
> << " " << k_funcinfo << "1.3.1" << endl;
>     mUidsOfSeenMsgs = config.readListEntry( "seenUidList" );
>     kdDebug( 5006 ) << QTime::currentTime().toString( Qt::TextDate )
> << " " << k_funcinfo << "1.3.2" << endl;
> -----
>
> results in
>
> -----
> kmail: 15:14:50 [virtual void KMAcctExpPop::processNewMail(bool)]
> 1.3.1 kmail: 15:14:54 [virtual void
> KMAcctExpPop::processNewMail(bool)] 1.3.2 -----
>
> That is FOUR SECONDS for the call to KConfig::readListEntry!!!
>
> In what file is this entry stored? It's not
> ~/.kde/share/config/kmailrc.

It's in ~/.kde/share/apps/kmail/$login:@$popserver:$port where $login is 
the login name on the POP server $popserver and $port is obviously the 
port. The seenUidList is used for leaving messages on the server (in 
order to identify new unseen messages. Since you don't leave messages 
on the server you can simply clear this list. We should probably make 
sure that we don't write the seenUidList (resp. write an empty list) if 
the user doesn't leave messages on the server.

Regards,
Ingo

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

_______________________________________________
KMail developers mailing list
KMail-devel@kde.org
https://mail.kde.org/mailman/listinfo/kmail-devel


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

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