Pages: 1
RSS
How to write macro for reply name in reply template?
 
There are three possible 'From' field of my incoming emails

eBay member: eBayid
fname lname<xxx@yyy.com>
xxx@yyy.com

How can make a reply template in order to reply like as following correspondingly?

Hi eBayid,
Hi fname lname,
Hi xxx,

Hopefully you can help me.
 
The second case would be solved with:
Hi %OFromName,

The third case would be solved with:
Hi %OFromFName,
And you might consider that an appropriate response for the second case too.

The first case is an illegal From header, as that has to contain a valid address according to RFC2822.
As you are trying to automate the response, I suppose that you get lots of those messages.
Do they have the same from address or do you filter them into a separate folder? In those cases you could use a regular expression in an address book template or a folder template. (That would keep your account reply template easy to read.)
The regular exprseion needed for this, should look like:
%SetPattRegExp='(?is)eBay member: (.*)'%-
%RegExpBlindMatch='%OFromName'%-
Hi %SubPatt='1',
I'm not very good in this kind of stuff and I didn't test it, so I don't guarantuee anything.
__________________________________
I'm just a user of The Bat! I don't work for Ritlabs.
Pages: 1