Sieve enotify/notify - allow empty body

pull/24/head
Paweł Słowik 12 years ago
parent 3c99599794
commit 4c4496bccc

@ -411,9 +411,15 @@ class rcube_sieve_script
$action_script .= " :$n_tag " . self::escape_string($action[$n_tag]); $action_script .= " :$n_tag " . self::escape_string($action[$n_tag]);
} }
} }
$method = (!empty($action['address']) && !empty($action['body'])) ? if (!empty($action['address'])) {
sprintf('mailto:%s?body=%s', $action['address'], rawurlencode($action['body'])) : $method = 'mailto:' . $action['address'];
$action['method']; if (!empty($action['body'])) {
$method .= '?body=' . rawurlencode($action['body']);
}
}
else {
$method = $action['method'];
}
$action_script .= " " . self::escape_string($method); $action_script .= " " . self::escape_string($method);
break; break;

Loading…
Cancel
Save