Xymon Mailing List Archive search

mail headers in alerts

2 messages in this thread

list Anna Jonna Armannsdottir · Fri, 23 Jan 2009 15:09:45 +0000 ·
Hi all. It seems to be difficult to find any information about configuring headers in the alert messages sent by hobbit. in the file hobbitserver.cfg there are some lines that define the mail command: # For the hobbitd_alert module
MAILC="mail"				# Command used to send an e-mail with no subject
MAIL="$MAILC -s"				# Command used to send an e-mail with a subject

At our site it is necessary to have a mail header like the following:

Content-Type: text/plain; charset=utf-8

The mail command itself does not seem to facilitate headers. 
Maybe someone knows about a sendmail wrapper that has a mail like interface. Unfortunately I do not know about the interface of the mail program, so I am not going to write this wrapper. 
-- 
Kindest Regards, Anna Jonna Ármannsdóttir,       %&   A: Because people read from top to bottom.
Unix System Aministration, Computing Services,   %&   Q: Why is top posting bad?
University of Iceland.
list Henrik Størner · Wed, 28 Jan 2009 11:40:07 +0000 (UTC) ·
quoted from Anna Jonna Armannsdottir
In <user-fbf52aa94c68@xymon.invalid> Anna Jonna Armannsdottir <user-a8cde33204f6@xymon.invalid> writes:
It seems to be difficult to find any information about configuring headers in the alert messages sent by hobbit. in the file hobbitserver.cfg there are some lines that define the mail command: # For the hobbitd_alert module
MAILC="mail"				# Command used to send an e-mail with no subject
MAIL="$MAILC -s"				# Command used to send an e-mail with a subject
At our site it is necessary to have a mail header like the following:
Content-Type: text/plain; charset=utf-8
The mail command itself does not seem to facilitate headers. 

Not a Hobbit question per se. This has to do with setting
up your mail client software, which is probably something that
comes with your operating system. I'm afraid you'll have to dig
into those docs for an answer.


Regards,
Henrik