Dear Sirs,

I only want to make a bug report. I use PHP for development so I really
won't be able to keep up with messages from this list. Please don't take
offense if I unsubscribe in a few days after sending this message.

While developing a Webmail for www.cynergi.com, we started coming upon some
(spam) messages with bad MIME types. However PHP (via your c-client library)
reported a MIME type code of 9 instead of TYPEOTHER (8).

Looking at your library I seem to have found the bug. From a comment in our
source code:

        Unknown MIME-types (such as "25-bit") are returned as int(9) due to
a
        bug in c-client's rfc822.c "body_types" array that defines TYPEOTHER
        as "X-UNKNOWN"; then when imap4r1.c goes to match a MIME-type and
        can't match any of body_types' strings (including TYPEOTHER's), it
        returns the next available integer (9).
        This same bug also seems to apply to ENCOTHER.

I am unaware if the body_types array is also used to CREATE MIME-types. If
so, deleting "X-UNKNOWN" from there won't be the solution (the solution will
then have to be fixing imap4r1.c's code).

Thank you for your time, and for such a great open-source library!! :-)

Pedro Freire
Cynergi

_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to