Skip to main content


ec_maildir — write the current message into a maildir mailbox


ec_maildir { email-address }


This action will store the current message into the maildir for the specified email address.

It can only be called in the each_rcpt phase.

This is a terminal action; no further Sieve rules will be run for the current message in the current phase.

require "ec_maildir";
if envelope :domain :is "to" "" {
  ec_maildir "%{vctx_mess:rcptto_localpart}@%{vctx_mess:rcptto_domain}";

require "ec_maildir";
if envelope :domain :is "to" ["", ""] {
  $rcpt = envelope "to";
  ec_maildir "${rcpt}";

See Also

Was this page helpful?