GetNumberOfPopMessages: Difference between revisions

From Opale Wiki
Jump to navigation Jump to search
(Created page with " This command allows to accept an incoming call once presented on the specified port. '''COMMAND''' {| class="wikitable" !Command !Line Arguments !Returns |- |GetNumberOfPopMessages |PortIndex |Error Code in case of error. |} '''OUTPUT''' Command status: <br> "%s\n", status (CONNECTED or NO INCOMING CALL) '''EXAMPLE''' <syntaxhighlight lang="text"> ~# AcceptCall 0<br> CONNECTED<br> ~# AcceptCall 2<br> NO INCOMING CALL </syntaxhighlight> Cate...")
Tag: 2017 source edit
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:


This command allows to accept an incoming call once presented on the specified port.
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 an active data connection on the specified GSM port (ConnectData).
 
Command waits until operation is successfully finished.
 
Optional SSL flag can be added at the end of this command.


'''COMMAND'''
'''COMMAND'''
Line 9: Line 15:
|-
|-
|GetNumberOfPopMessages
|GetNumberOfPopMessages
|PortIndex  
|PortIndex, POPServerIPAddressorHostName, UserName, Password [SSL flag]
|[[R2D2 Error Codes|Error Code]] in case of error.
|[[R2D2 Error Codes|Error Code]] in case of error.
|}
|}


'''OUTPUT'''
'''OUTPUT'''<br>Success or Error Message (See [[Data Messages|Data Commands Messages]])
Command status: <br>
"%s\n", status (CONNECTED or NO INCOMING CALL)


'''EXAMPLE''' <syntaxhighlight lang="text">
'''EXAMPLE''' <syntaxhighlight lang="text">
~# GetNumberOfPopMessages 0 "pop.acme.com" "user1" "pass"
OK MESSAGES: 10 SIZE: 8547812
~# GetNumberOfPopMessages 0 "pop.acme.com" "user1" "pass"
DATA LINK IS DOWN


~# AcceptCall 0<br>
~# GetNumberOfPopMessages 0 "pop2.acme.com" "user1" "pass"
CONNECTED<br>
PASSWORD REJECTED BY SERVER
 
~# GetNumberOfPopMessages 0 "pop.acme.com" "userwrong" "pass"
USER NAME REJECTED BY SERVER


~# AcceptCall 2<br>
NO INCOMING CALL


</syntaxhighlight>
</syntaxhighlight>
[[Category:SMS|R2D2]]
 
[[Category:Voice|R2D2]]
[[Category:DATA]]
[[Category:CDR|R2D2]]
[[Category:R2D2]]

Latest revision as of 18:22, 1 April 2025

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 an active data connection on the specified GSM port (ConnectData).

Command waits until operation is successfully finished.

Optional SSL flag can be added at the end of this command.

COMMAND

Command Line Arguments Returns
GetNumberOfPopMessages PortIndex, POPServerIPAddressorHostName, UserName, Password [SSL flag] Error Code in case of error.

OUTPUT
Success or Error Message (See Data Commands Messages)

EXAMPLE

~# GetNumberOfPopMessages 0 "pop.acme.com" "user1" "pass"
OK MESSAGES: 10 SIZE: 8547812

~# GetNumberOfPopMessages 0 "pop.acme.com" "user1" "pass"
DATA LINK IS DOWN

~# GetNumberOfPopMessages 0 "pop2.acme.com" "user1" "pass"
PASSWORD REJECTED BY SERVER

~# GetNumberOfPopMessages 0 "pop.acme.com" "userwrong" "pass"
USER NAME REJECTED BY SERVER