See the example below.
This example shows how to process messages in your mailbox.
I get an error here " no end loop"
Each loop MUST be ended with End Loop action.
Example:
;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|0
CatID=INTEGER|335077256
Comment=STRINGLIST
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task1101"
Hide=INTEGER|0
ID=INTEGER|1927415344
LogOnAsUser=INTEGER|1
Name=STRING|"Retrieve messages from email box (example)"
OnErrorTaskID=INTEGER|0
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|2
WriteGeneralLog=INTEGER|0
[Actions]
Action1=FOLDER
Action10=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER
Action6=FOLDER
Action7=FOLDER
Action8=FOLDER
Action9=FOLDER
[Actions\Action1]
ActionID=STRING|"A_EMAIL_OPEN"
Enabled=INTEGER|-1
Name=STRING|"POP3 Open"
Params=FOLDER
[Actions\Action1\Params]
host=STRING|"somehost"
password=STRING|"45160437234448145245462874500315808"
port=STRING|"110"
SSL=STRING|"0"
user=STRING|"someuser"
[Actions\Action10]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""Messages count: {mes_num}"""
Params=FOLDER
[Actions\Action10\Params]
icon=STRING|"1"
msg0=STRING|"Messages count: {mes_num}"
msgcount=STRING|"1"
playsound=STRING|"0"
showmessage=STRING|"1"
[Actions\Action2]
ActionID=STRING|"A_EMAIL_LOOP"
Enabled=INTEGER|-1
Name=STRING|"POP3 Mail Loop"
Params=FOLDER
[Actions\Action2\Params]
cc=STRING|"mes_cc"
date=STRING|"mes_date"
from=STRING|"mes_from"
number=STRING|"mes_num"
size=STRING|"mes_size"
subj=STRING|"mes_subj"
to=STRING|"mes_to"
usecc=STRING|"1"
usedate=STRING|"1"
usefrom=STRING|"1"
usesize=STRING|"1"
usesubj=STRING|"1"
useto=STRING|"1"
[Actions\Action3]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""Message: {mes_num}"""
Params=FOLDER
[Actions\Action3\Params]
icon=STRING|"1"
msg0=STRING|"Message: {mes_num}"
msg1=STRING|"subj: {mes_subj}"
msg2=STRING|"to: {mes_to}"
msg3=STRING|"from: {mes_from}"
msg4=STRING|"cc: {mes_cc}"
msg5=STRING|"date: {mes_date}"
msg6=STRING|"size: {mes_size}"
msgcount=STRING|"7"
playsound=STRING|"0"
showmessage=STRING|"1"
[Actions\Action4]
ActionID=STRING|"A_ROBOTASK_LOG"
Enabled=INTEGER|-1
Name=STRING|"Log Message"
Params=FOLDER
[Actions\Action4\Params]
message=STRING|"Downloading {mes_num} message "
type=STRING|"3"
[Actions\Action5]
ActionID=STRING|"E_EMAIL_DOWNLOAD"
Enabled=INTEGER|-1
Name=STRING|"POP3 Download Email"
Params=FOLDER
[Actions\Action5\Params]
extract=STRING|"0"
num=STRING|"{mes_num}"
overwrite=STRING|"0"
savetofile=STRING|"D:\00\messages\temp.eml"
[Actions\Action6]
ActionID=STRING|"A_EMAILE_PARSE"
Enabled=INTEGER|-1
Name=STRING|"Parse Email"
Params=FOLDER
[Actions\Action6\Params]
cc=STRING|"1"
ccvar=STRING|"mes_cc"
date=STRING|"1"
datevar=STRING|"mes_date"
extract=STRING|"0"
file=STRING|"D:\00\messages\temp.eml"
from=STRING|"1"
fromvar=STRING|"mes_from"
overwrite=STRING|"0"
subj=STRING|"1"
subjvar=STRING|"mes_subj"
text=STRING|"1"
texttype=STRING|"0"
textvar=STRING|"mes_text"
to=STRING|"1"
tovar=STRING|"mes_to"
[Actions\Action7]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""Message: {mes_num}"""
Params=FOLDER
[Actions\Action7\Params]
icon=STRING|"1"
msg0=STRING|"Message: {mes_num}"
msg1=STRING|"subj: {mes_subj}"
msg2=STRING|"to: {mes_to}"
msg3=STRING|"from: {mes_from}"
msg4=STRING|"cc: {mes_cc}"
msg5=STRING|"date: {mes_date}"
msg6=STRING|"size: {mes_size}"
msg7=STRING|"text:"
msg8=STRING|"{mes_text}"
msgcount=STRING|"9"
playsound=STRING|"0"
showmessage=STRING|"1"
[Actions\Action8]
ActionID=STRING|"A_EMAIL_DELETE"
Enabled=INTEGER|-1
Name=STRING|"POP3 Delete Email"
Params=FOLDER
[Actions\Action8\Params]
num=STRING|"{mes_num}"
[Actions\Action9]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"