Skip to content
This repository has been archived by the owner on Nov 12, 2017. It is now read-only.

Commit

Permalink
Merge branch 'master' into release-2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
johndoh committed Apr 18, 2015
2 parents f692ad9 + feeb833 commit 3784e8f
Show file tree
Hide file tree
Showing 8 changed files with 236 additions and 137 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Roundcube Webmail SieveRules
============================

Version 2.2.1 (2015-04-18, rc-1.1)
=================================================
* Fix missing size_test function in vacation validation
* Fix buggy display of auto reply rule

Expand Down
17 changes: 17 additions & 0 deletions importFilters/avelsieve.php.ex
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,23 @@
* A pubic function called importer
* The importer function can return either a string to be parsed by the SieveRules parser
* or an array, similar to the one created by the SieveRules parser
*
* Copyright (C) 2009-2014 Philip Weir
*
* This import filter is part of the SieveRules plugin for Roundcube.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Roundcube. If not, see http://www.gnu.org/licenses/.
*/
class srimport_avelsieve
{
Expand Down
17 changes: 17 additions & 0 deletions importFilters/ingo.php.ex
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,23 @@
* A pubic function called importer
* The importer function can return either a string to be parsed by the SieveRules parser
* or an array, similar to the one created by the SieveRules parser
*
* Copyright (C) 2009-2014 Philip Weir
*
* This import filter is part of the SieveRules plugin for Roundcube.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Roundcube. If not, see http://www.gnu.org/licenses/.
*/
class srimport_ingo
{
Expand Down
34 changes: 25 additions & 9 deletions lib/Roundcube/rcube_sieve.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,31 @@
<?php

/*
+-----------------------------------------------------------------------+
| rcube_sieve class for managesieve operations (using PEAR::Net_Sieve) |
| |
| Author: Aleksander Machniak <alec@alec.pl> |
| Modifications by: Philip Weir |
| * Make ruleset name configurable |
| * Added import functions |
+-----------------------------------------------------------------------+
*/
* rcube_sieve class for managesieve operations (using PEAR::Net_Sieve)
*
* @author Aleksander Machniak <alec@alec.pl>
* @modified by Philip Weir
* * Make ruleset name configurable
* * Added import functions
*
* Copyright (C) 2009-2014 Philip Weir
*
* This program is a Roundcube (http://www.roundcube.net) plugin.
* For configuration see config.inc.php.dist.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Roundcube. If not, see http://www.gnu.org/licenses/.
*/

define('SIEVE_ERROR_CONNECTION', 1);
define('SIEVE_ERROR_LOGIN', 2);
Expand Down
60 changes: 38 additions & 22 deletions lib/Roundcube/rcube_sieve_script.php
Original file line number Diff line number Diff line change
@@ -1,27 +1,43 @@
<?php

/*
+-----------------------------------------------------------------------+
| rcube_sieve_script class for sieverules script parsing |
| |
| Author: Aleksander Machniak <alec@alec.pl> |
| Modifications by: Philip Weir |
| * Changed name of keys in script array |
| * Added support for address and envelope |
| * Added support for vacation |
| * Added support for disabled rules (written to file as comment) |
| * Added support for regex tests |
| * Added support for imapflags |
| * Added support for relational operators and comparators |
| * Added support for subaddress tests |
| * Added support for notify action |
| * Added support for stop action |
| * Added support for body and copy |
| * Added support for spamtest and virustest |
| * Added support for date |
| * Added support for editheader |
+-----------------------------------------------------------------------+
*/
* rcube_sieve_script class for sieverules script parsing
*
* @author Aleksander Machniak <alec@alec.pl>
* @modified by Philip Weir
* * Changed name of keys in script array
* * Added support for address and envelope
* * Added support for vacation
* * Added support for disabled rules (written to file as comment)
* * Added support for regex tests
* * Added support for imapflags
* * Added support for relational operators and comparators
* * Added support for subaddress tests
* * Added support for notify action
* * Added support for stop action
* * Added support for body and copy
* * Added support for spamtest and virustest
* * Added support for date
* * Added support for editheader
*
* Copyright (C) 2009-2014 Philip Weir
*
* This program is a Roundcube (http://www.roundcube.net) plugin.
* For configuration see config.inc.php.dist.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Roundcube. If not, see http://www.gnu.org/licenses/.
*/

define('SIEVE_ERROR_BAD_ACTION', 1);
define('SIEVE_ERROR_NOT_FOUND', 2);
Expand Down Expand Up @@ -921,7 +937,7 @@ private function _parse_list($content, $regex = false)
$result = array();

if ($regex) {
if (preg_match('/^"(.*)"$/', $content, $matches));
if (preg_match('/^"(.*)"$/', $content, $matches))
$content = $matches[1];

$content = str_replace('\"', '"', $content);
Expand Down
13 changes: 13 additions & 0 deletions mail.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
/**
* SieveRules plugin script
*
* @licstart The following is the entire license notice for the
* JavaScript code in this file.
*
* Copyright (C) 2014 Philip Weir
*
* The JavaScript code in this page is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version.
*
* @licend The above is the entire license notice
* for the JavaScript code in this file.
*/

function rcmail_sieverules() {
Expand Down
13 changes: 13 additions & 0 deletions sieverules.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
/**
* SieveRules plugin script
*
* @licstart The following is the entire license notice for the
* JavaScript code in this file.
*
* Copyright (C) 2009-2014 Philip Weir
*
* The JavaScript code in this page is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version.
*
* @licend The above is the entire license notice
* for the JavaScript code in this file.
*/

rcube_webmail.prototype.sieverules_select = function(list) {
Expand Down
Loading

0 comments on commit 3784e8f

Please sign in to comment.