Issue in Bodystructure Reply

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
rosali
Normal user
Normal user
Posts: 101
Joined: 2008-01-13 18:32

Issue in Bodystructure Reply

Post by rosali » 2009-09-01 15:08

RoundCube Developer assume an issue in hMailServer 5.2 bodystructure replay.

For further informations see ticket (example file and log snippet attached):

http://trac.roundcube.net/ticket/1486077

Thank you!

User avatar
martin
Developer
Developer
Posts: 6834
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Re: Issue in Bodystructure Reply

Post by martin » 2009-09-01 19:13

I don't get the same result. I get a much larger bodystructure response when testing the same thing here. For instance, the bodystructure result contains the file name "RequestedFile.zip"

Could you try to do the following:

1) Connect to your hMailServer installation
2) Issue MAIL FROM: someaddress@external.com<enter>
3) Issue RCPT TO: youraddress@external.com<enter>
4) Issue DATA<enter>
5) Paste the data from the test.eml file you mentioned in the other thread. Please use the test.eml from the thread and not your original local copy, so we're really using the same message.

Try to access the mail using RoundCube again and re-check the logs.

rosali
Normal user
Normal user
Posts: 101
Joined: 2008-01-13 18:32

Re: Issue in Bodystructure Reply

Post by rosali » 2009-09-01 19:26

Will follow your instructions next weekend. At the moment I'm too busy. Thanks so far!

rosali
Normal user
Normal user
Posts: 101
Joined: 2008-01-13 18:32

Re: Issue in Bodystructure Reply

Post by rosali » 2009-09-02 07:02

I don't get it. Server reponse "line too long". Is it because the source file has only \n as line ending?

rosali
Normal user
Normal user
Posts: 101
Joined: 2008-01-13 18:32

Re: Issue in Bodystructure Reply

Post by rosali » 2009-09-02 07:24

Here is the original file (from hmailserver data folder) ...

The trouble is definitely caused by "\n" instead of "\r\n" in the body.

I have fixed net2ftp so far (http://www.net2ftp.org/forums/viewtopic ... 9570#p9570).

But now I'm confused. If the malformed body is fetched by Outlook Express (backend hMailserver 5.2) the mail is handled properly. If is fetched from hMailServer by RoundCube the body is displayed empty. RoundCube devs say it is a hMailServer problem in BODYSTRUCTURE response. But if so, why is the message parsed ok by Outlook?

Should I reopen the RoundCube ticket in your opinion?

===== EDIT =====
Alec replied:
The new file is working for me as before.

> RoundCube devs say it is a hMailServer problem in BODYSTRUCTURE response.
> But if so, why is the message parsed ok by Outlook?

It's because Outlook (Thunderbird too) doesn't rely on BODYSTRUCTURE
but Roundcube does. There's a request in trac to parse raw message in some
circumstances, but this is much work to do, better try to find and fix
the error in IMAP server.
Attachments
test.zip
(3.92 KiB) Downloaded 199 times

User avatar
martin
Developer
Developer
Posts: 6834
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Re: Issue in Bodystructure Reply

Post by martin » 2009-09-02 20:00

If the format of the message is incorrect, hMailServer "won't be able" to parse the line feeds. Maybe Outlook Express's parsing algorithm looks for \n rather than \r\n.

Sure, the RoundCube dev says that the problem was with hMailServers response. But the attachment you put up on RC's site appears to contain correct line feeds. I'm guessing alec's response was based on that information.

So no, you should not reopen the issue. If you send incorrectly formatted messages, you should expect anything. If you send correctly formatted messages but still see the issue, then post an update here.

Post Reply