Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4074 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.