Bug 65233 - kmail does not show imap folder contents
Summary: kmail does not show imap folder contents
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: IMAP (show other bugs)
Version: 1.5.3
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 65599 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-09-30 14:07 UTC by Christo
Modified: 2007-09-14 12:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Ethereal capture of kmail startup (45.15 KB, application/octet-stream)
2004-05-17 10:31 UTC, Travers Carter
Details
Debug output from kmail and kio_imap (30.78 KB, text/plain)
2004-06-11 13:57 UTC, Travers Carter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christo 2003-09-30 14:07:49 UTC
Version:           1.5.3 (using KDE 3.1.3)
Installed from:     (testing/unstable)
Compiler:          gcc version 3.3.1 20030722 (Debian prerelease)
OS:          Linux (i686) release 2.4.22-xfs

i connect to a courierimapd via ssl .. i have several folders, that show me new messages, but no total count of messages .. entering this folder doesnt show me any mail .. there are some folders ( all mailinglists ) that show total counts AND new messages .. to this folders i am able to browse in ... i get no error message .. and i am sure that there is mail inside ( horde shows me so ) ... so the default inbox-name ( .INBOX ) is not the isue because some folders work ( those with total counts ) .. please let me know how to give you more debuginput to solve this bug .. best regards -c-
Comment 1 Carsten Burghardt 2003-09-30 15:05:32 UTC
Let me see if I get this right: the only folder that doesn't list the contents is the inbox? 
KMail shows that you have new messages in this folder but doesn't show any mails. 
OK, what is the prefix that you entered in your settings? 
Comment 2 Till Adam 2003-10-13 18:38:17 UTC
*** Bug 65599 has been marked as a duplicate of this bug. ***
Comment 3 Christo 2003-10-13 20:42:36 UTC
Nope .. thats not .. but i cant describe it better .. sometimes when starting kmail some 
folder show new messages but zero old messages .... then i cannot list their content .. .. 
it was not my inbox not showing mails but the INBOX. on the IMAP-Server .. it didnt 
appear anymore after i let synchronise kmail each folder by accesing it .. and not by 
Ctrl+L ( which seems to me the error-source -... somehow it is blocking the sync ) .. well 
thats what i found out ..  
Comment 4 Carsten Burghardt 2003-10-14 08:44:10 UTC
Any chance to test this with kmail from kde 3.2?
Comment 5 Christo 2003-10-14 09:28:13 UTC
Subject: Re:  kmail does not show imap folder contents

dont know when 3.2 comes to debian/testing/unstable .. i would prefer testing 
:-) .. i sure wont be the last one to have 3.2 :-) ... 

Am Dienstag, 14. Oktober 2003 08:44 schrieben Sie:
- -=> ------- You are receiving this mail because: -------
- -=> You reported the bug, or are watching the reporter.
- -=>
- -=> http://bugs.kde.org/show_bug.cgi?id=65233
- -=>
- -=>
- -=>
- -=>
- -=> ------- Additional Comments From burghardt@kde.org  2003-10-14 08:44
 ------- -=> Any chance to test this with kmail from kde 3.2?
- -=>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/i6RFt5+t7nWGuaIRAubFAKCddjJpO2iGvWyN7lJFYA5wmHszyACfUpuc
farox+UYqc+G0hGHPGVhX9g=
=wrku
-----END PGP SIGNATURE-----

Comment 6 Rob McGee 2003-11-13 10:08:43 UTC
I think this is what I have seen, too. A colleague of mine has twice tried kmail (latest was KDE 3.1.4/kmail 1.5.4/gcc 3.2.3, Slackware 9.1) and twice encountered it. When he initially connects to the imapd (Courier) all messages are present. Exit kmail, restart, and only ones from the past 2 days or so are present. This is in the Inbox, and only on one of his several accounts.

Other clients accessing this IMAP account have been MSOE and sqwebmail. Both of them continue to be able to access all the Inbox mail.

I can show you his IMAP account(s) on my own kmail (same version) via VNC, if you want to try to arrange a time. I am sure we can reproduce this bug.

My suspicion is that it could be related to the issue reported about case-insensitivity. I looked at the list of my own subscribed folders on the same IMAP server, and they all start with "INBOX". His have that, and "Inbox" and "inbox".

