On Thu, Feb 27, 2003 at 11:51:13AM -0500, Ken Murchison wrote: > > > Ralf Haferkamp wrote: > > > > 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? > > Its been a while since I looked at or worked on this part of the code, > but IIRC, the MIME headers are expected to be included as part of the > :mime response in the Sieve script. In theory (and I've actually tested > it), the response doesn't have to be text, it could be a JPEG or > something, so hardcoding the content as text/plain is not a good idea. That's why the patch only adds the headers in cases where there is no :mime parameter in the vacation statement. This is what the ID states:
---- 3.4. MIME Parameter The ":mime" parameter, if supplied, specifies that the reason string is, in fact, a MIME part, including MIME headers (see section 2.4.2.4 of [SIEVE]). If the optional :mime parameter is not supplied, the reason string is considered to be a UTF-8 string. ---- -- regards, Ralf