![]() |
Define keyword with conditional script |
Post Reply
|
| Author | |
cardman
New User
Joined: 18 Feb 2010 Posts: 9 |
Post Options
Quote Reply
Topic: Define keyword with conditional scriptPosted: 14 Mar 2010 at 2:34pm |
|
Hi,
is it possible to define a keyword with conditional script? Case: Each message body starts with specified keyword. Script should proof (and process if matched) only the first word of the message (keyword). This built-in conditional function is not useful while it is possible that some keywords exists in the middle of message and this is not what I need. Only the first word should be matched. For an example, I would be grateful cardman |
|
![]() |
|
Stephen
Admin Group
Joined: 21 Oct 2005 Location: Stoke on Trent Posts: 1131 |
Post Options
Quote Reply
Posted: 15 Mar 2010 at 10:12am |
|
You can create an Email2DB field to extract the first word of the body. Set the Look For to '*'.
Set the Extract until 'Any Of These Characters' option
Move the field to first in the list of fields.
You can then use this field value in any of Email2Db actions using %fieldname%. Or use in Email2DB scripts using FIELD_Value("Fieldname")
For a condition script you could do:
Steve
|
|
![]() |
|
Post Reply
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |