Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attachment with native characters (æøå) #3085

Closed
rcubetrac opened this issue Oct 11, 2010 · 9 comments
Closed

Attachment with native characters (æøå) #3085

rcubetrac opened this issue Oct 11, 2010 · 9 comments

Comments

@rcubetrac
Copy link

@rcubetrac rcubetrac commented Oct 11, 2010

Reported by osos on 11 Oct 2010 07:26 UTC as Trac ticket #1487049

It is not possible to send emails with attachments containing native characters (like the danish ) in their filenames.

Like "Belg .pdf".

The files attach alright, but an "Internal error" occurs when sending the mail.

Keywords: attachment native characters
Migrated-From: http://trac.roundcube.net/ticket/1487049

@rcubetrac
Copy link
Author

@rcubetrac rcubetrac commented Oct 11, 2010

Comment by @alecpl on 11 Oct 2010 07:48 UTC

Works for me. We need more info: PHP/DB versions? Any errors in log? What database and its encoding are you using (should be UTF8)?

@rcubetrac
Copy link
Author

@rcubetrac rcubetrac commented Oct 11, 2010

Comment by osos on 11 Oct 2010 09:56 UTC

logs/errors:
11:49:54 +0200: PHP Error: Invalid compose ID in [on line 33 (POST censored?_task=mail&_action=send)

PHP version:
PHP 5.2.4-2ubuntu5.12 with Suhosin-Patch 0.9.6.2 (cli) (built: Sep 20 2010 13:18:10)

MySQL:
mysql Ver 14.12 Distrib 5.0.51a, for debian-linux-gnu (i486) using readline 5.2

session and user tables were ascii-general, but now changed to utf-8 -> no difference.

@rcubetrac
Copy link
Author

@rcubetrac rcubetrac commented Oct 11, 2010

Comment by @alecpl on 11 Oct 2010 10:09 UTC

Try with disabled suhosin. Also what now returns DESCRIBE TABLE session; query?

@rcubetrac
Copy link
Author

@rcubetrac rcubetrac commented Oct 11, 2010

Comment by osos on 11 Oct 2010 10:36 UTC

tried disabling suhosin through .htaccess:
php_flag suhosin.simulation On

Output of Describe session:
+---------+-------------+------+-----+---------------------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------+-------------+------+-----+---------------------+-------+
| sess_id | varchar(40) | NO | PRI | NULL | |
| created | datetime | NO | | 0000-00-00 00:00:00 | |
| changed | datetime | NO | | 0000-00-00 00:00:00 | |
| ip | varchar(15) | NO | | NULL | |
| vars | text | NO | | NULL | |
+---------+-------------+------+-----+---------------------+-------+

@rcubetrac
Copy link
Author

@rcubetrac rcubetrac commented Oct 11, 2010

Comment by @alecpl on 11 Oct 2010 10:51 UTC

Sorry, I mean SHOW CREATE TABLE session;

@rcubetrac
Copy link
Author

@rcubetrac rcubetrac commented Oct 11, 2010

Comment by osos on 11 Oct 2010 11:18 UTC

Show create table session:


+---------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Table   | Create Table                                                                                                                                                                                                                                                                                                                                                          |
+---------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| session | CREATE TABLE `session` (
  `sess_id` varchar(40) character set ascii NOT NULL,
  `created` datetime NOT NULL default '0000-00-00 00:00:00',
  `changed` datetime NOT NULL default '0000-00-00 00:00:00',
  `ip` varchar(15) character set ascii NOT NULL,
  `vars` text character set ascii NOT NULL,
  PRIMARY KEY  (`sess_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 |
+---------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
@rcubetrac
Copy link
Author

@rcubetrac rcubetrac commented Oct 11, 2010

Comment by @alecpl on 11 Oct 2010 11:22 UTC

Change charset for vars column too.

@rcubetrac
Copy link
Author

@rcubetrac rcubetrac commented Oct 11, 2010

Status changed by @alecpl on 11 Oct 2010 11:22 UTC

new => closed

@rcubetrac rcubetrac closed this Oct 11, 2010
@rcubetrac
Copy link
Author

@rcubetrac rcubetrac commented Oct 11, 2010

Comment by osos on 11 Oct 2010 11:24 UTC

Perfect.

Thank you very much. Must be leftovers from RC 0.1 i guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.