Hallo Rick,

On Thu, 14 Aug 2008 16:49:08 -0400GMT (14-8-2008, 22:49 +0200, where I
live), you wrote:

>> Change it into:
>> %ModifyOnce("Subject")%-
>> %Subject="Jigsaw Puzzle"%-
R> I moved this to this list as it seems it is not a beta issue

That's right, it isn't a beta issue. Some templates/macros that alter the
headers are processed more than once. In order to prevent this, you
set that header to processed only once, thus enabling you to alter the
subject or the recipient.
That's being done with the ModifyOnce macro, it's documented in the
help file.

R> For my own knowledge: on each line you ended it with "%-"
R> What does that do? Is it needed?

What it does is telling TB's editor to skip the new line that follows
the %- macro. Without the %- macro the following template:

-------
text1
%ModifyOnce("Subject")
%Subject="Jigsaw Puzzle"
text2
-------

Would give you this text:

-------
text1


text2
-------

But this template with the %- macro:

-------
text1
%ModifyOnce("Subject")%-
%Subject="Jigsaw Puzzle"%-
text2
-------

will result in this text:

-------
text1
text2
-------

The %- macro is documented in the help file, though it's easy to
overlook as it's listed as a dash and it's the first macro in the
alphabetical listing.

I follow up all macros that don't leave any results in the message
text with the %- macro, it makes reading a template easier as each
macro is on its own line.

-- 
Groetjes, Roelof

Why experiment on animals, when there are so many Windows users around
http://www.voormijalleen.nl/
The Bat! 4.0.28.1
Windows Vista 6.0 Build 6001 Service Pack 1
3 pop3 accounts
OTFE enabled
Quad Core 2.4GHz
4 GB RAM

Attachment: pgphFlAGXxuKA.pgp
Description: PGP signature

________________________________________________
Current version is 4.0.24.0 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to