After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 581908 - missing mails in exchange
missing mails in exchange
Status: RESOLVED FIXED
Product: Evolution Exchange
Classification: Deprecated
Component: Connector
2.24.x
Other All
: Normal normal
: ---
Assigned To: Connector Maintainer
Ximian Connector QA
: 498578 503189 512604 537650 558201 564246 576482 583544 586543 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-05-08 17:30 UTC by rramesh_babu
Modified: 2009-12-29 11:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed eex patch (6.74 KB, patch)
2009-05-14 17:32 UTC, Milan Crha
committed Details | Review

Description rramesh_babu 2009-05-08 17:30:16 UTC
Please describe the problem:
I am using KDE4.1 and evolution 2.24 to access mails from my exchange server.
most of the times, all the mails are not displayed in my in-box
I have to go back to windows/outlook to see all the messages.



Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 André Klapper 2009-05-08 18:29:06 UTC
Please USE the template. It exists for a good reason.

Also check http://www.go-evolution.org/FAQ#I_cannot_see_some_emails.2C_but_they_must_be_there. and report back.
Comment 2 rramesh_babu 2009-05-08 19:53:14 UTC
(In reply to comment #0)
> Please describe the problem:
> I am using KDE4.1 and evolution 2.24 to access mails from my exchange server.
> most of the times, all the mails are not displayed in my in-box
> I have to go back to windows/outlook to see all the messages.
> 
> 
> 
> Steps to reproduce:
> 1. click on get mail
> 2. Inbox folder wil show some number of unread mails
> 3. but new mails are not displayed, even after "folder refresh"
  4. sometimes, few mails that were there in the inbox are missing.
  
> 
> 
> Actual results:
> 
> 
> Expected results:
> 
> 
> Does this happen every time?
> I use evolution through out the day and it happens quite often
> 
> Other information:
> I do not have any filters, not set my junk folder, 

Comment 3 Akhil Laddha 2009-05-09 04:35:26 UTC
@ rramesh - if you can afford to remove cache of mails , you will get all the mails back. Command for removing cache rm -rf ~/.evolution/mail/exchange  

@ Milan looks like this famous bug is back again 
Comment 4 Milan Crha 2009-05-11 10:31:40 UTC
yeah, seems like that, though a different issue, as reporter says that the folder unread count works fine, only messages are not shown. So I guess the messages are downloaded, only disk-summary changes are influencing it in a wrong way.
Comment 5 Milan Crha 2009-05-14 17:32:32 UTC
Created attachment 134654 [details] [review]
proposed eex patch

for evolution-exchange;

Couple notes:
a) it's possible that there's still hidden some issue(s) with respect to
   db-summary rewrite, but this fixes some other issues I found.
b) the sync_deletions logic was just broken. I changed it in a way that as
   we compare messages stored locally and returned from the server, the
   server is considered a master, and is tracked which messages _exactly_
   are known on both places, local cache and the server and are deleted only
   those really deleted messages from the server, no new messages.
c) the second change in refresh_folder_internal is because the href can be
   the same, but the UID can change.
d) I'm not sure whether the change in refresh_folder is necessary, as it's
   just flushing a buffer, but I believe it's better for the consistency.

My reproducer:
Say you have, in evolution, some snap of the server messages. Close it, and in owa or outlook delete all messages from the folder, but add there some new too. Then run evolution. It is so clever that it deletes from the folder also those new messages, thus you see an empty folder, even there are some. They had been usually back next start, even without deleting the local cache.

Much funnier is the issue with same href, but different UID. Basically do the same as above, but instead of deleting move them somewhere. Then change your mind and move some back. Then, in evolution, you shouldn't be able to open them (if they were not downloaded in the cache already). I did this with a folder of 4 messages, and only one I took out and back. Every time I opened the folder for the first time after start, the missing message had been shown and deleted immediately, in favour of the old, really deleted message, which stayed in the summary.

I hope I didn't forget anything.
Comment 6 Akhil Laddha 2009-05-20 06:36:39 UTC
see old bug 435371 also
Comment 7 Akhil Laddha 2009-05-25 06:07:35 UTC
*** Bug 583544 has been marked as a duplicate of this bug. ***
Comment 8 Bharath Acharya 2009-05-26 09:29:53 UTC
This fixes the issue. It is a safe way to do it. But as suggested by Varadhan, it would be better if we handle the issue in get_folder_online than handling it in sync_deletions. I'll look into fixing it for get_folder_online. If no luck, then taking this patch in makes better sense.
Comment 9 Akhil Laddha 2009-05-27 07:32:39 UTC
*** Bug 512604 has been marked as a duplicate of this bug. ***
Comment 10 Akhil Laddha 2009-05-27 08:14:22 UTC
*** Bug 498578 has been marked as a duplicate of this bug. ***
Comment 11 Bharath Acharya 2009-06-09 05:20:16 UTC
Fine to commit Milan.
Comment 12 Milan Crha 2009-06-09 08:46:14 UTC
Created commit 8dd7f22 in eex master (2.27.3+)
Comment 13 Akhil Laddha 2009-06-22 05:35:40 UTC
*** Bug 586543 has been marked as a duplicate of this bug. ***
Comment 14 Akhil Laddha 2009-06-26 06:44:51 UTC
*** Bug 503189 has been marked as a duplicate of this bug. ***
Comment 15 Bojan Smojver 2009-07-29 09:33:00 UTC
Is this going to be  backported to 2.26.x? It is rather annoying...
Comment 16 Milan Crha 2009-07-29 09:47:22 UTC
There is not planned any update for 2.26, please ask your distro maintainer to backport the patch.
Comment 17 Akhil Laddha 2009-08-24 12:41:03 UTC
*** Bug 564246 has been marked as a duplicate of this bug. ***
Comment 18 Akhil Laddha 2009-08-25 10:25:45 UTC
*** Bug 558201 has been marked as a duplicate of this bug. ***
Comment 19 Akhil Laddha 2009-08-26 10:31:16 UTC
*** Bug 537650 has been marked as a duplicate of this bug. ***
Comment 20 Bojan Smojver 2009-11-18 05:09:32 UTC
Actually, this is not fixed. I'm experiencing this with Evo 2.28, shipped with F-12.
Comment 21 Akhil Laddha 2009-12-29 11:29:38 UTC
*** Bug 576482 has been marked as a duplicate of this bug. ***