Carriage return problem on attachment

Moderator: crythias

Locked
Colla
Znuny newbie
Posts: 29
Joined: 28 Mar 2014, 11:54
Znuny Version: 3.3.9

Carriage return problem on attachment

Post by Colla »

Hi all,

I send an email with a txt file attached to the OTRS system, thi file contains the characters \r\n at the end of the line, when the mail is fetched by OTRS, it deletes all occurrences of \r.

How can i keep all \r char?

Thank you,
Mark.
Colla
Znuny newbie
Posts: 29
Joined: 28 Mar 2014, 11:54
Znuny Version: 3.3.9

Re: Carriage return problem on attachment

Post by Colla »

Up :)
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Carriage return problem on attachment

Post by jojo »

you seem to expect enterprise support in this forum. You should consider buying support.

please explain your issues in a more detailled way. I can attach text files without loosing anything.
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Colla
Znuny newbie
Posts: 29
Joined: 28 Mar 2014, 11:54
Znuny Version: 3.3.9

Re: Carriage return problem on attachment

Post by Colla »

I have a problem with txt attachments sent to OTRS.

- I have a txt file with at the end the CR and LF characters.
- I sent this file from my mailbox to OTRS and a ticket is generated.
- When I open the attachment form OTRS, every CR char was lost.

It seems like the OTRS client mail removes every CR character in txt attachments.

My question is: it's possible that is a problem of OTRS, or is a system problem?

I try on two different systems:
First: OTRS v2.3.11 Windows Server 2003
Second: OTRS v3.3.6 Centos 6

Thanks!
Marco.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Carriage return problem on attachment

Post by jojo »

OTRS does not change attachments
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Colla
Znuny newbie
Posts: 29
Joined: 28 Mar 2014, 11:54
Znuny Version: 3.3.9

Re: Carriage return problem on attachment

Post by Colla »

Thanks jojo.

Who knows what corrupts the file.. :shock:

Marco.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Carriage return problem on attachment

Post by reneeb »

can you post the sourcecode of the mail (can be downloaded when you click on "plain view" button in the article)?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Colla
Znuny newbie
Posts: 29
Joined: 28 Mar 2014, 11:54
Znuny Version: 3.3.9

Re: Carriage return problem on attachment

Post by Colla »

Hi reneeb, yes of sure!

This are the 2 files, one is the attachment and the other is the source of the mail. In the source there are carriage return characters..

Thanks,
Marco.
You do not have the required permissions to view the files attached to this post.
Colla
Znuny newbie
Posts: 29
Joined: 28 Mar 2014, 11:54
Znuny Version: 3.3.9

Re: Carriage return problem on attachment

Post by Colla »

Up :)
Locked