Pages: 1
RSS
Variable for Plain text part of message?, Content-Type: text/plain
 
Hi,

How can I use macro variable for "Content-Type: text/plain" - plain text part of message?

Trying %TEXT outputs "Content-Type: text/html" also

Thanks
 
What do you want to achieve by placing that header in your message?
__________________________________
I'm just a user of The Bat! I don't work for Ritlabs.
 
I need to redirect only plain text part. Is it possible to do?
 
Redirect the message and set the message format to plain text.
In the editor: Options -> Message Format -> Plain Text
In case you're not really redirecting (redirecting doesn't use a template), you could use a template that contains the macro %SetEditor="1"
__________________________________
I'm just a user of The Bat! I don't work for Ritlabs.
 
Well, I was thinking about "redirect" in freely interpretative way.
Let's say I want to make reply or forward template and quote just plain text part. How can that be done?
With %SetEditor="1" only editor is changed to Plain text and %TEXT macro still returns "Content-Type: text/html" part of message

Thanks for your support
 
In itself it's rather odd that the %Text macro returns a header type.
How do you display your html messages?
Options -> Preferences -> Viewer/Editor
I've configured TB to display both html only and alternative layout messages as 'plain text and html'
When you've selected the text tab when replying or forwarding the message, that's the part that should go into %Quotes or %Text.
__________________________________
I'm just a user of The Bat! I don't work for Ritlabs.
 
Thanks, so %TEXT depends on which viewer is active in the moment of replying or forwarding, and there is no special macro for plain text content of the message or html one, but it depends on the current viewer.
If you don't mind only one more question: is there macro for returning whole message part (with headers and all).

I edited this message as soon as I realized your saying.
I'm new to TB, after friend recommended it

Cheers
Edited: klonuo umom - 09 July 2010 12:16:14
 
The whole message?
That would be:

%Headers

%Text
__________________________________
I'm just a user of The Bat! I don't work for Ritlabs.
 
It won't output rough message source (like with F9)

I can't find such macro in macro list from help file, and I wanted to process the message source myself with regex from MyMacros plugin (I know TB has it own regex, but this seems more intuitive in usage to me)
 
There is no macro in TB that gives a F9 alike output in a template, TB allows only the text or the headers to be used in a template, the contents of attachments can't be processed.
__________________________________
I'm just a user of The Bat! I don't work for Ritlabs.
 
OK, thanks for confirming
Pages: 1