##
##  fsl.imapd -- OSSP fsl configuration
##

ident (imapd|imaps|imap)/.+ q{
    prefix(
        prefix="%b %d %H:%M:%S %N <%L> $1[%P]: "
    )
    -> {
        debug: file(
            path="@l_prefix@/var/imapd/log/imapd.log",
            perm=0644
        )
    }
};

ident (pop3.)/.+ q{
    prefix(
        prefix="%b %d %H:%M:%S %N <%L> $1[%P]: "
    )
    -> {
        debug: file(
            path="@l_prefix@/var/imapd/log/pop3d.log",
            perm=0644
        )
    }
};

ident (sieve)/.+ q{
    prefix(
        prefix="%b %d %H:%M:%S %N <%L> $1[%P]: "
    )
    -> {
        debug: file(
            path="@l_prefix@/var/imapd/log/sieve.log",
            perm=0644
        )
    }
};

ident (lmtp|lmtpunix)/.+ q{
    prefix(
        prefix="%b %d %H:%M:%S %N <%L> $1[%P]: "
    )
    -> {
        debug: file(
            path="@l_prefix@/var/imapd/log/lmtpd.log",
            perm=0644
        )
    }
};

ident (idled)/.+ q{
    prefix(
        prefix="%b %d %H:%M:%S %N <%L> $1[%P]: "
    )
    -> {
        debug: file(
            path="@l_prefix@/var/imapd/log/idled.log",
            perm=0644
        )
    }
};

ident (notifyd)/.+ q{
    prefix(
        prefix="%b %d %H:%M:%S %N <%L> $1[%P]: "
    )
    -> {
        debug: file(
            path="@l_prefix@/var/imapd/log/notifyd.log",
            perm=0644
        )
    }
};

ident (cyrdeliver)/.+ q{
    prefix(
        prefix="%b %d %H:%M:%S %N <%L> $1[%P]: "
    )
    -> {
        debug: file(
            path="@l_prefix@/var/imapd/log/cyrdeliver.log",
            perm=0644
        )
    }
};

ident (master)/.+ q{
    prefix(
        prefix="%b %d %H:%M:%S %N <%L> $1[%P]: "
    )
    -> {
        debug: file(
            path="@l_prefix@/var/imapd/log/cyrmaster.log",
            perm=0644
        )
    }
};

ident (cyr_expire|ctl_cyrusdb|tls_prune|delprune)/.+ q{
    prefix(
        prefix="%b %d %H:%M:%S %N <%L> $1[%P]: "
    )
    -> {
        debug: file(
            path="@l_prefix@/var/imapd/log/cyr_db.log",
            perm=0666
        )
    }
};

ident (squatter)/.+ q{
    prefix(
        prefix="%b %d %H:%M:%S %N <%L> $1[%P]: "
    )
    -> {
        debug: file(
            path="@l_prefix@/var/imapd/log/misc.log",
            perm=0666
        )
    }
};

