Environement variables and templates

2009-10-20 Thread Simon
'Ello TBUDL, How do I - or is it possible to - use environment variables in message templates? In Windows, EMAIL is set to TB!'s message base. Normally then you'd use %EMAIL% in scripts and what have you. Can I use this in TB!'s templates? E.g. instead of:

Re: Environement variables and templates

2009-10-20 Thread Simon
'Ello Peter, On Tue, 20 Oct 2009 19:31:08 +0200 (your time) you said: S It doesn't work so that is what I am asking if there is a way. [...] You might try %% instead. This should prevent TB! from seeing the following as a macro. If it recognizes the EV, I don't know. Tried that out and it

Re: Environement variables and templates

2009-10-20 Thread Peter Meyns
Hi Simon, on Tue, 20 Oct 2009 17:30:36 +0100GMT (20.10.2009, 18:30 +0200GMT here), you wrote: S ... environment variables in message templates? ... S %INCLUDE=%EMAIL%\templates\family\family.tricia.new.message.txt S It doesn't work so that is what I am asking if there is a way. I don't

Re: Environement variables and templates

2009-10-20 Thread Marek Mikus
Hello all, Tuesday, October 20, 2009, Simon wrote: [...] You might try %% instead. This should prevent TB! from seeing the following as a macro. If it recognizes the EV, I don't know. Tried that out and it doesn't work. Thanks for the idea though. If it is possible at all it would be

Re: Environement variables and templates

2009-10-20 Thread Simon
'Ello Marek, On Tue, 20 Oct 2009 20:18:23 +0200 (your time) you said: %EMAIL% is a Windows variable, not TB's internal variable, for MAIL directory TB uses %MAILDIR, so use %INCLUDE=%MAILDIR\templates\family\family.tricia.new.message.txt Excellent. That's a lot less bother...even better

Re: Environement variables and templates

2009-10-20 Thread Roelof Otten
Hallo Simon, On Tue, 20 Oct 2009 17:30:36 +0100GMT (20-10-2009, 18:30 +0200, where I live), you wrote: P How do I - or is it possible to - use environment variables in message P templates? Marek answered you about the %MailDir macro and AFAIK TB can't handle environment variables by

Re: Environement variables and templates

2009-10-20 Thread Simon
'Ello Roelof, On Tue, 20 Oct 2009 22:20:13 +0200 (your time) you said: [...] XMP has the %XMP_Envir that can read evironment variables. XMP can be downloaded from http://www.gaijin.at/tbpxmp.php The help file is German, but should be clear even if you don't 'do' German. [...] Excellent!

Re: Environement variables and templates

2009-10-20 Thread Simon
'Ello Roelof, On Tue, 20 Oct 2009 22:20:13 +0200 (your time) you said: [...]TB can't handle environment variables by itself, but the XMP plug-in can help you with that. Now tried and tested and in use, and works great! Thanks very much for the information. -- Simon (Privateofcourse) #23855.