diff --git a/src/lib-sieve/sieve-binary.c b/src/lib-sieve/sieve-binary.c index 128cea555..97ec98a2a 100644 --- a/src/lib-sieve/sieve-binary.c +++ b/src/lib-sieve/sieve-binary.c @@ -181,6 +181,13 @@ time_t sieve_binary_mtime return sbin->file->st.st_mtime; } +const struct stat *sieve_binary_stat +(struct sieve_binary *sbin) +{ + i_assert(sbin->file != NULL); + return &sbin->file->st; +} + const char *sieve_binary_script_name(struct sieve_binary *sbin) { return ( sbin->script == NULL ? NULL : sieve_script_name(sbin->script) ); diff --git a/src/lib-sieve/sieve-binary.h b/src/lib-sieve/sieve-binary.h index 739d7c661..e9f8baad0 100644 --- a/src/lib-sieve/sieve-binary.h +++ b/src/lib-sieve/sieve-binary.h @@ -35,6 +35,9 @@ const char *sieve_binary_path(struct sieve_binary *sbin); struct sieve_script *sieve_binary_script(struct sieve_binary *sbin); time_t sieve_binary_mtime(struct sieve_binary *sbin); +const struct stat *sieve_binary_stat +(struct sieve_binary *sbin); + const char *sieve_binary_script_name(struct sieve_binary *sbin); const char *sieve_binary_script_location(struct sieve_binary *sbin);