Skip to content

Documentation for imap_filter #368

Answered by foxcpp
allgoewer asked this question in Q&A
Discussion options

You must be logged in to vote

Good catch. Documentation for IMAP metadata filtering is a bit lacking.

maddy-storage specifies imap_filters directive that should be set in storage.imapsql block.

E.g. like this:

storage.imapsql local_mailboxes {
    driver sqlite3
    dsn imapsql.db
    
    imap_filter {
      command /var/lib/maddy/sieve.sh {account_name}
    }
}

It might be counter-intuitive (why not imap endpoint block?) but makes more sense if you consider that IMAP endpoint has nothing to do with message delivery.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by foxcpp
Comment options

You must be logged in to vote
3 replies
@foxcpp
Comment options

@allgoewer
Comment options

@foxcpp
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants