0.0
No commit activity in last 3 years
No release in over 3 years
sieve-parser is a pure-ruby implementation for parsing and manipulate the sieve scripts.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

 Project Readme

Build Status

Ruby/SieveParser

  1. INTRODUCTION

  2. REQUIREMENTS

  3. INSTALLATION

  4. LICENSE

  5. AUTHOR

  6. REFERENCES

  7. INTRODUCTION ===============

sieve-parser is a pure-ruby implementation for parsing and manipulate the sieve scripts.

  1. REQUIREMENTS ===============

Ruby/SieveParser requires Ruby version 1.9.1 or newer.

  1. INSTALLATION ===============

gem install sieve-parser

  1. LICENSE ==========

Copyright (c) 2012 Thiago Coutinho thiago@osfeio.com thiago.coutinho@locaweb.com.br

Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

  1. AUTHOR =========

Ruby/SieveParser was developed by Thiago Coutinho in Locaweb (http://www.locaweb.com.br).

  1. REFERENCES =============

[1] http://www.faqs.org/rfcs/rfc3028.html [2] http://www.faqs.org/rfcs/rfc5804.html [3] http://www.faqs.org/rfcs/rfc5230.html [4] http://www.faqs.org/rfcs/rfc5229.html

  1. LAST CHANGES ===============

[0.0.6]

  • require 'split-where'
  • Sieve::Conditions => Parse new types and spliter more faster without regex
  • Examples:

    header :contains "Subject" "lala"

    not header :contains "Subject" "popo"

    not exists "Subject"

    exists "Subject"

    header :count "ge" :comparator "i;ascii-numeric" "Subject" "1"

    header :count "gt" :comparator "i;ascii-numeric" "Subject" "3"

    header :count "lt" :comparator "i;ascii-numeric" "Subject" "5"

    header :count "eq" :comparator "i;ascii-numeric" "Subject" "7"

    header :value "gt" :comparator "i;ascii-numeric" "Subject" "9"

    header :value "eq" :comparator "i;ascii-numeric" "Subject" "11"