If..then..else in macros
Hi all Is there an If..then construct in the macros? I would like to set up a macro that checks for the account being used in a new message or a reply and then based on the account include a particular file. I've tried using the address book but the problem i seems to be that TB uses the first name found in the address book and in my setup I have the same name and email address for several entries. But they are used in different accounts so if I could tie to the account rather than the name it would work for me, I think? e.g. In Account 1 I send to [EMAIL PROTECTED] and include file1 In Account 2 I send to [EMAIL PROTECTED] and include file2 Look forward to seeing your responses. -- Best regards Barry barryh'at'kentra'dot'co'dot'uk Using TheBat! version 3.95.06 and AntispamSniper 1.7.0.8 Current version is 3.95.08 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: If..then..else in macros
Hallo BJH, On Tue, 20 Feb 2007 14:16:42 GMTGMT (20-2-2007, 15:16 +0100, where I live), you wrote: B Is there an If..then construct in the macros? Yes, it's even got an else part. B I would like to set up a macro that checks for the account being used in a B new message or a reply and then based on the account include a particular B file. %If:%AccountName=BJH:%AttachPath='File1':%AttachPath='File2'%- This translates into If accountname=bjh then attach file1 else attach file2. -- Groetjes, Roelof Pardon me, I'm a beta tester for a designer drug lab. http://www.voormijalleen.nl/ The Bat! 3.96.9 (BETA) Windows XP 5.1 Build 2600 Service Pack 2 1 pop3 account, server on LAN OTFE enabled P4 3GHz 2 GB RAM pgpZisw3y7qwN.pgp Description: PGP signature Current version is 3.95.08 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: If..then..else in macros
Hello Barry, Is there an If..then construct in the macros? Open Help/Macros/Full alphabetical list of macros and look for IF. -- Best regards, Miguel A. Urech (El Escorial - Spain) Using The Bat! v3.96.9 (BETA) Current version is 3.95.08 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: If..then..else in macros
On 20/02/2007 15:12:31, Roelof Otten wrote: %If:%AccountName=3DBJH:%AttachPath=3D'File1':%AttachPath=3D'File2'%- Thanks Roelof, just the job! -- Best regards Barry barryh'at'kentra'dot'co'dot'uk Using TheBat! version 3.95.06 and AntispamSniper 1.7.0.8 Current version is 3.95.08 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html