David Koopman <[EMAIL PROTECTED]> writes:

[...]

> I am trying to support a web based email client that works with PHP
> imap functions.  The program makes an imap connection and sends it a
> FETCH command for BODYSTRUCTURE.  I have found that courier-imap
> will behave correctly and return the intended BODYSTRUCTURE, unless
> the message being fetched is missing the: "MIME-Version: 1.0"
> header.  This sucks because now users of the web based email system
> are complaining they cannot view messages that they could otherwise
> view just fine in Outlook Express.

If it doesn't have a MIME-Version header, it's not a MIME message,
according to RFC1341 Sec. 3:

            Messages composed in accordance with this document MUST
            include such a header field, with the following verbatim
            text:

            MIME-Version: 1.0

            The presence of this header field is an assertion that the
            message has been composed in compliance with this
            document.

So courier-imapd is behaving correctly---it's not a MIME message, so
it isn't treated as one...

> The reason I am posting this here is that I am hoping to find a
> patch for QMAIL that will add a header of:
>
> MIME-Version: 1.0
>
> whenever a MIME-Version is not given.

...that said, it would be straighforward to write a .qmail file which
fixed up emails in this way.

> Anybody heard of this or have a differnent approach?  Maybe a patch
> to courier-imap?  Is there a way to do this?  No, I cannot re-write
> the webbased email system, it's already well in place (it's
> Squirrelmail, in case you're interested).  Help!?!?!

You could try asking on the courier-imap list.

Good luck,

----ScottG.

Reply via email to