Home - Impressum - E-Mail


2012-10-11

The Bat!: How to Add or Set Custom Email Header Lines (and Values!)

If you've been trying to find a solution for this particular problem, you may have found About.com's "How to Add Custom Header Lines to Emails in The Bat!" article, according to which "The Bat! does not allow you to specify standard values for extra headers".

While I don't what version of The Bat! this article is based upon, what I DO know is that version 3.9x and newer do in fact allow you to specify both additional header lines and their standard values as well. It's not overly complicated, but the feature may be a little hidden.

First of all, add the header to The Bat! as described in About.com's article: Go to "Options - Preferences - Messages - Message Headers" and type the header name of your choice into both fields. Check the "Allow to edit this field in the Message Editor" option.

Custom header default values can be set through the template system. That's where you change your default email layout, add signatures and stuff. It can be accessed from within the "Account Settings" window, or folder settings, or the address book, depending on what kind of template you want to edit.

(If you don't know anything about The Bat!'s templates, do yourself a favor and get used to it before proceeding -- it's very useful even if you don't plan to insert headers. Besides, since you're the kind of person who not only knows what an email header is but also feels the need to add your own, I'm pretty sure you're going to love it ;-)

Now that you're editing your template, add the following code:

%SETHEADER("X-My-Header","Some Value")%

That's it, you're done. Whenever The Bat! uses this template, it is going to add your header line to the email header. If it doesn't work, you've probably changed the wrong template.

Some versions of The Bat! don't include the SETHEADER macro in the right-click context menu and that's why it can be a little hard to find. It should be documented, though. Search your help file for "SETHEADER" or look for the "Full alphabetic list of macros" chapter.


Home - Impressum - E-Mail