This is probably a bug with your IMAP server.

With NNTP, POP3, and all local file formats, mail_fetch_mime() simply
returns  octets starting at point  in the message text, where
 and  were earlier calculated by parsing the message.

With IMAP, mail_fetch_mime() does a specific IMAP operation to get
that part.

If your IMAP server is to blame, this is a bad bug in the server.  The
sole reason for mail_fetch_mime() to exist is as an aid in PGP and
S/MIME validation.  Changing data octets will foul up this validation.

Which brings me to another point:

Why are you using mail_fetch_mime()?

You say that you are using it "to get a particular MIME part header".
This information is almost certainly in the IMAP BODYSTRUCTURE,
and should be obtained from there.  You have to fetch the
BODYSTRUCTURE anyway, since otherwise you don't know what
MIME body parts (and hence their MIME headers) exist.

Hopefully, this information will help you correct a serious mistake
before the situation becomes too difficult for you.

-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.



________________________________
Date: Mon, 27 Oct 2008 16:04:48 +0530
From: [EMAIL PROTECTED]
To: imap-uw@u.washington.edu
Subject: [Imap-uw] mail_fetch_mime issue?

Hi,
I am new to IMAP library. I have an issue when using this.

I am using 'mail_fetch_mime' to get a particular mime part header. If i am 
reading a mime part with content type 'multipart/alternative' the value I am 
getting is as follows


Content-Type: multipart/alternative;
 boundary="----=_Part_29145_13825174.1225102765556"

see the space before boundary, but if I am using mail_fetchtext to read the 
mail body I am getting this area like as follows


....
Content-Type: multipart/alternative;
    boundary="----=_Part_29145_13825174.1225102765556"
....

here before boundary I am getting a TAB character. why this behavior?

Thanks in advance,

Manoj





_________________________________________________________________
You live life beyond your PC. So now Windows goes beyond your PC.
http://clk.atdmt.com/MRT/go/115298556/direct/01/_______________________________________________
Imap-uw mailing list
Imap-uw@u.washington.edu
http://mailman2.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to