Bug 674034

Summary: unable to send e-mail with exchange-mapi account in evolution
Product: [Fedora] Fedora Reporter: Gianluca Cecchi <gianluca.cecchi>
Component: openchangeAssignee: Matthew Barnes <mbarnes>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 14CC: mbarnes, mcrha, wanghui_999
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openchange-0.9-11.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-10 21:28:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Gianluca Cecchi 2011-01-31 11:50:42 UTC
Description of problem:
unable to send e-mail with exchange-mapi account in evolution

Version-Release number of selected component (if applicable):
openchange-0.9-9.fc14.x86_64

How reproducible:
always

Steps to Reproduce:
1. created exchange mapi account to connect to an exchange 2007 server and set it as my default account
2. I'm able to receive e-mail
3. I'm not able to send e-mail
  
Actual results:
I still see the mail in outbox under "On this computer" tree 
and in the tray I see error icon.
After clicking it, it gives a windows with:
"
Error while Sending message.

ModifyRecipients: MAPI error ecRpcFormat (0x4b6) occurred
"

If I run evolution from terminal, when I click the send button I can see:

(evolution:28634): libexchangemapi-CRITICAL **: make_mapi_error: assertion `*perror == NULL' failed

(evolution:28634): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: Could not send message.
evolution-mail-Message: Error occurred while existing dialogue active:
ModifyRecipients: MAPI error ecRpcFormat (0x4b6) occurred

Clearly this is a blocking facto for using exchange-mapi....

Other related packages currently installed are:
samba4-libs-4.0.0-24.alpha11.fc14.x86_64
evolution-mapi-0.32.1-1.fc14.x86_64
evolution-data-server-2.32.1-1.fc14.x86_64
evolution-2.32.1-1.fc14.x86_64

Expected results:
to be able to send e-mail

Additional info:
I posted bug against openchange as I saw this post that could resolve the problem:
http://tracker.openchange.org/issues/323
and it seems fixed...

Comment 1 Milan Crha 2011-02-01 08:36:00 UTC
Thanks for a but report. I'm not sure if this is enough, because I see also other changes in the code in the area of ModifyRecipients, which were done after 0.9 release, but let's see.

I built for you a test package of openchange [1]. Please install it, and retest, whether it'll help for you. if it will, then I'll be happy to do an update. Thanks in advance.

[1] http://koji.fedoraproject.org/koji/taskinfo?taskID=2754081

Comment 2 Gianluca Cecchi 2011-02-01 09:03:46 UTC
Ok. 
In the mean time I downloaded openchange-0.9-10.1.fc14.x86_64.rpm from the link and updated my system.
I will be able to test only tomorrow when I have access to the Exchange server.
I'll let you know.

Comment 3 Gianluca Cecchi 2011-02-02 08:39:16 UTC
eh eh... it works ;-)

I tried both sending to a contact on exchange (auto-completion works out of the box too, btw) and to an external address (my gmail account)

If I run form a terminal this is the output as soon as I start evolution:

[gcecchi ~]$ evolution
** (evolution:4473): DEBUG: Loading Exchange MAPI Plugin 

** (evolution:4473): DEBUG: MAPI listener is constructed with 1 listed MAPI accounts 

And nothing else when I send the e-mails...

But in the mean time it seems that receiving doesn't work any more.... I get:
(evolution:4473): camel-mapi-provider-WARNING **: mapi_sync_deleted_free: Fetching items failed: OpenMessage: MAPI error MAPI_E_CALL_FAILED (0x80004005) occurred

I get a "successfully authenticated" when I click the button "Authenticate" in "receiving mail" tab, and I can see the folders size in "exchange setting" tab....

Comment 4 Gianluca Cecchi 2011-02-02 09:21:02 UTC
Probably it was a problem related to first sync after setting again the exchange account in evolution.
I noticed some errors during initial synch of folders with the older version too..
At third attempt the inbox folder was synchronized and I get the new e-mails arrived without problem (till now ... '-)
I can test today for the whole day and then give you a final feedback.
In general I receive about 100-200 mails (admin and logging mails included) and send about ten....
Let me know if you would like further tests to be done at my side...

Comment 5 Milan Crha 2011-02-02 10:46:00 UTC
OK, if it works then I'm doing a real update. Thanks for testing.

Comment 6 Fedora Update System 2011-02-02 11:08:29 UTC
openchange-0.9-11.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/openchange-0.9-11.fc14

Comment 7 Fedora Update System 2011-02-02 19:28:32 UTC
openchange-0.9-11.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update openchange'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/openchange-0.9-11.fc14

Comment 8 Fedora Update System 2011-02-10 21:28:02 UTC
openchange-0.9-11.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 wanghui_999 2011-03-14 14:15:47 UTC
(In reply to comment #8)
> openchange-0.9-11.fc14 has been pushed to the Fedora 14 stable repository.  If
> problems still persist, please make note of it in this bug report.

With openchange-0.9-11.fc14 installed, I still can not send email. 

The messagebox says "ModifyRecipients:发生了 MAPI 错误 MAPI_E_CALL_FAILED (0x80004005)"

The following message is on the terminal console:


** (evolution:7807): DEBUG: Loading Exchange MAPI Plugin 

** (evolution:7807): DEBUG: MAPI listener is constructed with 1 listed MAPI accounts 

(evolution:7807): libexchangemapi-CRITICAL **: make_mapi_error: assertion `*perror == NULL' failed

(evolution:7807): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: 无法发送消息。

Comment 10 Milan Crha 2011-03-15 07:18:25 UTC
Thanks for the update. It's just a general error, that the function call failed, where the previous error (like the one in comment #0) is more concrete. This failure happened when evolution-mapi was setting recipients on a MAPI message. How did you write your recipients in the composer, please? Was it just a user name for a user on the server, or just an email address, or maybe both? I would like to ask you to try to use only the email address, like user , whether it'll help, because it could happen that this version of openchange doesn't have completely fixed (backported) unicode letters transformations (or something similar) within recipient addresses. Thanks in advance.

Comment 11 wanghui_999 2011-03-15 15:01:24 UTC
I tried according to your suggestion. If the recipient is not in the GAL, no matter how to write it, the mail can always be sent. If the recipient is in the GAL, no matter how to write it, the mail always stays in the outbox. :)
Thanks in advance.

Comment 12 Milan Crha 2011-03-16 07:49:23 UTC
Hmm, this sounds like bug #588486, which was fixed in openchange

Comment 13 wanghui_999 2011-03-16 08:12:18 UTC
(In reply to comment #12)
> Hmm, this sounds like bug #588486, which was fixed in openchange

But it is not fixed now.

Comment 14 wanghui_999 2011-03-16 08:20:36 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > Hmm, this sounds like bug #588486, which was fixed in openchange
> 
> But it is not fixed now.

Bug #588486 is occured between two trusted domain. I am in the only domain. Perhaps they are not same.

Comment 15 Milan Crha 2011-03-16 09:02:21 UTC
Oh, I see that the change regarding bug #588486 was backported to
openchange-0.9-11, and it fixed the original error of this bug too.

Would you mind to open a new bug report so we can investigate what is going on for you and do not make a noise here, please?

Comment 16 wanghui_999 2011-03-16 13:00:01 UTC
(In reply to comment #15)
> Oh, I see that the change regarding bug #588486 was backported to
> openchange-0.9-11, and it fixed the original error of this bug too.
> 
> Would you mind to open a new bug report so we can investigate what is going on
> for you and do not make a noise here, please?

Thank you. I opened a new bug #688141.