diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2004-10-14 23:24:25 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2004-10-14 23:24:25 +0000 |
commit | 33e2bbbdcaa0c7e308846271996deaa531b30464 (patch) | |
tree | 621de722823a90d922295371cae491dd3caeb5ee /sink.c | |
parent | 99b69605eed51631bbb388ce438c63ffab18a79e (diff) | |
download | fetchmail-33e2bbbdcaa0c7e308846271996deaa531b30464.tar.gz fetchmail-33e2bbbdcaa0c7e308846271996deaa531b30464.tar.bz2 fetchmail-33e2bbbdcaa0c7e308846271996deaa531b30464.zip |
Add MIME headers to specify body encoding for mail warnings.
svn path=/trunk/; revision=3943
Diffstat (limited to 'sink.c')
-rw-r--r-- | sink.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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); } |