Bug 64210 - imap Headers are not always displayed - even if new mails arived
Summary: imap Headers are not always displayed - even if new mails arived
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: IMAP (show other bugs)
Version: SVN (3.5 branch)
Platform: Compiled Sources Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-13 19:03 UTC by Ferdinand Gassauer
Modified: 2007-09-14 12:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
shows folder with new mails and empty headers (8.62 KB, image/png)
2003-10-15 19:03 UTC, Ferdinand Gassauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ferdinand Gassauer 2003-09-13 19:03:18 UTC
Version:           1.5.9 (using KDE 3.1.9)
Compiler:          gcc version 3.3 20030226 (prerelease) (SuSE Linux)
OS:          Linux (i686) release 2.4.20-4GB

Hi!
new mails are displayed in a folder but the headers are not displayed
check mail and refresh do not help

this does not work since a few days
cu
ferdinand
Comment 1 Carsten Burghardt 2003-09-14 14:10:52 UTC
Subject: Re:  New: imap Headers are not always displayed - even if new mails arived

On Saturday 13 September 2003 19:03, Ferdinand Gassauer wrote:
> Hi!
> new mails are displayed in a folder but the headers are not displayed
> check mail and refresh do not help

As I don't see this problem here I need a bunch of information.
What imap server ae you using? With "new mails are displayed" you mean the 
unread count? Can you provide an ethereal log when you click on a folder that 
should have new mails? Do you see this problem with all folders?

Thx

Carsten

Comment 2 Ferdinand Gassauer 2003-09-14 19:19:43 UTC
now it works again 
Comment 3 Ferdinand Gassauer 2003-10-06 21:36:52 UTC
now it does not work  
I definitely have new mails , because I can see them in Webmail (SuSE 
Oexchange), I see the correct number of mails displayed for each subfolder 
but the mails are not displayed  
 
 
Comment 4 Ferdinand Gassauer 2003-10-06 21:39:57 UTC
problem persists
Comment 5 Ferdinand Gassauer 2003-10-06 21:40:43 UTC
may be the problem only araises for subfolders
Comment 6 Ferdinand Gassauer 2003-10-12 14:22:21 UTC
It seems that this problem only appears with IMAP subfolders. 
automatic checking shows asome new messages the headers are not downloaded 
automatically. after manualy coping a message into this folder the headers get 
updated and work correctly. 
 
BTW what should "refresh" do? 
here I can't seen anything . 
Comment 7 Till Adam 2003-10-13 09:13:20 UTC
Could you try if removing the index for one of the affected folders fixes it for that folder, 
please? 
As to your question, "refresh" checks for new mail only in the current imap folder. The 
shortcut is f5, as in konqui. 
Comment 8 Ferdinand Gassauer 2003-10-13 10:15:36 UTC
Subject: Re:  imap Headers are not always displayed - even if new mails arived

On Monday 13 October 2003 09:13, you wrote:
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
> http://bugs.kde.org/show_bug.cgi?id=64210
>
>
>
>
> ------- Additional Comments From adam@kde.org  2003-10-13 09:13 -------
> Could you try if removing the index for one of the affected folders fixes
> it for that folder, please?
if I remove the IMAP index I get a server error.

> As to your question, "refresh" checks for new mail only in the current imap
> folder. The shortcut is f5, as in konqui.

So why not calling it "Check mail" ? 
BTW  IMHO it does _not_ check for new mail. Or it does not sync the windows.
I never got new mail clicking on refresh.

Comment 9 Carsten Burghardt 2003-10-13 20:04:08 UTC
I definitely need an ethereal log or something when you click on the folder and the 
mails are not displayed. Otherwise I don't know where to search. 
Comment 10 Ferdinand Gassauer 2003-10-15 19:00:55 UTC
the communication runs over a ssh tunnel
does it help if I send you such a log?
Comment 11 Ferdinand Gassauer 2003-10-15 19:03:57 UTC
Created attachment 2784 [details]
shows folder with new mails and empty headers

IMHO a sync question
after a new mail arrives the other mail headers of the folder are displayed.

I assume it's the purpose of IMAP to access the mail server from 2 or more
different clients.
Comment 12 Carsten Burghardt 2003-10-15 19:30:52 UTC
The communication itself should be cleartext if you tunnel it so the log would be ok.
Comment 13 Ferdinand Gassauer 2003-11-01 10:01:08 UTC
If I click on check mail on the top IMAP folder - the number of new emails in the subfolder are updated, but not the headers.

if I click on the folder itself ONLY  BEFORE I click "check mail" in the top folder the messages get synced correctly.
Comment 14 Till Adam 2003-11-01 10:06:37 UTC
Ferdinand, does the described behavior only happen with otherwise empty folders? Are only headers not dowloaded when there is new mail in an empty folder?
Comment 15 Ferdinand Gassauer 2003-11-01 17:07:20 UTC
Subject: Re:  imap Headers are not always displayed - even if new mails arived

On Saturday 01 November 2003 10:06, you wrote:
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>      
> http://bugs.kde.org/show_bug.cgi?id=64210     
> 
> 
> 
> 
> ------- Additional Comments From adam@kde.org  2003-11-01 10:06 -------
> Ferdinand, does the described behavior only happen with otherwise empty
> folders? Are only headers not dowloaded when there is new mail in an empty
> folder?
 
regardless if the folder is empty or not. 
As I said I think it (mainly) happens if all folders are checked (manually)

