From 33e2bbbdcaa0c7e308846271996deaa531b30464 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Thu, 14 Oct 2004 23:24:25 +0000 Subject: Add MIME headers to specify body encoding for mail warnings. svn path=/trunk/; revision=3943 --- sink.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sink.c') diff --git a/sink.c b/sink.c index 577b3731..54db4029 100644 --- a/sink.c +++ b/sink.c @@ -1534,7 +1534,12 @@ int open_warning_by_mail(struct query *ctl, struct msgblk *msg) } else /* send to postmaster */ status = open_sink(ctl, &reply, &good, &bad); - if (status == 0) stuff_warning(ctl, "Date: %s", rfc822timestamp()); + if (status == 0) { + stuff_warning(ctl, "Date: %s", rfc822timestamp()); + stuff_warning(ctl, "MIME-Version: 1.0"); + stuff_warning(ctl, "Content-Transfer-Encoding: 8bit"); + stuff_warning(ctl, "Content-Type: text/plain; charset=\"%s\"", nl_langinfo(CODESET)); + } return(status); } -- cgit v1.2.3