Discuss RoboTask here
-
dj.funny
- Posts: 6
- Joined: Thu Dec 01, 2016 5:36 pm
Post
by dj.funny »
Dear readers,
Excuse formy English but that's not my cup of tea
I have the following question:
With the function POP3 Mail loop I'll extract the emailadress of the sender out of an email. But I only need the email adress not all the other stuff:
Maybe an example makes it easier for all you!
Sometimes I'll get:
dirk@vroxxx.nl and that's what I want, but other times I'll get:
"Dirk Vroxxx | Company Yyyy" <dv@vierxxx.com> But in this case I only need
dv@vierxxx.com
Is there somebody with the answer??

-
Oleg
- Site Admin
- Posts: 3202
- Joined: Thu Jan 01, 1970 1:00 am
-
Contact:
Post
by Oleg »
Use
AddressOnly system variable (function)
It is in the list of variables: menu
Options->Variables
Look in the
EMail group
Also see my example below.
Save the text of the task to a file and use menu
Task->Import to import the task into RoboTask.
Code: Select all
;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|444033236
Comment=STRINGLIST
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task110"
Hide=INTEGER|0
ID=INTEGER|1341975447
LogOnAsUser=INTEGER|1
Name=STRING|"Email address only demo"
OnErrorTaskID=INTEGER|-1
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0
[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
[Actions\Action1]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""EMAIL1"" with value ""dirk@vroxxx.nl"""
Params=FOLDER
[Actions\Action1\Params]
expand=STRING|"0"
varname=STRING|"EMAIL1"
varvalue=STRING|"dirk@vroxxx.nl"
[Actions\Action2]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""EMAIL2"" with value """"Dirk Vroxxx | Company Yyyy"" <dv@vierxxx.com>"""
Params=FOLDER
[Actions\Action2\Params]
expand=STRING|"0"
varname=STRING|"EMAIL2"
varvalue=STRING|"""Dirk Vroxxx | Company Yyyy"" <dv@vierxxx.com>"
[Actions\Action3]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""{AddressOnly({email1})}"""
Params=FOLDER
[Actions\Action3\Params]
icon=STRING|"1"
msg0=STRING|"{AddressOnly({email1})}"
msg1=STRING|"{AddressOnly({email2})}"
msgcount=STRING|"2"
playsound=STRING|"0"
showmessage=STRING|"1"
Oleg Yershov
-
dj.funny
- Posts: 6
- Joined: Thu Dec 01, 2016 5:36 pm
Post
by dj.funny »
Sometimes live is so easy
I allready solved it (with STR replace + STR pos + STR delete), but this is so much better!!
Now I use your solution!! Many thanks!!