HTML Reply template not working

2009-01-04 Thread Paul Meathrel
Hi all,

I'm trying to get an account based HTML reply template to work. The template is 
based on a template from the Silverstones website. It works fine in Plaintext 
mode however it doesn't produce the correct results in HTML. The relevant 
portion of the template is:

From: %OFromName %OFromAddr
Sent%-
%VARdate='%SetPattRegExp=^Date:.*?$%RegExpMatch=%HEADERS'%-
%SetPattRegExp=:.*$%RegExpMatch=%VARdate
%SetPattRegExp=^To:.*?$%IF:%RegExpMatch=%HEADERS:To: %OToList
:%-
%SetPattRegExp=^Cc:.*?$%IF:%RegExpMatch=%HEADERS:Cc: %OCcList
:%-
Subject: %OSubj

Which produces something looking like this:

-Original Message-
From: Joe Bloggs blo...@google.com
Sent
: Sat, 3 Jan 2009 04:59:35 -
:To: Paul Meathrel x...@y.com
:
:Cc: 
:
Subject: Whatever

I'm guessing that it isn't parsing the macros correctly or that I need to 
adjust the template. Can anyone help out?

-- 
Warmest regards,

Paul

Created using TheBat! 4.1.7 on Windows Vista

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


Re: HTML Reply template not working

2009-01-04 Thread Roelof Otten
Hallo Paul,

On Sun, 4 Jan 2009 18:30:17 +GMT (4-1-2009, 19:30 +0100, where I
live), you wrote:

PM From: %OFromName %OFromAddr
PM Sent%-
PM %VARdate='%SetPattRegExp=^Date:.*?$%RegExpMatch=%HEADERS'%-
PM %SetPattRegExp=:.*$%RegExpMatch=%VARdate
PM %SetPattRegExp=^To:.*?$%IF:%RegExpMatch=%HEADERS:To: %OToList
PM :%-
PM %SetPattRegExp=^Cc:.*?$%IF:%RegExpMatch=%HEADERS:Cc: %OCcList
PM :%-
PM Subject: %OSubj

The  value after %RegExpMatch= should be between quotation marks, like
you've  done  in  %RegExpMatch=%VARdate   But in the other instances
You're  using  %RegExpMatch=%Headers  without  quotation  marks,  it's
possible that HTML templates are somewhat stricter where the syntax is
concerned.
Furthermore  I'm  somewhat  lost  about  your extensive use of regular
expressions where they aren't necessary.
You're  using  regexp  to  retrieve  the original contents of the Date
header, where %OHeader('Date') would suffice.
You're  using some regexp to check whether %OToList is empty and if it
isn't   you're   inserting   %OToList,  why not simply use %OToList to
check whether it's empty instead of the regexp, same with %OCcList.

I'd propose something like this:

From: %OFromName %OFromAddr
Sent: %OHeader('Date')
%If:%OToList:To: %OToList
:%-
%If:%OCcList:Cc: %OCcList
:%-
Subject: %OSubject

No, I didn't check this.

-- 
Groetjes, Roelof

Windows: Ultimate memory manager.  It manages to use it all.
http://www.voormijalleen.nl/
The Bat! 4.1.7.1
Windows Vista 6.0 Build 6001 Service Pack 1
3 pop3 accounts
OTFE enabled
Quad Core 2.4GHz
4 GB RAM

pgpJ4P74qrPLl.pgp
Description: PGP signature

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

The RitLabs email address on their website bounce!!

2009-01-04 Thread Richard L de S Clauson
I've been trying to send RitLabs an email about problems moving from v4.0.38 to 
v4.1.7, but all the email addresses I use just bounce.

The email addresses I'm having problems with are off...@ritlabs.com, 
sa...@ritlabs.com, and i...@thebat.net .

Can anyone tell me the correct/working email address.

Thanks,

-- 
Richard L de S Clauson, 0118-956-7775 or 07710-412815
email:mailto:rich...@virbius.co.uk
website:  http://www.virbius.co.uk/ ( more is hidden than viewable ! )
Virbius Consultancy Ltd, Reading, 0118-956-1397 (+fax)

Using The Bat! v4.0.38 on Windows XP 5.1 Build 2600 Service Pack 3



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


Re: The RitLabs email address on their website bounce!!

2009-01-04 Thread ETM

Hello Richard

On Monday, January 5, 2009, you wrote

 I've been trying to send RitLabs an email about
 problems moving from v4.0.38 to v4.1.7, but all
 the email addresses I use just bounce.

 The email addresses I'm having problems with
 are off...@ritlabs.com, sa...@ritlabs.com, and i...@thebat.net .


I think you want a support ticket by registering
and signing in at

https://www.ritlabs.com/en/support/ticket_list.php

--
Elaine





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