Dear Fredrik

Thanks for your answer,
I tried to use evrythinnk like you said.
So I used SM 1.4.6 without any plugins but problem still remains.
I tried tou use other MUA to send xml message but result was good ( it
means postfix is not involved ) 
So I'd like to provide you config.php ( without themes ) and user file,
probably you'll find difference against your configuration:

<?php
/**
 * SquirrelMail Configuration File
 * Created using the configure script, conf.pl
 */
global $version;
$config_version = '1.4.0';
$config_use_color = 2;
$org_name      = "SquirrelMail";
$org_logo      = SM_PATH . 'images/sm_logo.png';
$org_logo_width  = '308';
$org_logo_height = '111';
$org_title     = "SquirrelMail $version";
$signout_page  = '';
$frame_top     = '_top';
$provider_uri     = 'http://www.squirrelmail.org/';
$provider_name     = 'SquirrelMail';
$motd = "";
$squirrelmail_default_language = 'en_US';
$default_charset       = 'iso-8859-1';
$lossy_encoding        = false;
$domain                 = 'example.com';
$imapServerAddress      = 'localhost';
$imapPort               = 143;
$useSendmail            = false;
$smtpServerAddress      = 'localhost';
$smtpPort               = 25;
$sendmail_path          = '/usr/sbin/sendmail';
$pop_before_smtp        = false;
$imap_server_type       = 'other';
$invert_time            = false;
$optional_delimiter     = 'detect';
$encode_header_key      = '';
$default_folder_prefix          = '';
$trash_folder                   = 'INBOX.Trash';
$sent_folder                    = 'INBOX.Sent';
$draft_folder                   = 'INBOX.Drafts';
$default_move_to_trash          = true;
$default_move_to_sent           = true;
$default_save_as_draft          = true;
$show_prefix_option             = false;
$list_special_folders_first     = true;
$use_special_folder_color       = true;
$auto_expunge                   = true;
$default_sub_of_inbox           = true;
$show_contain_subfolders_option = false;
$default_unseen_notify          = 2;
$default_unseen_type            = 1;
$auto_create_special            = true;
$delete_folder                  = false;
$noselect_fix_enable            = false;
$data_dir                 = '/var/spool/data/';
$attachment_dir           = '/var/spool/squirreltmp/';
$dir_hash_level           = 0;
$default_left_size        = '150';
$force_username_lowercase = false;
$default_use_priority     = true;
$hide_sm_attributions     = false;
$default_use_mdn          = true;
$edit_identity            = true;
$edit_name                = true;
$hide_auth_header         = false;
$allow_thread_sort        = false;
$allow_server_sort        = false;
$allow_charset_search     = true;
$uid_support              = true;
$default_use_javascript_addr_book = false;
$abook_global_file = '';
$abook_global_file_writeable = false;
$addrbook_dsn = '';
$addrbook_table = 'address';
$prefs_dsn = '';
$prefs_table = 'userprefs';
$prefs_user_field = 'user';
$prefs_key_field = 'prefkey';
$prefs_val_field = 'prefval';
$addrbook_global_dsn = '';
$addrbook_global_table = 'global_abook';
$addrbook_global_writeable = false;
$addrbook_global_listing = false;
$no_list_for_subscribe = false;
$smtp_auth_mech = 'none';
$imap_auth_mech = 'login';
$use_imap_tls = false;
$use_smtp_tls = false;
$session_name = 'SQMSESSID';
@include SM_PATH . 'config/config_local.php';
?>

Pref file:

show_html_default=0
sort=0
javascript_on=1
hililist=a:0:{}
language=en_US

Thanks a lot 

BR

Pet

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Fredrik Jervfors
Sent: Saturday, April 08, 2006 11:21 AM
To: squirrelmail-users@lists.sourceforge.net
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
>>
>>
>> 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: 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=2995
List Info:
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


-------------------------------------------------------
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

Reply via email to