Ondrej Brablc said:
> Hi all,
>
> I found SquirrelMail recently and it seems really great, thanks for it.
> However, it seems that my ISP is using some strange IMAP server called
> IMail. May be I'm on wrong place here, but perhaps is there someone out
> there using this IMAP server as well and can confirm my problems.
>
> The main problem is that some emails do not open and instead an error is
> reported. At the end of this message you will find copied email, that
> generates error: FETCH n BODY[3]. When the message is copied to another
> IMAP server, SM is fetching BODY[1] and it works fine, when I copy it back
> again it does not work again - that is why I blame IMail.
>
> Perhaps obvious, but in read_body.php
> $message->findDisplayEntity(array(), array('text/plain'));
> returns: array(1) { [0]=> int(3) }. There should be int(1) I assume.
>
SquirrelMail depends on the bodystructure information provided by the imap
server. This bodystructure contains the mime structure of a message.
The format of the bodystructure is well described in rfc3501.
If a server provides a bodystructure that isn't compliant with the format
described in rfc3501 then it's possible we request mime parts that do not
exist.
In your case the bodystructure tells us we should fetch the 3e mime part
in the message but when we fetch it it appears to be non existent.
That means that the imap server provided a bogus bodystructure.
If you want I can verify it for you. You need to post the bodystructure of
the message which can be retrieved as follows:
telnet localhost 143
a1 login username password
a2 select inbox
a3 uid fetch #id bodystructure
Or use the imap info plugin.
You probably can reach the imapinfo plugin (if disabled) by modding the
url to:
http(s)://isp-address/squirrelmail/plugins/info/options.php
and check test 0 and use test 9 to enter the query:
UID FETCH #id BODYSTRUCTURE
#id is the passed_id value in the uri of the messages.
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