Skip to main content

Name

ec_maildir — write the current message into a maildir mailbox

Synopsis

ec_maildir { email-address }

Description

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" "localdomain.com" {
  ec_maildir "%{vctx_mess:rcptto_localpart}@%{vctx_mess:rcptto_domain}";
}

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

See Also

Was this page helpful?