Removing “commands” from subject line commands regardless of spelling
iQ.Suite Tips & Tricks for Lotus Notes Domino
You are using a rule with a special command, e.g. “<command>”.
(see Tips and Tricks December 2009)

But users won’t always write it the way you ask them to. For example, users may write “<command>”, “<Command>”, “<COMMAND>”or under some circumstances even “<comMand>”.

When evaluating the rule, it doesn’t matter how the key word is written.
To remove it, you need an Action Mail Job, which only runs when the corresponding command rule applies.


The job has the following structure
|
_command := "<command>"; |
The green texts are the key word you used and the field in which you are querying it. |
|
_low := @LowerCase(_Value); |
The field content is “standardized” here |
|
_left := @Left(_low;_command); |
The position of the key word within the field is determined here |
|
_LeftNew := @Left(_Value;_length_left ); |
The text on the left and right of the key word is deleted |
|
_new := @Trim(_LeftNew+ _RightNew); |
The new field value is formed from the left and right parts. |
|
@SetField(_Field;_out); |
This value is returned to the field. |
|
@Success |
Required for the Notes formula to work. |
And now the e-mail will have the right appearance.
