FR: Support for |?HEADER in all the messages sent out by DA

interfasys

Verified User
Joined
Oct 31, 2003
Messages
1,821
Location
Switzerland
It would be quite convenient to be able to use something like this in the ticket template when using accentuated characters:
|?HEADER=Content-Type: text/plain; charset=iso-8859-1|

That would avoid the problem where people see ? instead of the character.
 
Hello,

Are you referring to these template files?:

/usr/local/directadmin/data/templates/
message_user.txt
message_tech.txt
partition_check_message.txt
reseller_limit.txt
user_limit.txt
user_suspension.txt

If yes, let me know and I can look at adding support for that header. It wouldn't be too difficult since the template is already double read to get the |?SUBJECT= token. (DA reads in the template to get some variables for other area.. in this case, the subject or header... then is parsed again to fill the text with the other tokens.)

John
 
Update:

I looked into it, and only the message_user.txt and message_tech.txt apply for the header. The other template files mentioned are just the text that is entered into the message for the DA message system. The emails that are sent out only use the 2 message_*.txt files.

I've added the above HEADER ability to the code and seems to work ok. If you'd like to test this out, let me know your OS version, and I'll compile you a set of binaries.

John
 
Back
Top