Hello Edward, On Tue, 19 Mar 2002 07:43:40 -0700GMT (19-3-02, 15:43 +0100GMT, where I live), you wrote:
EJK> I have a simple (?) scripting question. I want to write a EJK> The default template in The Bat! does not quite work: EJK> Hello %OFromFName, EJK> The reason is that I receive a lot of messages in an EJK> such as Smith John-Q234C EJK> Therefore, what I need is is a conditional: EJK> If the return address contains a '-' then I'm not sure whether that's a simple scripting question. ;-) Too complicated for me. EJK> Any suggestions? You could use your address book info. Add 'Smith John-Q234C' in your address book and use 'john' as his first name. Now use: Hello %ABtoFIRSTNAME="%TOFNAME", in both your new message and reply templates. The %ABtoFirstName Macro takes the first name from the address book entry of the address in the To-header of your current message. The '="%ToFName"' takes the first name from the T0-header when there's no address book entry. Hope this helps. -- Groetjes, Roelof -- ________________________________________________________ Archives : http://tbudl.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] TBTech List: mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED] Latest Vers: 1.53d FAQ : http://faq.thebat.dutaint.com

