Fix bug where at least one additional address of vacation message was required (#1489345)

pull/129/head
Aleksander Machniak 11 years ago
parent b334a01791
commit 962eff7dfe

@ -1,3 +1,5 @@
- Fix bug where at least one additional address of vacation message was required (#1489345)
* version 7.0 [2013-09-09]
-----------------------------------------------------------
- Add vacation-seconds extension support (RFC 6131)

@ -871,7 +871,12 @@ class rcube_sieve_engine
// @TODO: vacation :mime, :from, :handle
foreach ((array)$this->form['actions'][$i]['addresses'] as $aidx => $address) {
if (!rcube_utils::check_email($address)) {
$this->form['actions'][$i]['addresses'][$aidx] = $address = trim($address);
if (empty($address)) {
unset($this->form['actions'][$i]['addresses'][$aidx]);
}
else if (!rcube_utils::check_email($address)) {
$this->errors['actions'][$i]['addresses'] = $this->plugin->gettext('noemailwarning');
break;
}

Loading…
Cancel
Save