Author Topic: 2 BUGS, charset in attachments names and 'end of line' on message body  (Read 4403 times)

Offline luisfernando

  • Newbie
  • *
  • Posts: 3
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 :)


Offline syc

  • Jr. Member
  • **
  • Posts: 14
Re: 2 BUGS, charset in attachments names and 'end of line' on message body
« Reply #1 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

Offline romanex

  • Newbie
  • *
  • Posts: 4
charset in attachments names
« Reply #2 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.

Offline romanex

  • Newbie
  • *
  • Posts: 4
Re: 2 BUGS, charset in attachments names and 'end of line' on message body
« Reply #3 on: November 22, 2007, 01:11:41 AM »
anybody can help me?

Offline lonelysuch

  • Newbie
  • *
  • Posts: 1
Re: 2 BUGS, charset in attachments names and 'end of line' on message body
« Reply #4 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"));

Offline xyanide

  • Jr. Member
  • **
  • Posts: 41
Re: 2 BUGS, charset in attachments names and 'end of line' on message body
« Reply #5 on: January 18, 2008, 06:13:59 PM »
Post this bug in the bug tracker at http://trac.roundcube.net/