Created
July 7, 2013 18:51
-
-
Save najamsk/5944505 to your computer and use it in GitHub Desktop.
get emails objects of any folder in your outlook inbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function OutlookEmailLog($month) | |
{ | |
#$outlook= New-object -ComObject outlook.application | |
#$namespace = $outlook. GetNameSpace("MAPI") | |
#$Inbox = $outlook. session.getDefaultFolder(6) | |
$Inbox = BootOutlook | |
$ELogs=$Inbox.Folders.item("islambox").Folders.Item("EmailLogs").Folders.Item($month) | |
$ELogs.items | |
} | |
$myLog = OutlookEmailLog "jul 2013" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment