Description of problem: Every time when occurs error while sending mail, and I press "Try again" button. In "Drafts" folder every time created copy of message. Demonstation video: https://docs.google.com/open?id=0B0nwzlfiB4aQUDhURHA2Y1JKcFk
Ohhh Google can't encode correcly, please download ogv for playing localy.
When I delete these messages from the folder "Drafts", then they go to the folder "Deleted Items" with blank field "From".
Created attachment 609983 [details] Blank field from when I deleted Drafts items
Thanks for a bug report. I tried to reproduce this on my machine, but I do not have this shown here. It seems to me that this is done on your server, something what is out of evolution hands. We can verify that when you run evolution with debugging for evolution-ews, and check what is sent and received when you press "Try Again". You can do that like this: a) run evolution on console: $ EWS_DEBUG=2 evolution b) do the sending, when you stop at the dialog with "Try Again" c) mark on the console from a) place of the current output (either select one line at the end, or scroll few lines above the end, though the later depends on settings for your console) d) click Try Again e) gather what's new on the console There should be a CreateItem request with "SendOnly" MessageDisposition, I see two here, immediately followed by a CreateItemResponseMessage filled with <m:MessageText>Mailbox has exceeded maximum mailbox size.</m:MessageText> The part with empty From is correct, evolution-ews sends messages this way, because exchange servers doesn't like From being filled and fill that rather themself.
A little update, I had set size limits for whole mailbox too, which prevented the save to Drafts, but when I disabled it and reproduced other error, then the message was saved there, multiple times as for you. Still, the EWS_DEBUG log suggests that this is done by the server, not by Evolution.
The request headers <?xml version="1.0" encoding="UTF-8" standalone="no"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"><SOAP-ENV:Header><types:RequestServerVersion xmlns:types="http://schemas.microsoft.com/exchange/services/2006/types" Version="Exchange2007_SP1"/></SOAP-ENV:Header><SOAP-ENV:Body xmlns:messages="http://schemas.microsoft.com/exchange/services/2006/messages"><messages:CreateItem xmlns="http://schemas.microsoft.com/exchange/services/2006/types" MessageDisposition="SendOnly"><messages:Items><Message><MimeContent>TWVzc2FnZS1J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jMTA3MjsNCjwvQk9EWT4NCjwvSFRNTD4NCg0KLS09LStlR01FRW9YV3BnYThZMnNYY1FlLS0NCg==</MimeContent><ExtendedProperty><ExtendedFieldURI PropertyTag="0x0E07" PropertyType="Integer"/><Value>1</Value></ExtendedProperty></Message></messages:Items></messages:CreateItem></SOAP-ENV:Body></SOAP-ENV:Envelope> > POST /EWS/Exchange.asmx HTTP/1.1 > Soup-Debug-Timestamp: 1346917208 > Soup-Debug: SoupSessionAsync 1 (0xa2e0260), ESoapMessage 178 (0xa2e5010), SoupSocket 178 (0xb5513060) > Host: cherry2.afbank.ru > User-Agent: Evolution/3.4.4 > Connection: Keep-Alive > Content-Type: text/xml; charset=utf-8 > Authorization: NTLM TlRMTVNTUAABAAAABYIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAA > > <?xml version="1.0" encoding="UTF-8" standalone="no"?> > <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"><SOAP-ENV:Header><types:RequestServerVersion xmlns:types="http://schemas.microsoft.com/exchange/services/2006/types" Version="Exchange2007_SP1"/></SOAP-ENV:Header><SOAP-ENV:Body xmlns:messages="http://schemas.microsoft.com/exchange/services/2006/messages"><messages:CreateItem xmlns="http://schemas.microsoft.com/exchange/services/2006/types" MessageDisposition="SendOnly"><messages:Items><Message><MimeContent>TWVzc2FnZS1JRDogPDEzNDY5MTcyMDguMTYxNzcuNi5jYW1lbEB0ZWxlY29uMTdsLmFmYmFuay5ydT4NClN1YmplY3Q6ID0/VVRGLTg/UT89RDA9QjE9RDA9QkU9RDE9ODI9RDA9QjI9RDA9QjA/PQ0KRnJvbTogDQpUbzogc3Zpc3R1bm92YWVhQGdtYWlsLmNvbQ0KRGF0ZTogVGh1LCAwNiBTZXAgMjAxMiAxMzo0MDowOCArMDYwMA0KQ29udGVudC1UeXBlOiBtdWx0aXBhcnQvYWx0ZXJuYXRpdmU7IGJvdW5kYXJ5PSI9LStlR01FRW9YV3BnYThZMnNYY1FlIg0KWC1NYWlsZXI6IEV2b2x1dGlvbiAzLjQuNCAoMy40LjQtMS5mYzE3KSANCk1pbWUtVmVyc2lvbjogMS4wDQoNCg0KLS09LStlR01FRW9YV3BnYThZMnNYY1FlDQpDb250ZW50LVR5cGU6IHRleHQvcGxhaW47IGNoYXJzZXQ9IktPSTgtUiINCkNvbnRlbnQtVHJhbnNmZXItRW5jb2Rpbmc6IDhiaXQNCg0Kws/Sz8TBDQoNCi0tPS0rZUdNRUVvWFdwZ2E4WTJzWGNRZQ0KQ29udGVudC1UeXBlOiB0ZXh0L2h0bWw7IGNoYXJzZXQ9InV0Zi04Ig0KQ29udGVudC1UcmFuc2Zlci1FbmNvZGluZzogN2JpdA0KDQo8IURPQ1RZUEUgSFRNTCBQVUJMSUMgIi0vL1czQy8vRFREIEhUTUwgNC4wIFRSQU5TSVRJT05BTC8vRU4iPg0KPEhUTUw+DQo8SEVBRD4NCiAgPE1FVEEgSFRUUC1FUVVJVj0iQ29udGVudC1UeXBlIiBDT05URU5UPSJ0ZXh0L2h0bWw7IENIQVJTRVQ9VVRGLTgiPg0KICA8TUVUQSBOQU1FPSJHRU5FUkFUT1IiIENPTlRFTlQ9Ikd0a0hUTUwvNC40LjQiPg0KPC9IRUFEPg0KPEJPRFk+DQomIzEwNzM7JiMxMDg2OyYjMTA4ODsmIzEwODY7JiMxMDc2OyYjMTA3MjsNCjwvQk9EWT4NCjwvSFRNTD4NCg0KLS09LStlR01FRW9YV3BnYThZMnNYY1FlLS0NCg==</MimeContent><ExtendedProperty><ExtendedFieldURI PropertyTag="0x0E07" PropertyType="Integer"/><Value>1</Value></ExtendedProperty></Message></messages:Items></messages:CreateItem></SOAP-ENV:Body></SOAP-ENV:Envelope> < HTTP/1.1 401 Unauthorized < Soup-Debug-Timestamp: 1346917208 < Soup-Debug: ESoapMessage 178 (0xa2e5010) < Server: Microsoft-IIS/7.5 < Set-Cookie: exchangecookie=0e14177efaad429fbfedc9fc2f736d80; expires=Fri, 06-Sep-2013 07:40:08 GMT; path=/; HttpOnly < X-Powered-By: ASP.NET < Date: Thu, 06 Sep 2012 07:40:08 GMT < Content-Length: 0 > POST /EWS/Exchange.asmx HTTP/1.1 > Soup-Debug-Timestamp: 1346917208 > Soup-Debug: SoupSessionAsync 1 (0xa2e0260), ESoapMessage 178 (0xa2e5010), SoupSocket 178 (0xb5513060), restarted > Host: cherry2.afbank.ru > User-Agent: Evolution/3.4.4 > Connection: Keep-Alive > Content-Type: text/xml; charset=utf-8 > Content-Length: 2062 > Authorization: NTLM TlRMTVNTUAADAAAAGAAYAG4AAAAYABgAhgAAAAwADABAAAAAFAAUAEwAAAAOAA4AYAAAAAAAAAAAAAAAAYIAAEEARgBCAEEATgBLAG0AXwBnAGEAdgByAGkAbABvAHYAVQBOAEsATgBPAFcATgBJ7Vyjz3Op1QEv5oUxE9aXX+5PeOaAzL81u8RgN+zB5kQ4IbZE0yjmOaH+UsgzBaQ= > > <?xml version="1.0" encoding="UTF-8" standalone="no"?> > <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"><SOAP-ENV:Header><types:RequestServerVersion xmlns:types="http://schemas.microsoft.com/exchange/services/2006/types" Version="Exchange2007_SP1"/></SOAP-ENV:Header><SOAP-ENV:Body xmlns:messages="http://schemas.microsoft.com/exchange/services/2006/messages"><messages:CreateItem xmlns="http://schemas.microsoft.com/exchange/services/2006/types" MessageDisposition="SendOnly"><messages:Items><Message><MimeContent>TWVzc2FnZS1JRDogPDEzNDY5MTcyMDguMTYxNzcuNi5jYW1lbEB0ZWxlY29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FRW9YV3BnYThZMnNYY1FlLS0NCg==</MimeContent><ExtendedProperty><ExtendedFieldURI PropertyTag="0x0E07" PropertyType="Integer"/><Value>1</Value></ExtendedProperty></Message></messages:Items></messages:CreateItem></SOAP-ENV:Body></SOAP-ENV:Envelope> < HTTP/1.1 200 OK < Soup-Debug-Timestamp: 1346917208 < Soup-Debug: ESoapMessage 178 (0xa2e5010) < Cache-Control: private < Transfer-Encoding: chunked < Content-Type: text/xml; charset=utf-8 < Server: Microsoft-IIS/7.5 < Set-Cookie: exchangecookie=08a2f3ca199c4a749fed61a10871fbc3; expires=Fri, 06-Sep-2013 07:40:08 GMT; path=/; HttpOnly < X-AspNet-Version: 2.0.50727 < Persistent-Auth: true < X-Powered-By: ASP.NET < Date: Thu, 06 Sep 2012 07:40:08 GMT <?xml version="1.0" encoding="utf-8"?> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Header> <h:ServerVersionInfo xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" MajorVersion="14" MinorVersion="2" MajorBuildNumber="298" MinorBuildNumber="4" Version="Exchange2010_SP2"/> </s:Header> <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <m:CreateItemResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"> <m:ResponseMessages> <m:CreateItemResponseMessage ResponseClass="Error"> <m:MessageText>Mailbox has exceeded maximum mailbox size.</m:MessageText> <m:ResponseCode>ErrorQuotaExceeded</m:ResponseCode> <m:DescriptiveLinkKey>0</m:DescriptiveLinkKey> <m:Items/> </m:CreateItemResponseMessage> </m:ResponseMessages> </m:CreateItemResponse> </s:Body> </s:Envelope>
Do I understand that the copy of the message in the "Draft" folder does Exchange server?
Thanks for the update. I see the same actions being logged on my machine too (or similar, I've updated libsoup, thus there is no Unauthorized step, but otherwise it's just the same). (In reply to comment #7) > Do I understand that the copy of the message in the "Draft" folder does > Exchange server? Yes, I believe it does the Exchange server on its own. The protocol log shows that evolution-ews doesn't try to save to drafts at all, it only instructs the server to send a message.
Very strange but with Outlook we have much expected behavior. Not created copy in "Draft" folder also dosn't any error message, but we see message in "Outbox" folder. Please see my video: https://docs.google.com/open?id=0B0nwzlfiB4aQaUN3NGV2dzA4YTA
Also I try presed in Evolution "Save to Outbox" button but get new Bug!!! Please see also this video: https://docs.google.com/open?id=0B0nwzlfiB4aQWnhtNWJpSnlyRTA
https://bugzilla.redhat.com/show_bug.cgi?id=802306
(In reply to comment #9) > Very strange but with Outlook we have much expected behavior. Not created > copy in "Draft" folder also dosn't any error message, but we see message in > "Outbox" folder. It seems to me that it's a "feature" of EWS protocol itself. I suppose the Outlook is either using different protocol (like MAPI), or does some magic to prevent this behaviour, which I didn't see in their documentation for EWS protocol when briefly looking there. Even after change to instruct server to save sent copies to Sent Items doesn't help, the draft is created anyway. (In reply to comment #10) > Also I try presed in Evolution "Save to Outbox" button but get new Bug!!! It's sort of bug. Evolution doesn't use Outboxes of each account, it uses only its own Outbox, the one located in On This Computer. There is a bug [1] upstream to support multiple Outboxes, but there's a description why not to do that. [1] https://bugzilla.gnome.org/show_bug.cgi?id=354197 (In reply to comment #11) > https://bugzilla.redhat.com/show_bug.cgi?id=802306 It seems like either gtk3 bug (it crashes down in their code), or there is some reference-counting error in the code, which frees some object used by the gtk3 function earlier than expected. The thing is that it would crash on various places, but the bug #802306 has few duplicates, thus it seems like a gtk3 bug to me.
(In reply to comment #12) > It seems to me that it's a "feature" of EWS protocol itself. I suppose the > Outlook is either using different protocol (like MAPI), or does some magic > to prevent this behaviour, which I didn't see in their documentation for EWS > protocol when briefly looking there. Even after change to instruct server to > save sent copies to Sent Items doesn't help, the draft is created anyway. yes, I also try repeat this with evolition-mapi, all right (not created mail copies in Draft folder) This mean that it bug of exchange server? > (In reply to comment #10) > It's sort of bug. Evolution doesn't use Outboxes of each account, it uses > only its own Outbox, the one located in On This Computer. There is a bug [1] > upstream to support multiple Outboxes, but there's a description why not to > do that. > > [1] https://bugzilla.gnome.org/show_bug.cgi?id=354197 But this bug with WONTFIX state :( I don't understand logic. Why do different Outboxes folder for each protocol if always they are copied in folder "On This Computer" ??? > (In reply to comment #11) > It seems like either gtk3 bug (it crashes down in their code), or there is > some reference-counting error in the code, which frees some object used by > the gtk3 function earlier than expected. The thing is that it would crash on > various places, but the bug #802306 has few duplicates, thus it seems like a > gtk3 bug to me. But this bug good reproduce in this case. Means always reproducible.
(In reply to comment #13) > yes, I also try repeat this with evolition-mapi, all right (not created mail > copies in Draft folder) This mean that it bug of exchange server? I think it's a feature of exchange server when using EWS protocol. Though maybe it's a bug. It seems to me it's on their side, because I do not see a request to save in drafts on error in the EWS_DEBUG=2 log. > > [1] https://bugzilla.gnome.org/show_bug.cgi?id=354197 > > But this bug with WONTFIX state :( > I don't understand logic. Why do different Outboxes folder for each protocol > if always they are copied in folder "On This Computer" ??? The WontFix is for a reason of not implementing Outbox folders for respective accounts. Evolution uses only its own Outbox, where it stores all messages to be send later. The evolution-ews marks Exchange Server's Outbox folder with a flag of Outbox just to indicate it is Exchange's Outbox folder, though not used by evolution itself. > > (In reply to comment #11) > > It seems like either gtk3 bug (it crashes down in their code), or there is > > some reference-counting error in the code, which frees some object used by > > the gtk3 function earlier than expected. The thing is that it would crash on > > various places, but the bug #802306 has few duplicates, thus it seems like a > > gtk3 bug to me. > > But this bug good reproduce in this case. Means always reproducible. Do you mean bug #802306 or this bug with saving to drafts? I am not able to reproduce bug #802306 on my machine, somehow.
(In reply to comment #14) > The WontFix is for a reason of not implementing Outbox folders for > respective accounts. Evolution uses only its own Outbox, where it stores all > messages to be send later. The evolution-ews marks Exchange Server's Outbox > folder with a flag of Outbox just to indicate it is Exchange's Outbox > folder, though not used by evolution itself. I think be better if evolution will work as now, but not sended messages to showed for each box separately. Means that all Outbox folders stored locally, but separately for each mailbox/protocol. > Do you mean bug #802306 or this bug with saving to drafts? I am not able to > reproduce bug #802306 on my machine, somehow. For me evolution always crashed after a few taps "Send/Recive" button when there are messages in "Outbox" folder located in "On This Computer"
(In reply to comment #15) > For me evolution always crashed after a few taps "Send/Recive" button when > there are messages in "Outbox" folder located in "On This Computer" That might be this one: https://bugzilla.gnome.org/show_bug.cgi?id=683349