Comment 16 Ferdinand Gassauer 2003-11-05 22:50:53 UTC
I am pretty sure now
- if I click on the folder itself the headers _are_  downloaded
- if I click on the IMAP-main folder, the headers are _not_ downloaded
Comment 17 arne 2003-11-11 18:28:02 UTC
i have the same problem
kmail is from the 3.2 beta1
happens with several servers running courier imap + vpopmail in various versions
after checking for mail folder pane will indicate unread messages in the inbox, but on accessing the inbox no new messages will show up.
Then after some time they will suddenly appear.

The inboxes have mails in them

should i do an ethereal log?
Comment 18 Carsten Burghardt 2003-11-12 22:24:35 UTC
@arne: yes, an ethereal log and the debug output would be good.

Thanks,

Carsten
Comment 19 Ferdinand Gassauer 2003-11-13 09:15:07 UTC
changed to major - the way it behaves is not business ready
Comment 20 Carsten Burghardt 2003-11-13 19:57:09 UTC
Subject: Re:  imap Headers are not always displayed - even if new mails arived

On Thursday 13 November 2003 09:15, you wrote:
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug, or are watching someone who is.
>
> http://bugs.kde.org/show_bug.cgi?id=64210
> gassauer@kde.org changed:
>
>            What    |Removed                     |Added
> ---------------------------------------------------------------------------
>- Severity|normal                      |major
>
>
>
> ------- Additional Comments From gassauer@kde.org  2003-11-13 09:15 -------
> changed to major - the way it behaves is not business ready

If I can remember correctly you sent me an ethereal log some time ago. 
Unfortunately it got lost from my web.de account. Can you send it once again?


Thanks,

Carsten

Comment 21 arne 2003-11-15 16:16:23 UTC
FWIW, the workaround seems to be to delete an email in an affected folder and then check mail again.

will collect some data now
Comment 22 Till Adam 2003-11-15 23:01:03 UTC
Subject: kdepim/kmail

CVS commit by tilladam: 

Make sure quiet() is reset in all error paths. If this is not ensured, the
newly arrived mail headers will be added to the local store but the headers
list not updated as that happens according to the following scheme:

o set folder quiet++
o get a bunch of headers and add them to the store without updating
o when the last mail comes in set folder quiet--
o quiet == 0 and as a result of that emit the folder's changed signal which
  updates the headers

Now if in some error path the quiet-- doesn't happen, quiet never
becomes 0 again in that folder and therefor the headers are never updated
whether there are new mails or not.

I hope this is the last codepath where it is lacking. If so, it should
fix #64210. This being an error path would explain why it is so elusive. I
saw this today for the first time having left kmail running across a 
disconnect of my internet connection.

CCMAIL: 64210@bugs.kde.org


  M +1 -0      kmfolderimap.cpp   1.144


--- kdepim/kmail/kmfolderimap.cpp  #1.143:1.144
@@ -758,4 +758,5 @@ void KMFolderImap::slotListFolderResult(
     mAccount->slotSlaveError( mAccount->slave(), job->error(),
         job->errorText() );
+    quiet( false );
     emit folderComplete(this, FALSE);
     mAccount->removeJob(it);


Comment 23 Ferdinand Gassauer 2003-11-16 10:18:19 UTC
Subject: Re:  imap Headers are not always displayed - even if new mails arived

On Saturday 15 November 2003 23:01, you wrote:
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
> http://bugs.kde.org/show_bug.cgi?id=64210
>
>
>
>
> ------- Additional Comments From adam@kde.org  2003-11-15 23:01 -------
> Subject: kdepim/kmail
>
> CVS commit by tilladam:
>
> Make sure quiet() is reset in all error paths. If this is not ensured, the
> newly arrived mail headers will be added to the local store but the headers
> list not updated as that happens according to the following scheme:
>
> o set folder quiet++
> o get a bunch of headers and add them to the store without updating
> o when the last mail comes in set folder quiet--
> o quiet == 0 and as a result of that emit the folder's changed signal which
>   updates the headers
>
> Now if in some error path the quiet-- doesn't happen, quiet never
> becomes 0 again in that folder and therefor the headers are never updated
> whether there are new mails or not.
>
> I hope this is the last codepath where it is lacking. If so, it should
> fix #64210. This being an error path would explain why it is so elusive. I
> saw this today for the first time having left kmail running across a
> disconnect of my internet connection.
>
> CCMAIL: 64210@bugs.kde.org
>
>
>   M +1 -0      kmfolderimap.cpp   1.144
>
>
> --- kdepim/kmail/kmfolderimap.cpp  #1.143:1.144
> @@ -758,4 +758,5 @@ void KMFolderImap::slotListFolderResult(
>      mAccount->slotSlaveError( mAccount->slave(), job->error(),
>          job->errorText() );
> +    quiet( false );
>      emit folderComplete(this, FALSE);
>      mAccount->removeJob(it);
no this didn't help either .
I still have to copy a mail in the folder with new mails to get the 
mailheaders displayed
Comment 24 Carsten Burghardt 2003-11-17 18:32:57 UTC
On Sunday 16 November 2003 23:30, you wrote:
> On Sunday 16 November 2003 20:22, you wrote:
> > Yes - I enabled and disabled the groupware function of kmail, because our
> > server does not support the groupware functionality yet.
>
> If you delete these two entries from your kmailrc and then start kmail, are
> they re-created?

OK after removing ALL references to empty imap paths check mail in the main 
IMAP folder works and syncs the headers now