From aebb8189069f24e6f4e59cf79f179bcbafe7a098 Mon Sep 17 00:00:00 2001 From: Jan Kara Date: Tue, 6 Nov 2012 11:04:44 +0100 Subject: warnquota: Add MIME-Version header Warnquota forgot to add MIME-Version header to sent email when Content-type etc. fields were set. Signed-off-by: Jan Kara --- warnquota.c | 1 + 1 file changed, 1 insertion(+) diff --git a/warnquota.c b/warnquota.c index 08827f2..80f528c 100644 --- a/warnquota.c +++ b/warnquota.c @@ -503,6 +503,7 @@ static int mail_user(struct offenderlist *offender, struct configparams *config) if (should_cc(offender, config)) fprintf(fp, "Cc: %s\n", config->cc_to); if ((config->charset)[0] != '\0') { /* are we supposed to set the encoding */ + fprintf(fp, "MIME-Version: 1.0\n"); fprintf(fp, "Content-Type: text/plain; charset=%s\n", config->charset); fprintf(fp, "Content-Disposition: inline\n"); fprintf(fp, "Content-Transfer-Encoding: 8bit\n"); -- cgit v1.2.1