mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-25 14:41:50 +01:00
Fix encoded mail folder-names by utf7-imap used by sieve rules->action->folder, and replace it with utf-8
This commit is contained in:
parent
0e2e88c19b
commit
ed107f9496
@ -300,12 +300,10 @@ class mail_sieve
|
|||||||
switch ($content['action'])
|
switch ($content['action'])
|
||||||
{
|
{
|
||||||
case 'folder':
|
case 'folder':
|
||||||
$newRule['action_arg'] = implode($content['action_folder_text']);
|
$newRule['action_arg'] = translation::convert(implode($content['action_folder_text']), 'utf7-imap', 'utf-8');
|
||||||
//$sel_options['action_folder_text'] = $content['action_folder_text'];
|
|
||||||
break;
|
break;
|
||||||
case 'address':
|
case 'address':
|
||||||
//preg_match('/(?<=\<)[^<]+(?=\>)/', implode(array_values($content['action_address_text'])),$tagmail);
|
$newRule['action_arg'] = implode($content['action_address_text']);
|
||||||
$newRule['action_arg'] = implode($content['action_address_text']);//implode($tagmail);
|
|
||||||
error_log(__METHOD__. '() newRules_address '. array2string($newRule['action_arg']));
|
error_log(__METHOD__. '() newRules_address '. array2string($newRule['action_arg']));
|
||||||
break;
|
break;
|
||||||
case 'reject':
|
case 'reject':
|
||||||
|
Loading…
Reference in New Issue
Block a user