GetNumberOfPopMessages

From IRON Test Suite
Jump to navigation Jump to search

DESCRIPTION

This command gets a number of Email messages saved in POP3 mailbox, together with total size of all messages in the mail box. It requires that Data session on the specified GSM port be already up. Command waits until operation is successfully finished or general timeout expired. Optional SSL flag can be added at the end of this command.


COMMAND

Command Input arguments Returns
GetNumberOfPopMessages Port index, POP Server IP address or Host Name, User Name, Password [SSL flag] Number of messages in the POP3 mailbox and their total size in bytes

All error messages are available in Data Commands Status Message list


EXAMPLE

~# GetNumberOfPopMessages 0 "pop.iqsim.com" "dupond" "parismonamour"
OK MESSAGES: 10 SIZE: 1240000

~# GetNumberOfPopMessages 0 "82.97.16.82:110" "dupond" "parismonamour"
DATA LINK IS DOWN

~# GetNumberOfPopMessages 1 "pop.iqsim.com" "dupond" "parismonamour"
DESTINATION HOST NOT REACHABLE

~# GetNumberOfPopMessages 2 "pop.iqsim.com" "dupond" "paris"
PASSWORD REJECTED BY SERVER

~# GetNumberOfPopMessages 2 "pop.iqsim.com" "pondud" "parismonamour"
USER NAME REJECTED BY SERVER

~# GetNumberOfPopMessages 4 "pop.iqsim.com" "dupond" "parismonamour"
TIMEOUT EXPIRED