After digging through these forums I finally found out how to extract a name and email address from emails that I receive, but then I got stuck when a name came in all capitals.
Looking for a way to correct it automatically.
So here's an example of part of an email I might get:
Sender
ALBERT EINSTEIN
albert@einstein.com
And for that, I use the following macros to generate an automated reply:
%To=""%To="%SetPattRegExp='(?is)(.*?)Sender\n(.*?)\n'%-
%RegExpBlindMatch='%Text'%-
%SubPatt='2'%SubPatt='3'
<%SetPattRegExp='(?is)(.*?)\((.*?)\)'%-
%RegExpBlindMatch='%Text'%-
%SubPatt='2'%SubPatt='3'>"%-
%Subject="%SetPattRegExp='(?is)(.*?)Sender\n(.*?)\s'%-
%RegExpBlindMatch='%Text'%-
%SubPatt='2'%SubPatt='3', Thank You!"%-
Hi %SetPattRegExp='(?is)(.*?)Sender\n(.*?)\s'%-
%RegExpBlindMatch='%Text'%-
%SubPatt='2'%SubPatt='3'!
And that results in the following automatic email:
To: ALBERT EINSTEIN <albert@einstein.com>
Subject: Albert, Thank You!
Body: Hi ALBERT!
I'd love to generate the message while correcting the capitalization to Albert Einstein.
I found some macros like:
CAPITALFIRST="text"
UCFIRST="text"
CAPITAL="text"
Which might be helpful, but I have no idea how to insert them into the existing macro if they are.
Would someone help me out?
Thank you!
Looking for a way to correct it automatically.
So here's an example of part of an email I might get:
Sender
ALBERT EINSTEIN
albert@einstein.com
And for that, I use the following macros to generate an automated reply:
%To=""%To="%SetPattRegExp='(?is)(.*?)Sender\n(.*?)\n'%-
%RegExpBlindMatch='%Text'%-
%SubPatt='2'%SubPatt='3'
<%SetPattRegExp='(?is)(.*?)\((.*?)\)'%-
%RegExpBlindMatch='%Text'%-
%SubPatt='2'%SubPatt='3'>"%-
%Subject="%SetPattRegExp='(?is)(.*?)Sender\n(.*?)\s'%-
%RegExpBlindMatch='%Text'%-
%SubPatt='2'%SubPatt='3', Thank You!"%-
Hi %SetPattRegExp='(?is)(.*?)Sender\n(.*?)\s'%-
%RegExpBlindMatch='%Text'%-
%SubPatt='2'%SubPatt='3'!
And that results in the following automatic email:
To: ALBERT EINSTEIN <albert@einstein.com>
Subject: Albert, Thank You!
Body: Hi ALBERT!
I'd love to generate the message while correcting the capitalization to Albert Einstein.
I found some macros like:
CAPITALFIRST="text"
UCFIRST="text"
CAPITAL="text"
Which might be helpful, but I have no idea how to insert them into the existing macro if they are.
Would someone help me out?
Thank you!