Macros in Quick Templates work only if message is not a draft

2012-02-26 Thread GwenDragon
Hello,

i'm using some macros in common quick templates (QT) together with Gaijin's
TheBat! plugin XMP http://www.gaijin.at/tbpxmp.php.

After creating a new message and saving as draft the macros do not
work any more after reopening the message.
Sometimes i have to store messages as draft, if they are not finished,
and continuing writing after some hours or the next day. 

My QT is named anlagen (german word for attachments) and has the
following code: 

%_A=%XMP_StrTrim('%ATTACHMENTS')%-
%IF:|%_A|=|none|:|%_A=|:||%-
%IF:|%_A|||:|Anlagen:
%_AC=%XMP_StrItemCnt('%ATTACHMENTS',', ')%-
%XMP_For('i',1,'%_AC','  %%_i) %-
%%XMP_StrItem(%%ATTACHMENTS,, ,%%_i)%-
%%XMP_StrC(\n)')%-
|:||

My template for new messages:

%TOFNAME,

%Cursor

%QINCLUDE=anlagen

-- 
%FromFName
%PUT=U:\Lyl Canbys\Mail\TheBat\gwendragon-sig.txt

%LANGUAGE=DE%-
%SIGNCOMPLETE%-
%NOPGPMIME%-


I posted this problem already in Ritlabs BT at
https://www.ritlabs.com/bt/view.php?id=9052 

I think, macros should always work in TheBat, after creating a mail and 
reopening
the saved draft.

Do macros only work if a mail is not saved? Why?
Or is this a bug?

-- 
Kind regards
GwenDragon
Webmistress

Using The Bat! 5.0.34.3 under Windows 7 6.1 Build 7601 Service Pack 1

E-Mail:  g...@gwendragon.de
Website: http://gwendragon.de

-
E-Mail mit GnuPG signiert/Signed with GnuPG

 GnuPG-Signatur DSA/1024
 Key-ID:  0x6E56AC7D4492AD16
 Fingerprint: 0BC8 DDF7 E381 190B AF7D  A327 6E56 AC7D 4492 AD16 
-

pgpzY1qII1btR.pgp
Description: PGP signature

 Current beta is 5.0.34.3 | 'Using TBBETA' information:
http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Macros in Quick Templates work only if message is not a draft

2012-02-26 Thread Roelof Otten
Hallo GwenDragon,

On Sun, 26 Feb 2012 14:01:10 +0100GMT (26-2-2012, 14:01 , where I
live), you wrote:

G I think, macros should always work in TheBat, after creating a mail and 
reopening
G the saved draft.

You can think so, but they don't.

G Do macros only work if a mail is not saved? Why?

Your  macros  are interpreted once: when you start editing the message
body.  If  they'd  need  to  be interpreted more times, they should be
stored  in  the message as macro. That way you wouldn't know what text
would  be  generated  by the macro until they were interpreted for the
last time, probably when you press on the send button.
However,  that  would  mean  that  you'd  be sending a message without
knowing  the  actual  contents of that message, especially when you've
got a load of macros that need to be interpreted.
Not  knowing  what  you're actually sending is unacceptable, therefore
you cannot use macros that are continuously updating themselves.

This is not a bug, it works as designed. 

-- 
Groetjes, Roelof

Get back at your enemies, make them Moderators!
http://www.voormijalleen.nl/
The Bat! 5.0.34.3
Windows Vista 6.0 Build 6002 Service Pack 2
5 pop3 accounts, 3 imap account
OTFE disabled
Quad Core 2.4GHz
4 GB RAM

pgpjUMHZMMLzq.pgp
Description: PGP signature

 Current beta is 5.0.34.3 | 'Using TBBETA' information:
http://www.silverstones.com/thebat/TBUDLInfo.html


Re:Macros in Quick Templates work only if message is not a draft

2012-02-26 Thread Eddie
Dear GwenDragon,

 --- GwenDragon / Sunday 26. Feb 2012, 15:01:10
   Macros in Quick Templates work only if message is not a draft


 i'm using some macros in common quick templates (QT) together with
 Gaijin's TheBat! plugin XMP http://www.gaijin.at/tbpxmp.php.

Sorry for not being able in giving you an answer. Bu tRoelof did
already that should help you furhter.

I from my side I like to thank you for that interesting web link. I
will explore it more.


-- 
  Eddie Castelli
   50minCoach
   'Executive Success Solution'
==
 Switzerland: +41-44 586 6362
-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-



 Current beta is 5.0.34.3 | 'Using TBBETA' information:
http://www.silverstones.com/thebat/TBUDLInfo.html


Re: 5.0.34.3

2012-02-26 Thread Martin Schoch
Hi Marck

On Sunday, February 19, 2012 11:46:56 AM you wrote:

MM The Bat! 5.0.34.3 is available at
MM http://www.ritlabs.com/download/files3/the_bat/a-5/tb50343.rar

 Message finder has a random TEdit field superimposed on the main
 window overlapping the 1st input field on the data entry screen and
 over the message list on the results screen.

 Confirmations?

Yes, same problem here.

-- 
Best regards,
   Martin
   dagob...@yahoo.com

TheBat! 5.0.34.3 Pro (no OTFE) on Windows XP 5.1 2600 Service Pack 3



 Current beta is 5.0.34.3 | 'Using TBBETA' information:
http://www.silverstones.com/thebat/TBUDLInfo.html


Re: 5.0.34.3

2012-02-26 Thread Eddie
Dear Marck,

 --- Marck Pearlstone / Sunday 19. Feb 2012, 12:46:56
5.0.34.3

 Message finder has a random TEdit field superimposed on the main
 window overlapping the 1st input field on the data entry screen and
 over the message list on the results screen.

 Confirmations?

Yes I do!


-- 
   best regards  | Using The Bat! 5.0.34.3
   Eddie   | on Windows XP 5.1
  | Build 2600 Service Pack 3



 Current beta is 5.0.34.3 | 'Using TBBETA' information:
http://www.silverstones.com/thebat/TBUDLInfo.html