Roundcube Community Forum

Release Support => Pending Issues => Topic started by: luisfernando on October 05, 2006, 05:00:10 PM

Title: 2 BUGS, charset in attachments names and 'end of line' on message body
Post by: luisfernando on October 05, 2006, 05:00:10 PM
Hi everybody...
i'm testing rc and i'd like to use it on my mail server...
But i found 2 bugs and i really need to fix it before start using.

So, first one...
- Attachment name with special caracters
When i choose a file to attach and click ''upload'' it works fine...
The attachment name seems to be ok (with it's special caracters working fine), but when i send the message the attachment name is changed... like this:

éáãêBBB.mpeg is changed to ????BBB.mpeg
 
i activated the DefaultCharset in .htaccess file using charset ISO-8859-1... but it didn't work...


Second one...
- where's the "/n" at the end of line on the message body?

There's no end of line in text messages...The whole text seems to be in only one line...
If i got a text message like this:

"roundcube
rox!!"

In rc, i see it like this:

"roundcube rox!!"



Does anyone know how to fix these 2 bugs?
I'm using rc 0.1 beta 2!
Any help will be appreciated!
Thanks :)

Title: Re: 2 BUGS, charset in attachments names and 'end of line' on message body
Post by: syc on November 22, 2006, 08:04:16 AM
filenames with chars like that should have bizzare chars replaced with _ by using a regular expression.

as for the second one, if the message is text/plain, then the display of the body of the message should be in a
 tag. 

an alternative to the
 tag would be http://www.php.net/nl2br
			
Title: charset in attachments names
Post by: romanex on November 21, 2007, 05:01:40 AM
Hi, at first sory for my english.
I have same problem with filename. then I send message with attach I receive filename like ?????????????? ??????????.txt
Default charset utf-8, language is russian.
Help me please.
Title: Re: 2 BUGS, charset in attachments names and 'end of line' on message body
Post by: romanex on November 22, 2007, 01:11:41 AM
anybody can help me?
Title: Re: 2 BUGS, charset in attachments names and 'end of line' on message body
Post by: lonelysuch on January 18, 2008, 03:58:41 PM
/program/steps/mail/get.inc
   - header(sprintf('Content-Disposition: %s; filename="%s";',
           $_GET['_download'] ? 'attachment' : 'inline',
           $part->filename ? iconv("UTF-8", "WINDOWS-1251", imap_utf8($part->filename)) : "roundcube.$ctype_secondary"));
Title: Re: 2 BUGS, charset in attachments names and 'end of line' on message body
Post by: xyanide on January 18, 2008, 06:13:59 PM
Post this bug in the bug tracker at http://trac.roundcube.net/