Re: Environement variables and templates
'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. Hews On Gid Wore? ¶ Auxiliary Information: • The Bat! Pro 4.2.10.1 • Extended Macro Plugin 1.2.0.0 • Windows XP Pro 5.1.2600 Service Pack 3 • Scanned by avast! Plugin 4.8.1356 DB 091020-0 (20.10.2009) Current version is 4.2.10.0 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Environement variables and templates
'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! Thanks, Roelof. That, in fact, will be very handy indeed. -- Simon (Privateofcourse) #16158. Res Hoe Dong Iww? ¶ Auxiliary Information: • The Bat! Pro 4.2.10.1 • Windows XP Pro 5.1.2600 Service Pack 3 • Scanned by avast! Plugin 4.8.1356 DB 091020-0 (20.10.2009) Current version is 4.2.10.0 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Environement variables and templates
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 itself, but the XMP plug-in can help you with that. 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. Apart from the %MailDir macro TB also supports the %AccountDir and the %ProgramDir macros, apart from the time and Windows version there aren't any system related things that I need in my templates, so that might be enough for you too. -- Groetjes, Roelof Move away from the tagline. You have ten seconds to comply. http://www.voormijalleen.nl/ The Bat! 4.2.10.12 Windows Vista 6.0 Build 6001 Service Pack 1 6 pop3 accounts, 1 imap account OTFE enabled Quad Core 2.4GHz 4 GB RAM pgp8rwpAlmX3H.pgp Description: PGP signature Current version is 4.2.10.0 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Environement variables and templates
'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 then! That will save me having to update the paths for every template when I move my mail folder about ;-) -- Simon (Privateofcourse) #33307. O'er Hod New Wigs? ¶ Auxiliary Information: • The Bat! Pro 4.2.10.1 • Windows XP Pro 5.1.2600 Service Pack 3 • Scanned by avast! Plugin 4.8.1356 DB 091020-0 (20.10.2009) Current version is 4.2.10.0 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Environement variables and templates
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 extremely useful. %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" -- Bye Marek Mikus Czech support of The Bat! http://www.thebat.cz Using the best The Bat! 4.2.10.16 (ALPHA4) under Windows XP 5.1 Build 2600 Service Pack 3 with MyMacros,XMP,AnotherMacros, AntispamSniper v 3.2.1.5 Notebook Thinkpad, Core2 Duo 2.40 GHz, 4 GB RAM Current version is 4.2.10.0 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Environement variables and templates
'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 doesn't work. Thanks for the idea though. If it is possible at all it would be extremely useful. -- Simon (Privateofcourse) # 9206. Wei Hnd Go Sower? ¶ Auxiliary Information: • The Bat! Pro 4.2.10.1 • Windows XP Pro 5.1.2600 Service Pack 3 • Scanned by avast! Plugin 4.8.1356 DB 091020-0 (20.10.2009) Current version is 4.2.10.0 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Environement variables and templates
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 know if there is a way to use environment variables in templates, but I see why your try doesn't work. In TB!'s templates the percent sign indicates a following macro. You might try %% instead. This should prevent TB! from seeing the following as a macro. If it recognizes the EV, I don't know. -- Cheers Peter Reality is nothing but a collective hunch. Current version is 4.2.10.0 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html
Environement variables and templates
'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: %INCLUDE="X:\Messages\Email\messages\templates\family\family.tricia.new.message.txt" this: %INCLUDE="%EMAIL%\templates\family\family.tricia.new.message.txt" It doesn't work so that is what I am asking if there is a way. -- Simon (Privateofcourse) #20435. Dew Show In Gore? ¶ Auxiliary Information: • The Bat! Pro 4.2.10.1 • Windows XP Pro 5.1.2600 Service Pack 3 • Scanned by avast! Plugin 4.8.1356 DB 091020-0 (20.10.2009) Current version is 4.2.10.0 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html