Re: Macro to switch macros...
MDP> %ACCOUNTNAME is the macro you need. %ACCOUNT is used to change the Cracked it! Thomas, Marck, thank you. -- Stuart Using The Bat! v1.63 Beta/7 on Windows XP 5.1 Build 2600 ... and anything below is beyond my control - sorry ... Estate Computer Systems Limited Westgate House, Westgate, Sleaford, Lincolnshire, NG34 7RJ Registered in England No 1604453. VAT No. 416 2922 63 ECS are members of the following trade organisations: The Microsoft Certified Partner Programme, The Borland User Group, and PISCES (Property Information System Common Exchange Standard) To find out more about ECS why not visit our website http://www.estatecomputers.co.uk The information in this email (and any attachment) may be for the intended recipient only. If you know you are not the intended recipient, please do not use or disclose the information in any way and please delete this email (and any attachment from your system). See http://www.estatecomputers.co.uk/email.htm for our full E-mail communication conditions. (If the above URLs do not appear as links you may need to copy the details into your browser address line to access these pages). Current version is 1.62 | "Using TBUDL" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Macro to switch macros...
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Stuart, @28-Feb-2003, 16:53 Stuart Hemming [SH] in mid:[EMAIL PROTECTED] said: SH> I guess that explains why the test fails, but can you spot and SH> answer the obvious question? :-) yes. %ACCOUNTNAME is the macro you need. %ACCOUNT is used to change the current account. - -- Cheers -- .\\arck D Pearlstone -- List moderator TB! v1.63 Beta/7 on Windows 2000 5.0.2195 Service Pack 2 ' -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1rc1-nr1 (Windows 2000) iD8DBQE+X5gxOeQkq5KdzaARAu7VAJ9TcAtiREJ06tAJEiVXa8ak4uv4ugCfTyxC yE6F9uQEnzWozCaI1DkLqW0= =p+jg -END PGP SIGNATURE- Current version is 1.62 | "Using TBUDL" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Macro to switch macros...
MDP> %IF:'%Account'='work':'%ReplyTo="workaccount"':'%ReplyTo="homeaccount"' I'm getting a slightly better result than with Thomas' suggestion in that the value of 'Reply-To' is changing but there's not the spurious text in body. Unfortunately it always seems to fail the test. I've got the comparison value case perfect but it never seems to match. Interestingly, I made my template look like this... Account=%Account ACCOUNT=%ACCOUNT END And the results, from both accounts were: Account= ACCOUNT= END I guess that explains why the test fails, but can you spot and answer the obvious question? -- Stuart Estate Computer Systems Limited Westgate House, Westgate, Sleaford, Lincolnshire, NG34 7RJ Registered in England No 1604453. VAT No. 416 2922 63 ECS are members of the following trade organisations: The Microsoft Certified Partner Programme, The Borland User Group, and PISCES (Property Information System Common Exchange Standard) To find out more about ECS why not visit our website http://www.estatecomputers.co.uk The information in this email (and any attachment) may be for the intended recipient only. If you know you are not the intended recipient, please do not use or disclose the information in any way and please delete this email (and any attachment from your system). See http://www.estatecomputers.co.uk/email.htm for our full E-mail communication conditions. (If the above URLs do not appear as links you may need to copy the details into your browser address line to access these pages). Current version is 1.62 | "Using TBUDL" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Macro to switch macros...
Thomas, TF> Strange. It worked at my last company. It's just the way thay have things locked down here. TF> IF:%Account="work":%ReplyTo="workaccount":%ReplyTo="homeaccount" I assumed that there was supposed to be a leading '%' I put in the name of my work account in to the macro and created a new message from my /work/ account. The message with the value of ReplyTo set to 'homeaccount' and the message body contained the line ReplyTo="workaccount": I got exactly the same result when creating a message from my home account. -- Stuart Using The Bat! v1.63 Beta/7 on Windows XP 5.1 Build 2600 Estate Computer Systems Limited Westgate House, Westgate, Sleaford, Lincolnshire, NG34 7RJ Registered in England No 1604453. VAT No. 416 2922 63 ECS are members of the following trade organisations: The Microsoft Certified Partner Programme, The Borland User Group, and PISCES (Property Information System Common Exchange Standard) To find out more about ECS why not visit our website http://www.estatecomputers.co.uk The information in this email (and any attachment) may be for the intended recipient only. If you know you are not the intended recipient, please do not use or disclose the information in any way and please delete this email (and any attachment from your system). See http://www.estatecomputers.co.uk/email.htm for our full E-mail communication conditions. (If the above URLs do not appear as links you may need to copy the details into your browser address line to access these pages). Current version is 1.62 | "Using TBUDL" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Macro to switch macros...
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Thomas, @28-Feb-2003, 22:58 +0700 (15:58 UK time) Thomas Fernandez [TF] in mid:[EMAIL PROTECTED] said: >> The problem comes in that I have templates associated with an address >> book group and I want the behaviour to change based on the account I'm >> sending from. TF> Try this (not tested): TF> IF:%Account="work":%ReplyTo="workaccount":%ReplyTo="homeaccount" Close, but syntactically it should be: %IF:'%Account'='work':'%ReplyTo="workaccount"':'%ReplyTo="homeaccount"' - -- Cheers -- .\\arck D Pearlstone -- List moderator TB! v1.63 Beta/7 on Windows 2000 5.0.2195 Service Pack 2 ' -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1rc1-nr1 (Windows 2000) iD8DBQE+X4/BOeQkq5KdzaARAv2/AJ917DpnedfddIg1uX5QR56XX2Dc3wCg2mc8 YAPbHpvzPSQsJSy/7Tl7Rp8= =03/L -END PGP SIGNATURE- Current version is 1.62 | "Using TBUDL" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Macro to switch macros...
Hello Stuart, On Fri, 28 Feb 2003 15:35:57 + GMT (28/02/03, 22:35 +0700 GMT), Stuart Hemming wrote: > No. My company's exchange server cannot be reached from outside. > Similarly, I can't access my home account's pop3 server from the > office. Strange. It worked at my last company. > The problem comes in that I have templates associated with an address > book group and I want the behaviour to change based on the account I'm > sending from. Try this (not tested): IF:%Account="work":%ReplyTo="workaccount":%ReplyTo="homeaccount" -- Cheers, Thomas. Moderator der deutschen The Bat! Beginner Liste. Quantum Mechanics: The dreams stuff is made of. Message reply created with The Bat! 1.63 Beta/5 under Chinese Windows 98 4.10 Build A using an AMD Athlon K7 1.2GHz, 128MB RAM Current version is 1.62 | "Using TBUDL" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Macro to switch macros...
TF> Do you check both accounts at both locations? No. My company's exchange server cannot be reached from outside. Similarly, I can't access my home account's pop3 server from the office. TF> I assume you work on a laptop which you carry back and TF> forth Indeed. TF> However, if you sent FROM your home account, I would assume that the TF> reply-to is set to your home account, regardless of where you are. And TF> the same should be true for your office account, respectively. I don't TF> quite understand hwat you need - especially since, if you write to TF> someone from home, he might only be replying by the time you are TF> already in the office the next morning. What am I missing? The problem comes in that I have templates associated with an address book group and I want the behaviour to change based on the account I'm sending from. -- Stuart Using The Bat! v1.63 Beta/7 on Windows XP 5.1 Build 2600 Estate Computer Systems Limited Westgate House, Westgate, Sleaford, Lincolnshire, NG34 7RJ Registered in England No 1604453. VAT No. 416 2922 63 ECS are members of the following trade organisations: The Microsoft Certified Partner Programme, The Borland User Group, and PISCES (Property Information System Common Exchange Standard) To find out more about ECS why not visit our website http://www.estatecomputers.co.uk The information in this email (and any attachment) may be for the intended recipient only. If you know you are not the intended recipient, please do not use or disclose the information in any way and please delete this email (and any attachment from your system). See http://www.estatecomputers.co.uk/email.htm for our full E-mail communication conditions. (If the above URLs do not appear as links you may need to copy the details into your browser address line to access these pages). Current version is 1.62 | "Using TBUDL" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Macro to switch macros...
Hello Stuart, On Fri, 28 Feb 2003 08:52:31 + GMT (28/02/03, 15:52 +0700 GMT), Stuart Hemming wrote: > I have an office account which collects mail from the exchange server > in the office, and a home account which collects POP3 mail from my > ISP. Do you check both accounts at both locations? > When I'm working from home, I send all mail out via my ISP. However, I > have some templates that have the %REPLYTO macro set to my office > account but when I'm working from home I want that to change to that > address. > Is this possible? I don't think that you can detect with an IF macro which connection is being used (I assume you work on a laptop which you carry back and forth, and we are not talking about different machines). However, if you sent FROM your home account, I would assume that the reply-to is set to your home account, regardless of where you are. And the same should be true for your office account, respectively. I don't quite understand hwat you need - especially since, if you write to someone from home, he might only be replying by the time you are already in the office the next morning. What am I missing? -- Cheers, Thomas. Moderator der deutschen The Bat! Beginner Liste. Corduroy pillows: They're making headlines! Message reply created with The Bat! 1.63 Beta/5 under Chinese Windows 98 4.10 Build A using an AMD Athlon K7 1.2GHz, 128MB RAM Current version is 1.62 | "Using TBUDL" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Macro to switch macros...
I have an office account which collects mail from the exchange server in the office, and a home account which collects POP3 mail from my ISP. When I'm working from home, I send all mail out via my ISP. However, I have some templates that have the %REPLYTO macro set to my office account but when I'm working from home I want that to change to that address. Is this possible? -- Stuart Estate Computer Systems Limited Westgate House, Westgate, Sleaford, Lincolnshire, NG34 7RJ Registered in England No 1604453. VAT No. 416 2922 63 ECS are members of the following trade organisations: The Microsoft Certified Partner Programme, The Borland User Group, and PISCES (Property Information System Common Exchange Standard) To find out more about ECS why not visit our website http://www.estatecomputers.co.uk The information in this email (and any attachment) may be for the intended recipient only. If you know you are not the intended recipient, please do not use or disclose the information in any way and please delete this email (and any attachment from your system). See http://www.estatecomputers.co.uk/email.htm for our full E-mail communication conditions. (If the above URLs do not appear as links you may need to copy the details into your browser address line to access these pages). Current version is 1.62 | "Using TBUDL" information: http://www.silverstones.com/thebat/TBUDLInfo.html