Paweł Słowik
2012-09-14 4c4496bccc46e15f05d54235b420c0bff1306db2
Sieve enotify/notify - allow empty body
1 files modified
12 ■■■■ changed files
plugins/managesieve/lib/rcube_sieve_script.php 12 ●●●● patch | view | raw | blame | history
plugins/managesieve/lib/rcube_sieve_script.php
@@ -411,9 +411,15 @@
                                $action_script .= " :$n_tag " . self::escape_string($action[$n_tag]);
                            }
                        }
                        $method = (!empty($action['address']) && !empty($action['body'])) ?
                            sprintf('mailto:%s?body=%s', $action['address'], rawurlencode($action['body'])) :
                            $action['method'];
                        if (!empty($action['address'])) {
                            $method = 'mailto:' . $action['address'];
                            if (!empty($action['body'])) {
                                $method .= '?body=' . rawurlencode($action['body']);
                            }
                        }
                        else {
                            $method = $action['method'];
                        }
                        $action_script .= " " . self::escape_string($method);
                        break;