Thanks for that Phil. Before I start editting, one small question.
>
>If you want to ignore blank lines and spaces before it then
>
> if $message_body MATCHES "^ *Dear friend"
>or
> if $message_body matches "^* dear friend"
>
So which is better:
if $message_body matches "^* dear friend"
or
if $message_body contains "^* dear friend"
^^^^^^^