Merge branch 'master' of https://github.com/HarrySmallbones/roundcubemail into HarrySmallbones-master

pull/5838/head
Aleksander Machniak 8 years ago
commit 792fd57b09

@ -188,6 +188,12 @@ class archive extends rcube_plugin
. $delimiter . $rcmail->format_date($message->timestamp, 'm'); . $delimiter . $rcmail->format_date($message->timestamp, 'm');
break; break;
case 'thunderbirdmonth':
$subfolder = $rcmail->format_date($message->timestamp, 'Y')
. $delimiter . $rcmail->format_date($message->timestamp, 'Y')
. '-' . $rcmail->format_date($message->timestamp, 'm');
break;
case 'sender': case 'sender':
$from = $message->get('from'); $from = $message->get('from');
preg_match('/[\b<](.+@.+)[\b>]/i', $from, $m); preg_match('/[\b<](.+@.+)[\b>]/i', $from, $m);
@ -410,6 +416,7 @@ class archive extends rcube_plugin
$archive_type->add($this->gettext('none'), ''); $archive_type->add($this->gettext('none'), '');
$archive_type->add($this->gettext('archivetypeyear'), 'year'); $archive_type->add($this->gettext('archivetypeyear'), 'year');
$archive_type->add($this->gettext('archivetypemonth'), 'month'); $archive_type->add($this->gettext('archivetypemonth'), 'month');
$archive_type->add($this->gettext('archivetypethunderbirdmonth'), 'thunderbirdmonth');
$archive_type->add($this->gettext('archivetypesender'), 'sender'); $archive_type->add($this->gettext('archivetypesender'), 'sender');
$archive_type->add($this->gettext('archivetypefolder'), 'folder'); $archive_type->add($this->gettext('archivetypefolder'), 'folder');

@ -25,6 +25,7 @@ $labels['settingstitle'] = 'Archive';
$labels['archivetype'] = 'Divide archive by'; $labels['archivetype'] = 'Divide archive by';
$labels['archivetypeyear'] = 'Year (e.g. Archive/2012)'; $labels['archivetypeyear'] = 'Year (e.g. Archive/2012)';
$labels['archivetypemonth'] = 'Month (e.g. Archive/2012/06)'; $labels['archivetypemonth'] = 'Month (e.g. Archive/2012/06)';
$labels['archivetypethunderbirdmonth'] = 'Month - Thunderbird compatible (e.g. Archive/2012/2012-06)';
$labels['archivetypefolder'] = 'Original folder'; $labels['archivetypefolder'] = 'Original folder';
$labels['archivetypesender'] = 'Sender email'; $labels['archivetypesender'] = 'Sender email';
$labels['unkownsender'] = 'unknown'; $labels['unkownsender'] = 'unknown';

@ -25,6 +25,7 @@ $labels['settingstitle'] = 'Archive';
$labels['archivetype'] = 'Divide archive by'; $labels['archivetype'] = 'Divide archive by';
$labels['archivetypeyear'] = 'Year (e.g. Archive/2012)'; $labels['archivetypeyear'] = 'Year (e.g. Archive/2012)';
$labels['archivetypemonth'] = 'Month (e.g. Archive/2012/06)'; $labels['archivetypemonth'] = 'Month (e.g. Archive/2012/06)';
$labels['archivetypethunderbirdmonth'] = 'Month - Thunderbird compatible (e.g. Archive/2012/2012-06)';
$labels['archivetypefolder'] = 'Original folder'; $labels['archivetypefolder'] = 'Original folder';
$labels['archivetypesender'] = 'Sender email'; $labels['archivetypesender'] = 'Sender email';
$labels['unkownsender'] = 'unknown'; $labels['unkownsender'] = 'unknown';

@ -27,6 +27,7 @@ $labels['settingstitle'] = 'Archive';
$labels['archivetype'] = 'Divide archive by'; $labels['archivetype'] = 'Divide archive by';
$labels['archivetypeyear'] = 'Year (e.g. Archive/2012)'; $labels['archivetypeyear'] = 'Year (e.g. Archive/2012)';
$labels['archivetypemonth'] = 'Month (e.g. Archive/2012/06)'; $labels['archivetypemonth'] = 'Month (e.g. Archive/2012/06)';
$labels['archivetypethunderbirdmonth'] = 'Month - Thunderbird compatible (e.g. Archive/2012/2012-06)';
$labels['archivetypefolder'] = 'Original folder'; $labels['archivetypefolder'] = 'Original folder';
$labels['archivetypesender'] = 'Sender email'; $labels['archivetypesender'] = 'Sender email';
$labels['unkownsender'] = 'unknown'; $labels['unkownsender'] = 'unknown';

Loading…
Cancel
Save