Prevent sending receipts with ExchangeClient

Hi

I use the ExchangeClient class to read and delete messages from the server. If a sender has requested a read receipt, he now receives a message that the message was deleted without reading. I turned of all receipts in Outlook but this seems to be a local Outlook setting as it does not affect the Aspose behavior. Is there any way to turn off sending of read receipts when using Aspose ExchangeClient??

Thanks

Bart

Hi Bart,

Thanks for considering Aspose.

Our developers are looking into this issue and will get back to you soon.

Hello,

In Aspose.Network.Exchange.ExchangeClient only sends delete request to the server. It looks like we need to set some flags to the mail message before the delete request. We are still investigation on this issue. I will keep you posted.

Cheers.

Hi,

Is there any progress on this? Are you actually going to implement the flag and when can I expect this? Currently users that send an e-mail to the inbox processed with Aspose receive a receipt that their mail was deleted before being read (those user that request a read-receipt). Not so nice....

Thanks!

Bart

Hello,

I think we can first mark the message to read before the delete. We need to add some feature to support this. I will keep you posted.

Thanks,

Hello, Bart,

I have created a hotfix for you. A new method named "SetRead", is exposed to mark a given message to read.

Please try to call this method to set the message with read confirm attribute before delete it.

public void SetRead(string messageUri);

Hello, Bart,

I attached the hotfix there for your reference.

Thanks

Hi

The method is there, but this version of the DLL throws a WebException when trying to load messages:

System.Net.WebException: The remote server returned an error: (400) Bad Request.\r\n at Aspose.Network.Exchange.ExchangeClient.x02b56011810c316c(String x8b5b49efcd08ae0a, String x196c05a09a123da6)

Code looks as follows:

_client = new ExchangeClient(mailboxURI, credentials);

_client.KeepAlive = true;

ExchangeMailboxInfo mailbox = _client.GetMailboxInfo();

ExchangeMessageInfoCollection messages = null;

messages = _client.ListMessages(mailbox.InboxUri, false); // THROWS!

Version 4.6.0.0 has no problem with this code.

Any suggestions??

Thanks

Bart van Haaff

Hello, Bart,

Could you please try the attached dll?

Thanks

Hi,

This version works!

Also the SetRead() works as expected.

Regards and thanks a lot.

Bart van Haaff