Dear Fredrik, So here is the answers: 1. I'm using SM-1.4.5 default installation, postfix 2.2.2, Courier-Imap 4.0.4, present apache and php 2. I tried to send this xml file through Outlook and nothing happened, everything was fine 3. The problem happens even I send this xml from SM to myself ( back to SM ) or to another account running on MS Exchange ( it means my IMAP server is not involved, I used SM only like MUA and postfix like MTA ). 4. I'm system administrator and I'd like to ask you what is or could be extra characters in the source code ?
Yes , you was right, something adds CR LF SPACE after each 990 th byte. How can I debug what adds these CR LF SPACE? I'd like to apologize for wrong conversation at the list, I didn't know it Peter Jevos [EMAIL PROTECTED] Oriflame Software , s.r.o - Oriflame IT services Na Pankraci 30, Praha 4, Czech rep. Tel. +420 225 994 456, Fax +420225994412 -----Original Message----- From: Fredrik Jervfors [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 04, 2006 12:01 PM To: Jevos, Peter Cc: SquirrelMail Users Subject: RE: [SM-USERS] Problem with xml attachment >>> I have a problem with xml attachments. When I send xml attachment >>> I'll get little bit different file than the previous which I sent. >>> File is bigger and has more spaces and probably other synbols ( like >>> CR ). The result is totally bad, cause xml file is unreadable ( I >>> got message XML Parsing Error: not well-formed ) >> >> >> Check that there are no extra characters, such as line feeds, outside >> the SquirrelMail PHP tags (<?php ?>) - especially in files you >> modified yourself such as configuration files. Sometimes extra char's >> breaks attachments when downloading them. >> >> Do you have the same problem with other attchments as well? Are the >> XML attachments valid when saved using another client? > > > I cannot specify which character in xml file is "incorrect" but here > is a xml sample that is wrong ( or wrong when you sent it through SM ) > I login into SM , attach this xml attachment and sent to other address. > Then save this attachment and you can see that file size is larger > then origin and unparseable Please keep the conversation at the list, and please don't top post. I compared the two versions you sent me. This is what I found: 990 identical bytes (in both files) CR LF Space (only in the modified file) 989 identical bytes (in both files) CR LF Space (only in the modified file) 989 identical bytes (in both files) CR LF Space (only in the modified file) 39 identical bytes (in both files) CR LF (only in the original file) Something is stripping out the original "CR LF" combination and inserts "CR LF Space" after every 990:th byte, counting the space as on byte thus inserting the next "CR LF Space" after 989 bytes of original content. Since they didn't break for me, and I use SquirrelMail as well, I assume that you can send attachments without corrupting them and that the extra bytes are inserted either when your MTA delivers the mail to your IMAP server or when you save the attachments using your SquirrelMail installation, i.e. something is broken in your system. Have your system administator check your SquirrelMail installation for extra characters in the source code, as I stated in my previous mail. Also, please answer the questions I asked. If you have the same problem using another client, SquirrelMail isn't the culprit. What's your SquirrelMail version number? Sincerely, Fredrik. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 -- squirrelmail-users mailing list Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines List Address: squirrelmail-users@lists.sourceforge.net List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id)95 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users