pp108 : GetMessageCount

GetMessageCount


This Web service operation is used to receive the total number of messages in the inbox (the message count). This Web service operation takes no parameters. To use this API, you must set a valid profile. If not, an 'Authentication Failed' error is thrown.

SOAP Request
<GetMessageCount xmlns="http://schemas.cordys.com/1.0/email">
    <folder>INBOX</folder>
</GetMessageCount>

Request Parameters

Parameter

Description

folder

Specifies the folder in the mailbox from which the mails must be retrieved.


SOAP Response
<GetMessageCountResponse xmlns="http://schemas.cordys.com/1.0/email">
    <tuple>
        <old>
            <mail>
                <MessageCount>247</MessageCount>
            </mail>
        </old>
    </tuple>
</GetMessageCountResponse>