Ondrej Brablc said:
>> The bodystructure looks valid to me.
>
> I would assume that bodystructure as well as body would both follow RFC
> but they do not fit together or there is bug in SM. As I can read the mail
> on another IMAP server I tried following test on both:
>
> FETCH #id BODYSTRUCTURE[]
> FETCH #id BODY[]
>
> With exception of unimportant header fields and they order the body looks
> exactly the same (the good server uses 7bit for plain text encoding).
<snip>
>
> The body structure is, however different:
>
> BODYSTRUCTURE on GOOD SERVER:
>
> (BODYSTRUCTURE
> (
> ("TEXT" "PLAIN"
> ("CHARSET" "iso-8859-1")
> NIL NIL "7BIT" 184 9 NIL NIL NIL
> )
> ("TEXT" "HTML"
> ("CHARSET" "iso-8859-1")
> NIL NIL "QUOTED-PRINTABLE" 867 20 NIL NIL NIL
> )
> "ALTERNATIVE"
> ("BOUNDARY" "----=_NextPart_000_0015_01C3904C.A1133290")
> NIL NIL
> )
> )
>
> BODYSTRUCTURE on WRONG SERVER:
>
> (BODYSTRUCTURE
> (
> ("text" "plain"
> ("charset" "iso-8859-1")
> NIL NIL "quoted-printable" 186 9 NIL NIL NIL
> )
> ("text" "html"
> ("charset" "iso-8859-1")
> NIL NIL "quoted-printable" 869 21 NIL NIL NIL
> )
> ("TEXT" "PLAIN" NIL NIL NIL "7bit" 4 4294967295 NIL NIL NIL)
> "alternative"
> ("boundary" "----=_NextPart_000_0005_01C38FE1.A9DD44D0")
> NIL NIL
> )
> )
>
> There is visible difference. I will try to study recommended RFC, but if
> you can see the difference, body and understand what is 4294967295 then
> you can see whether it fits to the body or not.
That's interesting information. It proves that the provided bodystructure
is wrong. Because SquirrelMail shows all text/plain parts that do not have
disposition attachment it goes wrong when fetching the non existent 3e
part.
>
>> If you do not default show html messages then body part 1 and 3 should
>> be
>> showed.
>
> When I use HTML by default then I have no error (I have errors with other
> messages), otherwise I have error on body part 3 and it looks to me, like
> this is the firts part fetched (I did some debugging).
>
>> If your imap server doesn't want to show the 3e part then it's broken.
>> Can you tell us what imap server type and version you are using?
>
> It is IMail Server 6.06 (June 8, 2001) from http://www.ipswitch.com/ .
> Version 6.06 is the last hotfix available for release 6.
>
The best thing you can do is forward this conversation to ipswitch and
tell them they have a bug in their imap server.
Regards,
Marc Groot Koerkamp.
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id)95
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users