ProtonMail / libsieve-php

libsieve-php is a library to manage and modify sieve (RFC5228) scripts. It contains a parser for the sieve language (including extensions) and a client for the managesieve protocol. It is written entirely in PHP 8+.
https://packagist.org/packages/protonlabs/libsieve-php
GNU General Public License v3.0
21 stars 7 forks source link

Allow custom extensions #3

Closed KAYLukas closed 6 years ago

KAYLukas commented 7 years ago

This would allow custom extensions to be loaded without having to modify the library.

SieveKeywordRegistry is now no longer a singleton. When parsing sieve multiple times, keeping a reference to SieveParser object would allow you to avoid parsing the extension xml multiple times.