Email Total Messages

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
 
(4 intermediate revisions by one user not shown)
Line 1: Line 1:
 
This function is an [[Email Functions|Email Function]].
 
This function is an [[Email Functions|Email Function]].
  
The function returns the subject of the email at the specified position.  
+
The function returns the number of emails at the specified position.  
  
The function goes into another command such as a set command, which is then placed inside the connect to mail server command.
+
The function goes into another command such as a [[set]] command, which is then placed inside the connect to mail server command.
  
 
== Example ==
 
== Example ==
  
 
<pre>
 
<pre>
connect to mail server("IMAP With SSL", "username@gmail.com", "password", "imap.gmail.com", 993) {
+
connect to mail server("IMAP With SSL","username@gmail.com","password","imap.gmail.com",993) {
     set(#email subject, $email subject(0), "Global")
+
     set(#email total messages,$email total messages,"Global")
 
+
 
}
 
}
 +
  
 
</pre>
 
</pre>
  
The subject of the email at position 0 on the mail server is 8.
 
  
[[File:emailtotal.png]]
+
The number of emails on the mail server is 8.
 +
 
 +
 
 +
[[File:email total messages00.png]]

Latest revision as of 13:02, 20 September 2016

This function is an Email Function.

The function returns the number of emails at the specified position.

The function goes into another command such as a set command, which is then placed inside the connect to mail server command.

[edit] Example

connect to mail server("IMAP With SSL","username@gmail.com","password","imap.gmail.com",993) {
    set(#email total messages,$email total messages,"Global")
}



The number of emails on the mail server is 8.


Email total messages00.png

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox