Pages: 1
RSS
REQUEST: X-Special-Headers, X-Special-Headers
 

this macro:

%HDRX-Special-Header="djlsadjlskad"

doesn't work.

Please, explain how to make this. X-Special-Headers are included in the RFC 822 but TheBat! doesn't support this.

thanks!




 
TB supports special headers just fine, you just can't make them on the fly. First you've got to define them at:
Options -> Preferences -> Message headers -> Add

I never used theHDR macro though, I generally use AddHeader or SetHeader, especially the latter is more clearly about te result. (Both the HDR an AddHeader macros add text to the header, SetHeader replaces any existing text)

I've got several templates that use SetHeader with custom headers.
__________________________________
I'm just a user of The Bat! I don't work for Ritlabs.
 

I have defined them in "Message headers -> Add" in this way:

name                RFC name  
X-Special-Header   X-Special-Header


also, I have added this macro in my template:

 %HDRX-Special-Header="djlsadjlskad"


however, the final result is one line appearing at the final of messages:

-Special-Headers="dsadsadsa"


Then it seems there is some problem in TheBat when he try to parse X-Special-Header. It seems when he find the character "-", then he stop the parse process.

Check yourself.

Or maybe there is another way to include this by mean Regex expresions or similar?


thanks in advance;




 


ok, forgot the question.

$SETHEADER ("X-Special-Header" "sdsfds")  works very well.


thanks anyway,


Pages: 1