Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

README.md

Synopsis

SetPrivateFlags.exe will SET the private flag on all messages matching a subject substring.

See https://github.com/Apoc70/RemovePrivateFlag, if you want to remove private message flags.

Why should I use this

When you migrate from an alternative email server solution (e.g. Lotus Notes) and a mailbox contains confidential messages, you might want to mark such message as private after content migration.

Installation

Simply copy all files to a folder location where you are allowed to execute it and the Exchange servers are reachable.

Requirements

  • Exchange Server 2013/2016 (Tested with CU15, maybe it will work with Exchange 2007/2010 as well)
  • Application Impersonation Rights if you want to change items on other mailboxes than yours
  • Microsoft.Exchange.WebServices.dll, log4net.dll (are provided in the repository and also in the binaries)

Usage

SetPrivateFlags.exe -mailbox user@domain.com -subject "[private]"

Search the mailbox of user@domain.com for all message containing [private] in the subject text and ask for changing each item

SetPrivateFlags.exe -mailbox user@domain.com -subject "[private]" -noconfirmation

Search the mailbox of user@domain.com for all message containing [private] in the subject text and all items are altered without asking for confirmation

Parameters

Mailbox which you want to alter

  • optional: -logonly

Items will only be logged

  • optional: -noconfirmation

Messages will be set to normal without confirmation

  • optional: -ignorecertificate

Ignore certificate errors. Interesting if you connect to a lab config with self signed certificate

  • optional: -impersonate

If you want to alter a other mailbox than yours set this parameter

If set together with -password this credentials would be used. Elsewhere the credentials from your session will be used

If you set an specific URL this URL will be used instead of autodiscover. Should be used with -ignorecertificate if your CN is not in the certficate

  • optional: -allowredirection

If your autodiscover redirects you the default behaviour is to quit the connection. With this parameter you will be connected anyhow

License

MIT License

About

Set the PRIVATE flag on Exchange mailbox messages

Topics

Resources

License

Packages

No packages published

Languages