Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Attachments are damaged /cannot be read
PostPosted: 2010-08-25 14:13 
New user
New user

Joined: 2008-01-17 23:25
Posts: 17
Location: Hamburg/Germany
Hi,

under following conditions attachments are damaged (not correctly coded?):

1) The body is empty

and

2) OnAcceptMessage():
oMessage.Body = oMessage.Body & "<disclaimer>"


Can anyone confirm this problem?

Jürgen


Top
 Profile  
 
 Post subject: Re: Attachments are damaged /cannot be read
PostPosted: 2010-08-25 16:01 
Moderator
User avatar

Joined: 2007-06-14 05:12
Posts: 9385
Location: 'The Outback' Australia
What mail client do you use to read the mail?

_________________
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
Documentation


Top
 Profile  
 
 Post subject: Re: Attachments are damaged /cannot be read
PostPosted: 2010-08-25 17:25 
New user
New user

Joined: 2008-01-17 23:25
Posts: 17
Location: Hamburg/Germany
It is not specified to a particular client.

The message is delivered by Outlook 2003.

hMailServer 5.3-B1617


Top
 Profile  
 
 Post subject: Re: Attachments are damaged /cannot be read
PostPosted: 2010-08-25 17:28 
Developer

Joined: 2010-04-24 23:16
Posts: 4802
Location: Michigan, USA
Hi,
Can we see an example before & after? Perhaps the MIME is broken doing it that way depending on the original email. Not sure you can just tack on line of text for just any email & expect it to work..
Thx
Bill

_________________
hMailServer build I'm using LIVE on my servers: 5.4-B2013040501
Latest test builds at: http://www.hmailserver.com/forum/viewtopic.php?f=10&t=21420


Top
 Profile  
 
 Post subject: Re: Attachments are damaged /cannot be read
PostPosted: 2010-08-25 18:05 
New user
New user

Joined: 2008-01-17 23:25
Posts: 17
Location: Hamburg/Germany
Uploading the files says <The extension pdf is not allowed>.

Another effect on my issue is, that oMessage.Body = oMessage.Body & <disclaimer> does not work.

It seems to be a problem delivering mails only with Outlook 2003 to hMailServer.


Top
 Profile  
 
 Post subject: Re: Attachments are damaged /cannot be read
PostPosted: 2010-08-25 18:13 
Developer

Joined: 2010-04-24 23:16
Posts: 4802
Location: Michigan, USA
You'd have to zip 1st I think or post on web server. You'd want to ensure private info has been removed 1st.

Well the assumption is that tacking on like that breaks MIME & why seeing message before & after would be helpful to see the difference. It's possible you just need to tack on proper MIME or something as simple as CRLF before & after your text maybe..

Different email clients produce & handle reading MIME differently just like web browsers do.
Bill

_________________
hMailServer build I'm using LIVE on my servers: 5.4-B2013040501
Latest test builds at: http://www.hmailserver.com/forum/viewtopic.php?f=10&t=21420


Top
 Profile  
 
 Post subject: Re: Attachments are damaged /cannot be read
PostPosted: 2010-08-26 20:59 
New user
New user

Joined: 2008-01-17 23:25
Posts: 17
Location: Hamburg/Germany
Hi,

here is a zip-file with two messages with attachment:

1. correct message with body

2. corrupt message sent with an empty body with Outlook 2003 and adding a disclaimer with oMessage.Body = oMessage.Body & "disclaimer..."

Hope this will help.

Jürgen


Attachments:
messages.zip [91.35 KiB]
Downloaded 58 times
Top
 Profile  
 
 Post subject: Re: Attachments are damaged /cannot be read
PostPosted: 2010-08-27 02:40 
Developer

Joined: 2010-04-24 23:16
Posts: 4802
Location: Michigan, USA
Hi Jürgen,
Hmm. Was the 'correct' one exact same as the 'corrupt' one before adding the disclaimer? Looking at them the good one has base64 MIME for the attachment & the bad one doesn't look corrupt but is plain text & missing attachment entirely.
Also I noticed the PDF is one of those 'text'-looking ones that seem to get encoded wrong sometimes & wonder if that is coming into play here.. Since you have an older build of hmail perhaps updating to latest might solve it if the corruption is happening during POP3 download. Here is changelog:
http://www.hmailserver.com/?page=change ... sion=5.3.3
Quote:
Issue 312: In some cases, the POP3 server returned incorrect data which could lead to corrupt attachments. Changes have been made to prevent this error. The error was apparent when retrieving PDF files which had been sent using Outlook Express.

http://hmailserver.com/issues/?312

If not that issue perhaps hmail is mucking up the MIME when adding the disclaimer in the script so I'll play with your email myself when I get a chance.

Also, are you sure GMX Antivirus/antispam doesn't have a hand in it? Worth disabling to test because you never know.

Thanks for following up with the messages!
Bill

_________________
hMailServer build I'm using LIVE on my servers: 5.4-B2013040501
Latest test builds at: http://www.hmailserver.com/forum/viewtopic.php?f=10&t=21420


Top
 Profile  
 
 Post subject: Re: Attachments are damaged /cannot be read
PostPosted: 2010-08-30 21:32 
New user
New user

Joined: 2008-01-17 23:25
Posts: 17
Location: Hamburg/Germany
Hi Bill,

- It is always the same mail.

- I updated to 5.3.3 Built 1879 ---> Same error.

- Concerning GMX Anti -Virus: All mails to other addresses show same error.

I did further tests, but always the same result.

It seems to be a problem between hMailServer and Outlook 2003.

Probably Martin can help!?

Jürgen


Top
 Profile  
 
 Post subject: Re: Attachments are damaged /cannot be read
PostPosted: 2010-09-01 15:42 
Developer

Joined: 2010-04-24 23:16
Posts: 4802
Location: Michigan, USA
Hmm. Well if the problem can be reproduced and you can provide martin what what is needed to reproduce it then he'd probably look into it deeper. Gather everything up & post in the issue tracker & link back here. To save him some grief be sure to include clear step by step instructions on how to reproduce and provide any needed files/samples. (Which I believe you did in the zip below so just mention it was attached to the linked thread.
Bill

_________________
hMailServer build I'm using LIVE on my servers: 5.4-B2013040501
Latest test builds at: http://www.hmailserver.com/forum/viewtopic.php?f=10&t=21420


Top
 Profile  
 
 Post subject: Re: Attachments are damaged /cannot be read
PostPosted: 2010-09-01 18:00 
New user
New user

Joined: 2008-01-17 23:25
Posts: 17
Location: Hamburg/Germany
Hi Bill,

it would be very helpfull, if you could confirm the problem.

Do you have the possibility to deliver a mail to hMailServer with Outlook 2003/2007
with oMessage.Body = oMessage.Body & "disclaimer" in OnAcceptMessage() ?

Jürgen


Top
 Profile  
 
 Post subject: Re: Attachments are damaged /cannot be read
PostPosted: 2010-09-01 18:16 
Developer

Joined: 2010-04-24 23:16
Posts: 4802
Location: Michigan, USA
Yeah I could but it'll be tomorrow before I had time, I'll be out & about (dang work!). If no one else posts back they tried I'll muck with it & get back with you tomorrow.
Bill

_________________
hMailServer build I'm using LIVE on my servers: 5.4-B2013040501
Latest test builds at: http://www.hmailserver.com/forum/viewtopic.php?f=10&t=21420


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests



Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group