>>>>> 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 >> >> >> 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? > > > 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?
Sorry for not answering earlier. SquirrelMail 1.4.6 contains a number of fixes, including three security updates, and a handful of new features. Consider upgrading. It's most likely that the extra char's comes from a configuration file. Most configuration files are plugin related. Try disabling all plugins and send your XML attachment. If this works, nothing is wrong with SquirrelMail itself. Then reenable one plugin, send the XML and check if it's OK. If it is, repeate this step until you find the broken plugin. When you have found the culprit; SquirrelMail itself or a plugin; open the source files, strip all chars after the last "?>" (unless it's HTML) and save it. This should take care of the problem, but keep reenabling the plugins one by one, since there might be more than one that is broken. Did it work? Sincerely, Fredrik. PS. Please keep your answer in same style as the above, i.e. answer the mail instead of forwarding it, and write your stuff att the bottom. This helps keeping context. ------------------------------------------------------- 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&kid=110944&bid=241720&dat=121642 -- squirrelmail-users mailing list Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines List Address: [email protected] List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
