How to get specific email from Exchange 2007 by script?
Hello all!
I have a following situation: I have one user with mailbox in Exchange 2007. There is some script that each several minutes sends one mail with some subject name to this use. I need to create a script that will look for this subject name in inbox of
this user and after finds it will delete it.
How can i create script, that reads emails of this user from Exchange 2007 and not from Outlook?
Thanks!
April 14th, 2012 1:12pm
The short answer is that you will probably want to use Exchange Web Services for that. I recommend that you post your question in the Development forum, http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopment/threads,
but before doing that you might want to start doing research yourself on how to program with Web Services.
Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
Free Windows Admin Tool Kit Click here and download it now
April 14th, 2012 1:44pm
Ed Crowley
Thanks a lot!
April 15th, 2012 2:04am
You're welcome. Please feel free to mark my post as the answer and/or helpful as appropriate.Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
Free Windows Admin Tool Kit Click here and download it now
April 16th, 2012 12:52am
Hi pavlenych,
When you want to remove specific email from Exchange 2007, you can use this command to do that:
Export-mailbox -identity usermailbox -subjectkeywords "subject name" -IncludeFolders "\Inbox" -DeleteContent
You can know more details from this document:
Removing specific messages from your Exchange Server
http://blogs.technet.com/b/exchange/archive/2010/10/27/removing-specific-messages-from-your-exchange-server.aspx
Thanks,
EvanEvan Liu
TechNet Community Support
April 16th, 2012 3:43am