Download the PHP package altzone/sievefilter-apply without Composer

On this page you can find all versions of the php package altzone/sievefilter-apply. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sievefilter-apply

sievefilter_apply - Apply Sieve Filters to Existing Messages

A Roundcube plugin that retroactively applies Sieve filter rules to existing messages in a mailbox folder.

Sieve filters only apply to new incoming messages. This plugin bridges the gap by letting users run their existing Sieve rules against messages already in their mailbox, similar to Thunderbird's "Run Filters on Folder" or Zimbra's "Apply Filter" feature.

Features

Mail View

ManageSieve Settings Integration

Apply Now After Save (v1.0.1)

Safety & Security

Requirements

Component Version
Roundcube >= 1.6
PHP >= 7.4
managesieve plugin Enabled and configured
Dovecot ManageSieve Accessible (port 4190)

This plugin is a companion to the built-in managesieve plugin. It reuses its libraries (rcube_sieve, rcube_sieve_script) and connection settings without any code duplication.

Installation

Manual

  1. Copy the sievefilter_apply directory to your Roundcube plugins/ folder:

  2. Add the plugin to your Roundcube configuration (config/config.inc.php):

  3. Optionally copy and edit the configuration file:

Composer

Then enable the plugin in your Roundcube configuration as shown above.

Configuration

All settings are optional. Defaults are designed for safe operation.

Supported Sieve Features

Test Types

Test Support Notes
header Full All standard headers, multi-value tested individually per RFC 5228
address Full Supports :all, :localpart, :domain parts; uses RFC 5321-compliant address parser
envelope Partial Falls back to address test on From/To headers (see Limitations)
size Full :over and :under comparators with K/M/G suffixes
exists Full Tests header presence (not emptiness)
allof Full Nested AND logic with short-circuit evaluation
anyof Full Nested OR logic with short-circuit evaluation
not Full Negation
true / false Full
body Not supported Requires message body download
date Not supported

Match Types

Type Support Notes
is Full Exact case-insensitive match
contains Full Substring search, case-insensitive
matches Full Sieve wildcards (* and ?) with proper escape handling (\*, \?)
regex Full PCRE matching with ReDoS backtracking protection

Actions

Action Support Notes
fileinto Full Creates target folder if it does not exist
discard Full Deletes the message
addflag Full Adds IMAP flag (RFC 5232)
setflag Full Sets IMAP flag (RFC 5232, distinct from addflag)
removeflag Full Removes IMAP flag
keep Full No action (message stays)
stop Full Stops rule evaluation
redirect Skipped Disabled by default to prevent email storms
reject / ereject Skipped Disabled by default (message already received)

Rule Evaluation

Per RFC 5228, all matching rules fire and their actions accumulate, unless an explicit stop command halts evaluation. This matches the behavior of standard Sieve implementations.

Flag Mapping (Sieve to IMAP)

Sieve Flag IMAP Flag
\Seen SEEN
\Answered ANSWERED
\Flagged FLAGGED
\Deleted DELETED
\Draft DRAFT
$Forwarded FORWARDED
$MDNSent MDNSENT

Architecture

The plugin uses the same connection parameters as managesieve (managesieve_host, managesieve_port, managesieve_usetls, managesieve_conn_options, etc.). No additional server configuration is required.

Security Model

Known Limitations

  1. Envelope tests fall back to address tests on From/To headers since SMTP envelope data is not available retroactively. This may produce false positives for forwarded mail or mailing lists.
  2. Body and date tests are not supported as they require downloading full message content.
  3. Maximum 500 messages per operation by default. Increase sievefilter_apply_max_messages for larger folders, at the cost of longer processing time.
  4. No background processing. Analysis and execution happen synchronously; the UI is blocked during the operation.
  5. No incremental processing. If execution fails mid-batch, successfully processed messages are not rolled back.
  6. MIME header decoding is applied before rule evaluation. This matches the behavior of Dovecot's Sieve implementation but may differ from other implementations.
  7. Headers are fetched individually per message. Bulk IMAP FETCH is not used, which may be slow on very large folders over high-latency connections.

Localization

The plugin ships with English (en_US) and French (fr_FR) translations. Additional translations can be added by creating files in the localization/ directory following the same format.

License

GNU General Public License v3.0 (GPLv3) - compatible with Roundcube and the managesieve plugin.

Credits

Developed as a companion plugin to Roundcube's built-in managesieve plugin.


All versions of sievefilter-apply with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
roundcube/plugin-installer Version >=0.1.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package altzone/sievefilter-apply contains the following files

Loading the files please wait ...