Vacation and non-ASCII characters

Ralf Haferkamp rhafer at suse.de
Thu Feb 27 10:48:07 EST 2003


Hi,

as the reason string of a vacation command in SIEVE is considered to be in
UTF-8 in absence of the :mime Parameter (see the Internet Draft) wouldn't it
be correct, to set the MIME-Version and Content-Type Headers accordingly,
when sending then vacation response?

The attached diff was made against cyrus-imapd 2.1.9 and does exactly this.
Please consinder including it into your cvs.

-- 
regards,
    Ralf Haferkamp

SuSE Linux AG                                    - The Linux Experts -
Deutschherrnstrasse 15-19                         http://www.suse.com
D-90429 Nuernberg, Germany                        Tel: +49-911-74053-0
-------------- next part --------------
--- imap/lmtpd.c	2003/02/26 08:39:34	1.1
+++ imap/lmtpd.c	2003/02/26 10:21:08
@@ -914,6 +914,9 @@
 	fprintf(sm, "\r\nThis is a MIME-encapsulated message\r\n\r\n");
 	fprintf(sm, "--%d/%s\r\n", (int) p, config_servername);
     } else {
+	fprintf(sm, "MIME-Version: 1.0\r\n");
+	fprintf(sm, "Content-Type: text/plain; charset=utf-8\r\n");
+	fprintf(sm, "Content-Transfer-Encoding: 8bit\r\n");
 	fprintf(sm, "\r\n");
     }
 


More information about the Info-cyrus mailing list