* Mail: fix sieve rules for moving mails into folder containing non-ascii chars (Dovecot requires sieve rules in utf8, while Cyrus needs utf7-imap)

This commit is contained in:
Ralf Becker 2015-06-22 18:49:20 +00:00
parent 4318bd4070
commit 666bdd82df

View File

@ -236,7 +236,7 @@ class mail_sieve
switch ($rules['action'])
{
case 'folder':
$content['action_folder_text'][] = translation::convert($rules['action_arg'],'utf-8','utf7-imap');
$content['action_folder_text'][] = $rules['action_arg'];
break;
case 'address':
@ -285,7 +285,7 @@ class mail_sieve
switch ($content['action'])
{
case 'folder':
$newRule['action_arg'] = translation::convert(implode($content['action_folder_text']), 'utf7-imap', 'utf-8');
$newRule['action_arg'] = implode($content['action_folder_text']);
break;
case 'address':
$newRule['action_arg'] = implode(',',$content['action_address_text']);