Solved

Can a rule or notification be set for new email count in an inbox?

Posted on 2011-02-25
7
178 Views
Last Modified: 2013-02-12
We process faxes with our gateway which sends it to a mailbox.  From there our Cisco Unity server then processes those (every 2 minutes) to the intended designated mailbox.  Is there any way to set up an Exchange Outlook notification/rule/alert if new emails in that first inbox increase to a certain count (which for us, indicates a problem with the service that processes them)  That first mailbox usually doesn't have more than 10  emails in it at any 2 minute interval. Hope that made sense!
0
Comment
Question by:hammer101
  • 3
  • 2
7 Comments
 
LVL 15

Expert Comment

by:markdmac
ID: 34987158
Yes it is possible to run a VBScript to get the item count, however it will require access to an outlook profile to do it.  There might be a way to do it with PowerShell too, what version of Exchange are you using?
0
 

Author Comment

by:hammer101
ID: 34998641
Exchange 2007, but shortly (within a month or two) we are going to 2010
0
 
LVL 15

Expert Comment

by:markdmac
ID: 34999003
OK, I am currently bogged down with work stuff but this will be fun to work on later.  Will get back to you hopefully with a PowerShell script.
0
 
LVL 15

Accepted Solution

by:
markdmac earned 50 total points
ID: 35001160
Here you go.  You didn't say what you want it to do so this example will check the given mailbox and give a message if there are 10 or more messages in the mailbox.
$Count = Get-MailboxStatistics -Database DATABASENAME -Identity USERNAME 
If ($Count.ItemCount -ge 10){
$objShell = new-object -comobject wscript.shell
$Msg = $objShell.popup("The mailbox has 10 or more messages in it.")
}

Open in new window

0
 

Author Comment

by:hammer101
ID: 35001232
Hi Markdmac,

thanks for the script.  I have forwarded it on to our Exchange Admin, as this is out of my league.  I'll let you know what they say regarding it and get back to you.
thanks again.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Set OWA language and time zone in Exchange for individuals, all users or per database.
If you don't know how to downgrade, my instructions below should be helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now