Thank you for your work on kmail. It's an excellent MUA.
Comment 7 Richard 2003-12-02 02:18:11 UTC
When I start KMAIL, any previously read messages in my IMAP inbox are removed from KMAIL's view of my maildir's inbox.  The messages are still there, but I can not see them from KMAIL.  To view my messages, I must either use another email client (such as an MSOE client) -OR- I must delete the courierimapuiddb file from my MAILDIR.  KMAIL will the redownload all the mail headers (and messages) and display them properly until I exit and return to KMAIL.

I have other IMAP accounts on this mail server that do not exhibit this error.  There seems to be something about KMAIL's interaction with this particular IMAP account that is causing the messages to become unavailable for view.

I have searched for a 'hide read messages' option, but haven't found one.

As email is my main application...and as I am trying to switch to a linux desktop...this is a showstopper.  Is there any logging I can turn on and turn in?  I would love to get this issue corrected.

server platform:
Slackware 8.1
qmail-1.03, vpopmail, courierimap, smtpauth, qmail-scanner, sophie(daemonized Sophos 'Sweep' antivirus scanner)

workstation platform:
Slackware 9.1
KDE 3.1.4 & KMail (as shipped on the Slackware CD)
Comment 8 Christo 2003-12-02 11:10:22 UTC
i also use the courierimap with kmail .. and i experience a similiar problem .. BUT i dont touch the server .. kmail works fine again after restarting it and let it 2 minutes of time, until it starts syncing the accountdata .. something is very strange with kmail since kde3.1.0-release 
Comment 9 Carsten Burghardt 2003-12-02 12:54:43 UTC
Can any of you guys test this with a recent checkout from kde 3.2?
Comment 10 Carsten Burghardt 2003-12-24 12:23:18 UTC
I tested a lot with courier on kde 3.2 and can not reproduce this problem.
Therefore I close this as WORKSFORME but feel free to reopen it if you still encounter it with the recent version.
Comment 11 Richard 2003-12-31 06:31:04 UTC
The problem still exists for me in KMail 1.5.94 (Using KDE 3.1.94 (3.2 Beta 2))

I upgraded KDE today, deleted my courierimapuiddb and courierimapsubscribed, lauched KMail, resubscribed to my IMAP folders, downloaded the contents of my IMAP folder, exited KMail, relaunched KMail and all my messages in the IMAP inbox were gone.
Comment 12 Carsten Burghardt 2003-12-31 15:13:22 UTC
You saw the messages in your inbox and when you restarted kmail your inbox was empty? And you still see those messages in other email clients?
What did you enter as prefix in your account settings? This is courier imap?
Comment 13 Richard 2003-12-31 15:41:51 UTC
>You saw the messages in your inbox
Yes
>..and when you restarted kmail your inbox was empty? 
YES
>And you still see those messages in other email clients? 
Yes.   Also, during all of this maintenance I started X as root and even though the email messages had already disappeared out of my user's inbox, they reappeared temporarily in root's inbox...that is until I shut down KMail and restarted it. 
>What did you enter as prefix in your account settings? 
"Prefix to folders:  inbox"  Which is the same as another account that does not have the issue.

Thought:  What if it is a vpopmail bug? or a courier-imap bug?  Unless you want to troubleshoot the problem as-is, I'm going to upgrade my courier and vpopmail and see what happens. ...let me know.
>This is courier imap? 
Yes, courier-imap version 1.51 with vpopmail-v5.2.1.   Hmm..I
Comment 14 Carsten Burghardt 2003-12-31 15:47:52 UTC
Subject: Re:  kmail does not show imap folder contents

On Wednesday 31 December 2003 15:41, Richard wrote:
> Yes.   Also, during all of this maintenance I started X as root and even
> though the email messages had already disappeared out of my user's inbox,
> they reappeared temporarily in root's inbox...that is until I shut down
> KMail and restarted it.
>
> >What did you enter as prefix in your account settings?
>
> "Prefix to folders:  inbox"  Which is the same as another account that does
> not have the issue.
>
> Thought:  What if it is a vpopmail bug? or a courier-imap bug?  Unless you
> want to troubleshoot the problem as-is, I'm going to upgrade my courier and
> vpopmail and see what happens. ...let me know.

