nooneclose Posted October 14, 2019 Posted October 14, 2019 (edited) Here is my code: Currently it finds all the unread, subject restricted emails in the inbox and its subfolders. (finds 15 when it should only find 4) $aItems = _OL_ItemFind($oOutlook, $mFolder[1], $olMail, "[UnRead]=True", "Subject", "Maintenance Request", "EntryID,Subject", "", 1) I want to find the emails in the inbox but I don't want to include the emails from the inbox's sub-folders. Edited October 14, 2019 by nooneclose Solved
seadoggie01 Posted October 14, 2019 Posted October 14, 2019 RTFM... $iFlags has the option "1: Subfolders will be included" if you use 0, 2, 4, or 6 as the flag, they won't be searched nooneclose 1 All my code provided is Public Domain... but it may not work. Use it, change it, break it, whatever you want. Spoiler My Humble Contributions:Personal Function Documentation - A personal HelpFile for your functionsAcro.au3 UDF - Automating Acrobat ProToDo Finder - Find #ToDo: lines in your scriptsUI-SimpleWrappers UDF - Use UI Automation more Simply-erKeePass UDF - Automate KeePass, a password managerInputBoxes - Simple Input boxes for various variable types
nooneclose Posted October 14, 2019 Author Posted October 14, 2019 @seadoggie01 Thank you! It works perfectly now.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now