Bug 1403749 - Messages cannot be moved from inbox to subfolder
Summary: Messages cannot be moved from inbox to subfolder
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: evolution-ews
Version: 25
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Milan Crha
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-12 10:23 UTC by Christopher Brown
Modified: 2017-02-15 17:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-02-15 17:25:36 UTC
Type: Bug


Attachments (Terms of Use)
EWS Backend file (936 bytes, text/plain)
2016-12-14 13:43 UTC, Christopher Brown
no flags Details

Description Christopher Brown 2016-12-12 10:23:15 UTC
Description of problem:

Messages cannot be moved from inbox to subfolder

Version-Release number of selected component (if applicable):

evolution-ews-3.22.2-1.fc25.x86_64

How reproducible:

Always

Steps to Reproduce:
1. Try to move a message from inbox to subfolder

Actual results:

Message remains in inbox

Expected results:

Message moves to subfolder

Additional info:

This worked in Fedora 24 but required a refresh of the inbox folder to see the message had moved. Now it doesn't work at all.

I have tried completely removing evolution (including e-d-s) and re-installing, clearing cache and config.

It is connecting to Exchange 2007.

Comment 1 Milan Crha 2016-12-13 09:28:58 UTC
Thanks for a bug report. I tried to reproduce this, but no luck, I can move messages from the Inbox to one of its subfolder, using drag & drop. Is there any error shown, or anything? Maybe on a console, when you run evolution from a terminal? To debug further what is, or is not, done in the background, you can run evolution from a terminal as:

   $ EWS_DEBUG=2 evolution

then reproduce the issue and see what is near the end of the log. There should be some response from a MoveItem request (eventually CopyItem request, but you mentioned moving messages, thus it's the former).

Comment 2 Christopher Brown 2016-12-13 09:45:22 UTC
Hello. Thanks for the response. Output as follows:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Header>
    <t:ServerVersionInfo xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" MajorVersion="8" MinorVersion="1" MajorBuildNumber="240" MinorBuildNumber="5" Version="Exchange2007_SP1"/>
  </soap:Header>
  <soap:Body>
    <m:MoveItemResponse xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
      <m:ResponseMessages>
        <m:MoveItemResponseMessage ResponseClass="Success">
          <m:ResponseCode>NoError</m:ResponseCode>
          <m:Items/>
        </m:MoveItemResponseMessage>
      </m:ResponseMessages>
    </m:MoveItemResponse>
  </soap:Body>
</soap:Envelope>

It should be noted that this has gone through two updates from Fc23 to fc25 so I was wondering if it is carrying some cruft. Also, this account hasn't been created through GOA (which has a different problem in that messages sit in the outbox so I create an account standalone).

Comment 3 Milan Crha 2016-12-13 12:56:22 UTC
Thanks for the update. The response says that the move succeeded, thus the message is there where it should be, server-side. I also carry my accounts across Fedora versions, though my local cache could be purged meanwhile. In any case, I do not think this is related to server issues, it didn't report anything like that. Is that the evolution's UI, the folder listing for the EWS account didn't update for whatever reason, but if you go away from the folder and then back, then it'll be updated? Mine EWS folder does that on its own.

Comment 4 Christopher Brown 2016-12-13 13:11:18 UTC
Hi,

Ok, yes, when I try the repeat action it cannot find the object. But when I move away from the folder or call a refresh/F5, it still shows.

In FC24, I had to refresh to show the move which was annoying but I could work around. Now it is stuck and messages build up in inbox.

Comment 5 Christopher Brown 2016-12-13 13:19:19 UTC
It looks like the one created by GOA works but the one created manually doesn't. Unfortunately the GOA-created account has a bigger problem in that messages sometimes don't send. So I cannot use the GOA account.

Comment 6 Christopher Brown 2016-12-14 09:39:56 UTC
I have formatted and installed a fresh copy of FC25.
I configured using GOA, same problem.
I then configured standalone and this is back to working after forcing a refresh of inbox view.
So not perfect but better than it was.

We are upgrading our email server in two months from Exchange 2007 which is unsupported soon anyway.

Comment 7 Milan Crha 2016-12-14 13:06:47 UTC
I'm afraid there is something odd with the evolution-ews settings, which prevents correct behaviour. I do not know why it works for me, but not for you, right now. Could you search
   ~/.config/evolution/sources/
for a file which contains
   [EWS Backend]
line and attach it here, with all the private information (server addresses, email addresses and so on) censored/removed, please? Ideally replace them with 'x', thus it's distinguishable whether there was any value or not.

Mine says:

[Data Source]
DisplayName=xxx
Enabled=false
Parent=

[Collection]
BackendName=ews
CalendarEnabled=true
ContactsEnabled=true
MailEnabled=true
Identity=mcrha

[Authentication]
Host=xxx
Port=443
User=mcrha
Method=none
RememberPassword=true
ProxyUid=system-proxy
LimitTlsVersion=-1
CredentialName=

[Ews Backend]
Email=mcrha@xxx
Hosturl=https://xxx
Oaburl=http://xxx
OabOffline=true
FilterInbox=false
CheckAll=false
FilterJunk=false
FilterJunkInbox=false
GalUid=xxx
OalSelected=
Timeout=120
FoldersInitialized=false
UseImpersonation=false
ImpersonateUser=
ListenNotifications=false
PollMinutes=10
StoreChangesInterval=3
OverrideUserAgent=false
UserAgent=Microsoft Office/14.0 (Windows NT ,5.1; Microsoft Outlook 14.0.4734; Pro)

Comment 8 Christopher Brown 2016-12-14 13:43:59 UTC
Created attachment 1231729 [details]
EWS Backend file

**** are obfuscated info.

Comment 9 Christopher Brown 2016-12-14 13:45:11 UTC
Hello,

Have attached, it now seems to have reverted again so I'm having to delete messages.

Comment 10 Milan Crha 2016-12-15 10:17:47 UTC
Thanks for the update. I see that the difference between your and mine settings, apart of those obvious like server addresses and user names/emails, are these two:

   FilterInbox=true
   ListenNotifications=true

You have them 'on', while I have them 'off'. Your server claims to be Exchange 2007 with Service Pack 1 installed, if I'm not mistaken, where the Listen for server change notifications is supported only since Exchange 1010, thus the option should be simply void, regardless what you've set there.

I tried with my instance, which is pretty much the same server, and I can drag & drop the messages between folder, including from Inbox to its subfolder and back.

How do you precisely move the messages between the folders, please?

Comment 11 Christopher Brown 2016-12-19 16:31:15 UTC
Hi Milan,

I've set both of those options to False (unticked in the account component) and unfortunately it hasn't helped.

The messages get moved but the inbox not updated. When I try and perform another operation on them, I get:

"The specified object was not found in the store".

But then even when I close and re-open evolution the messages still show.

This is the same from two separate laptops, both running fc25.

Comment 12 Milan Crha 2016-12-19 17:13:24 UTC
(In reply to Milan Crha from comment #10)
> How do you precisely move the messages between the folders, please?

This ^^^ is an important question for me.

Even I do not believe this would be due to consecutive updates, I'm also out of clue for the reason why the folder might not receive its updates. I expect that you move the messages from a real Inbox, not from a search folder which collects messages from your Inbox and possibly other folders. Anyway, you can also try to go to 
   ~/.cache/evolution/mail/<ews-uid>/
and simply move away that whole folder. It'll make the evolution-ews re-download the whole cache from scratch. You can recognize the right folder by its content, the one for EWS account contains a 'folder-tree' file.

Comment 13 Christopher Brown 2016-12-19 17:27:55 UTC
> (In reply to Milan Crha from comment #10)
> > How do you precisely move the messages between the folders, please?
> 
> This ^^^ is an important question for me.

Sorry, I did not answer this.

I either right-click on an email and choose move to folder, select folder

or

drag and drop

Neither work.(In reply to Milan Crha from comment #12)

Comment 14 Christopher Brown 2016-12-19 17:38:12 UTC
I have just tried moving and re-creating the folder but this hasn't helped unfortunately.

I am also out of ideas.

Comment 15 Christopher Brown 2017-02-15 17:25:36 UTC
Closing this for now. Thanks for your help anyway.


Note You need to log in before you can comment on or make changes to this bug.