I really have no clue what this could be but I can't imagine that this is a 
kmail problem. Especially because your other account doesn't have this 
problem.

Comment 15 Christo 2004-02-07 17:45:34 UTC
Hi hab no chance to try kde3.2 yet .. i have to wait till its debian-sagre ... but I hope that this strange behavior is fixed then somehow .. i still have to restart kmail to be able to see mail mails each time i get some .... cu
Comment 16 Carsten Burghardt 2004-03-07 16:16:38 UTC
Can you please check this with kmail from 3.2.1? It should be fixed there.
Comment 17 Travers Carter 2004-05-17 07:01:54 UTC
I seem to be having the same problem with Kmail 1.6.2 (using KDE 3.2.2-4 from Fedora Core 2 test 3).  Today after using 1.6.2 for a week or so, all the messages in my inbox disappeared, I removed my kmailrc and reconfigured kmail from scratch, but that didn't help.

The IMAP server is courier-imap 0.38.1.20020521.
The messages in the inbox are visible in the filesystem on the server, using Mozilla 1.6, SQWebmail and IMP 2.3.6,  All the other folders display fine in Kmail.

My prefix for the account is set to "INBOX" (without the quotes)

Someone else in my office is using KMail 1.5 (KDE 3.1-12 from Redhat 9) connected to the same IMAP server, with the same prefix and hasn't experienced the problem.
Comment 18 Carsten Burghardt 2004-05-17 09:27:14 UTC
@Travers: are you sure that the version is 0.38? The current courier is 3.0.4!
Apart from that please provide an ethereal log when you click on the inbox and the messages do not appear.
Comment 19 Travers Carter 2004-05-17 10:31:14 UTC
Created attachment 6035 [details]
Ethereal capture of kmail startup

Using ethereal with a filer of "tcp port 143" no traffic is generated when
clicking on the inbox, the attachment is a capture of starting up kmail (with
the password changed on the mail server first) and then clicking on the inbox
(which generates no additional traffic)

Clicking on any other folder did create traffic (that's not in the attachment
though)

The courier version (0.38...) is the full courier-mta suite version (current
release is 0.45.5) I don't know how that relates to the standalone courier-imap
version, but yes it is quite old, I'd upgrade courier first except that kmail
has been working with that version fine for a few years.
Comment 20 Carsten Burghardt 2004-06-04 00:34:14 UTC
It's a bit strange that nothing happens. Does recreating the account help? If not it would be great if you could compile kmail and kdebase/kioslave/imap4 with --enable-debug=yes and capture the debug output. Use "kdebugdialog --fullmode" for that and redirect 5006 and 7116 to a file.
Comment 21 Travers Carter 2004-06-04 08:38:56 UTC
Recreating the account doesn't help, I tried that before, plus I just re-installed the machine with Fedora Core 2 final and configured kmail from scratch and got the same problem.

I have two accounts set up on that mail server and the problem only affects one of them, the affected one has around 2000 messages in the inbox, the one that works has only around 100, but I do have a folder with about 4000 messages which works fine in the affected account.

I'll try and rebuild with debug and test that over the weekend.
Comment 22 Travers Carter 2004-06-11 13:57:59 UTC
Created attachment 6316 [details]
Debug output from kmail and kio_imap

Debug from FC2 RPMS build using --enable-debug, I set everything (Information,
Warning, Error, Fatal Error) in kdebug for 5006 and 7116 to /tmp/kdebug.dbg

The output is from doing the following
1) Open kmail
2) Enter password to IMAP auth popup
3) Click on the affected inbox
4) Exit Kmail
Comment 23 Carsten Burghardt 2004-06-11 14:40:12 UTC
Any chance to test this with kdepim 3.3 (either from cvs HEAD or tarball)?
Comment 24 Travers Carter 2004-06-18 09:51:38 UTC
I installed KDE 3.3 using konstruct, I think something went wrong with the build as all of the UI text elements have lots of '(&)' in front of them.

But I was able to start kmail and configure it and it listed the messages in the inbox correctly.
Comment 25 Carsten Burghardt 2004-06-18 10:03:18 UTC
Fixed according to reporter.