Display problem with file attachment

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
Julien@TLD
Normal user
Normal user
Posts: 53
Joined: 2005-09-12 11:57
Location: Marseille - France

Display problem with file attachment

Post by Julien@TLD » 2009-07-09 18:36

Hello,

When I send a message with hMailserver with a file attachment, it is not displayed correctly in my POP3 client.

In fact, all the headers and the base64 code of the file attachment are directly displayed in Outlook Express.

When I send the same mail with the SMTP server of my ISP (unix based ?), I do not have any problem. The message is correctly displayed and the file attachment avaible with a click in the corner

I clarify that this mail is sended automaticaly by a program developped by an independent developper. I do not have any problem with hMailserver and classical mails.

Do you have any idea about this issue ? Has the developper forgotten something or it is a carriage return problem different in windows/unix ?

The message I receive (and which is displayed like that) can be seen here : <removed by admin>

Thanks.

Julien

^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Re: Display problem with file attachment

Post by ^DooM^ » 2009-07-09 18:38

Julien@TLD wrote:or it is a carriage return problem different in windows/unix ?
This sounds plausible and has caused strange issues in the past. Can you zip up the raw EML file from the data directory (name should be in the header of the email) and attach it to your next post?
If at first you don't succeed, bomb disposal probably isn't for you! ヅ

Julien@TLD
Normal user
Normal user
Posts: 53
Joined: 2005-09-12 11:57
Location: Marseille - France

Re: Display problem with file attachment

Post by Julien@TLD » 2009-07-10 14:59

Hello,

The EML zipped and unmodified file is attached to this post (directly taken in the data directory of hMailServer).

As you can see, headers and the base64 code of the file are displayed :(

For information, the custom program used for sending this mail is based on an unix server.

Thanks.
Attachments
mail.zip
(1.44 KiB) Downloaded 111 times

User avatar
pepsi
Senior user
Senior user
Posts: 419
Joined: 2008-08-21 20:58
Location: Netherlands

Re: Display problem with file attachment

Post by pepsi » 2009-07-10 15:59

Yes they all need to be CR LF
and in the header there are to many. emplty lines

I'm still looking what is wrong with the body but.

User avatar
pepsi
Senior user
Senior user
Posts: 419
Joined: 2008-08-21 20:58
Location: Netherlands

Re: Display problem with file attachment

Post by pepsi » 2009-07-10 16:40

It was quite easy.

in some lines end with a cr
and the next line containse a cr/lf

I can go to the solution or explain what I have done...............
Oke just the solution.

In the prev. post i menationd that er where to many crlf in the header and that al cr must contain a cr/lf

I was correct but to solve your problem i just had to remove the cr that not contain a lf

the cr withou the LF are probely generated on the Linux system

Julien@TLD
Normal user
Normal user
Posts: 53
Joined: 2005-09-12 11:57
Location: Marseille - France

Re: Display problem with file attachment

Post by Julien@TLD » 2009-07-10 18:57

Thanks you very much pepsi.

I will ask to the developper to replace the \n by a \r\n sequence !

Do you know a software which can display the CR and/or LF sequences of a text file ?

Bye

User avatar
pepsi
Senior user
Senior user
Posts: 419
Joined: 2008-08-21 20:58
Location: Netherlands

Re: Display problem with file attachment

Post by pepsi » 2009-07-10 19:35

i use notepad2 it is smaller than notepad and has scipt highlights
linenumbers and a lot more.

http://www.flos-freeware.ch/notepad2.html

it is just 1 exe

open the eml with notepad2 go to
View - Show line endings
I will ask to the developper to replace the \n by a \r\n sequence !
No let them remove the \n sequence then it is solved otherwish you get empty lines in between and that is just what you DON'T want

Julien@TLD
Normal user
Normal user
Posts: 53
Joined: 2005-09-12 11:57
Location: Marseille - France

Re: Display problem with file attachment

Post by Julien@TLD » 2009-07-11 00:19

Thanks pepsi :wink:

Post Reply