Transport Agent: Discard Mailbox-Full type of NDR

Hello folks, me again. It was some time I didn’t have the opportunity to blog about Transport Agents so I thought to write something about this. This week I have been working with a customer desiring to block specific types of Non-Delivery Reports. In the example, the idea is to block NDR’s such as the…

0

Transport Agent: Rewriting Sender or Recipient Domain

Lately I’ve been working on few Transport Agents which I feel maybe handy to share. While the logic adopted is very simple, the sample showcase how to inspect and modify entries in the P1 and P2 headers.   The requirement was for 2 separate agents one rewriting the sender domain and one rewriting the recipient…

2

PowerShell: Apply Retention Policies or Auto-Archive Settings to Inbox sub-folders

This week I’ve been spending some time in reviewing how Exchange Retention Policies and Outlook Auto-Archive setting are stored in a user mailbox.   If you’re wondering whether to start using Outlook Auto-Archive or the Exchange Retention policy I would like to call out some differences.   How important is enterprise data? If the answer to this…

2

Transport Agent: Handle email address tagging

With email being the preferred way to receive notifications, it may happen to all of us to receive emails that are not extremely relevant or which do not require immediate attention.   This, as example, can be consists of Forums or other services notifications. Some e-mail providers offer the possibility to use a technique called…

0

PowerShell: Batching operations to avoid throttling.

More and more often we are receiving escalations as well as general questions on how to batch a given command, in order to avoid throttling or long running sessions that terminates with disconnections. While this may be rather straight-forward to implement, at some times it is inconvenient to build a whole script just to execute…

0

Programmatically manage OWA 2013 folder conversation view settings

As a few people have requested this, I’ve written a .Net sample for managing folder Conversation View settings for OWA 2013. In Exchange 2013, the Conversation View settings are stored the FolderViewState element of the OWA.ViewStateConfiguration configuration item stored in the associated content of the Root folder. This sample can be used to list or…

1

EWS: How to send signed email using the EWS Managed API

A question that keeps popping up is how to send signed or encrypted email using EWS.  A colleague (thank-you Vladimir!) has recently put together some sample code showing how to do exactly that using the EWS Managed API.  Based on his sample code, I’ve been able to partially complete my Windows Forms application that shows how…


PowerShell: Remove duplicate items from a mailbox

I’ve extended the script I posted a few months ago so that now it can search for duplicate contacts and email items (not just appointments).  I’ve posted the script to the Office Developer Centre, and rather than having to maintain two pages, I’ll just leave a link here: https://code.msdn.microsoft.com/exchange/PowerShellEWS-Remove-54228d71 Any new code samples will be…


PowerShell: Update folders (delete/purge, or add/delete properties)

Please note: the script has now been moved to https://code.msdn.microsoft.com/PowerShell-Update-mailbox-1e17866d. This script allows you to update folders by adding or removing properties.  You can also use the script to purge or delete the folders. To delete properties from a folder: .\Update-Folders.ps1 -Mailbox 1@e14.local -FolderPath “\Folder 1” -ProcessSubFolders -DeleteFolderProperties @(“0x36160102”, “0x36DA0102”) In the above example, MAPI properties…


EWS: Performance issues when accessing multiple mailboxes?

We’ve had a few cases come through over the past few months regarding slow performance against Office Online from an EWS service application.  Several of them have come down to a very simple .Net setting that isn’t necessarily obvious.  In fact, I first hit the issue myself when creating a streaming notification sample application, and it…

2