Chris Pink Posted October 9, 2013 Posted October 9, 2013 I am writing a script with the simple aim of testing the connection to the mailbox and counting how many messages are in there. I am using EmailReadMessages and then EmailReadMessageValue("count") This works fine if there is one or more messages in the mailbox are unread but it doesn't work if all the messages are all read (ie it returns 0) I realise I can iterate the function EmailReadMessages with the flag "viewed = false" then, if 0 , followed by "viewed = true" but this seems a little clumsy. is there another way of simply counting, messages, read and unread within a mailbox?
Recommended Posts
This topic is 4074 days old. Please don't post here. Open a new topic instead.
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