Author |
|
busbar Newbie
Joined: 26 September 2017 Location: Egypt
Online Status: Offline Posts: 7
|
Posted: 20 October 2019 at 1:52am | IP Logged
|
|
|
Hi, I have been downloading items from EWS as MIME item then uploading them to other mailboxes based on our applications rules, this works fine but it loses the read/unread status.
To do this I need to set the IsRead flag on the EWS item, but since I am downloading the item as MIME, I can't do that.
The other alternative is to download the items as EWS items then upload them, but how to do it, i can't seem to find a way to do it.
can you hint me.
Thanks.
|
Back to Top |
|
|
busbar Newbie
Joined: 26 September 2017 Location: Egypt
Online Status: Offline Posts: 7
|
Posted: 20 October 2019 at 1:57am | IP Logged
|
|
|
I think I got it, using Mailitem.save(ParentFolderID), would work, right ?!
Will test it.
Thanks.
|
Back to Top |
|
|
busbar Newbie
Joined: 26 September 2017 Location: Egypt
Online Status: Offline Posts: 7
|
Posted: 20 October 2019 at 2:17am | IP Logged
|
|
|
No it is not working as it is still maps to its original service, how can I load the EWS Item to a new Item for a new ews service
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 21 October 2019 at 1:47am | IP Logged
|
|
|
If your issue with IsRead is that you're downloading MailMessage a not EwsItem, this doesn't prevent you from performing two operations instead of just one.
You can download the mail message (operation 1, Ews.DownloadEntireMessage) and then download flags for the same message (operation 2, Ews.DownloadItem).
You can then also use Ews.UpdateItem in another mailbox after uploading the message there to change read/unread status or whatever.
Regards,
Alex
|
Back to Top |
|
|