mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
fix: Ensure .svbin
files are newer than .sieve
source files (#3779)
This commit is contained in:
parent
ce6ebcc021
commit
265440b2bb
|
@ -34,9 +34,10 @@ All notable changes to this project will be documented in this file. The format
|
||||||
- **Docs:**
|
- **Docs:**
|
||||||
- Revised the SpamAssassin ENV docs to better communicate configuration and their relation to other ENV settings. ([#3756](https://github.com/docker-mailserver/docker-mailserver/pull/3756))
|
- Revised the SpamAssassin ENV docs to better communicate configuration and their relation to other ENV settings. ([#3756](https://github.com/docker-mailserver/docker-mailserver/pull/3756))
|
||||||
|
|
||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
|
|
||||||
|
- **Dovecot:**
|
||||||
|
- During container startup for Dovecot Sieve, `.sievec` source files compiled to `.svbin` now have their `mtime` adjusted post setup to ensure it is always older than the associated `.svbin` file. This avoids superfluous error logs for sieve scripts that don't actually need to be compiled again ([#3779](https://github.com/docker-mailserver/docker-mailserver/pull/3779))
|
||||||
- **Internal:**
|
- **Internal:**
|
||||||
- `.gitattributes`: Always use LF line endings on checkout for files with shell script content ([#3755](https://github.com/docker-mailserver/docker-mailserver/pull/3755))
|
- `.gitattributes`: Always use LF line endings on checkout for files with shell script content ([#3755](https://github.com/docker-mailserver/docker-mailserver/pull/3755))
|
||||||
- Fix missing 'jaq' binary for ARM architecture ([#3766](https://github.com/docker-mailserver/docker-mailserver/pull/3766))
|
- Fix missing 'jaq' binary for ARM architecture ([#3766](https://github.com/docker-mailserver/docker-mailserver/pull/3766))
|
||||||
|
|
|
@ -20,6 +20,16 @@ function _setup() {
|
||||||
${FUNC}
|
${FUNC}
|
||||||
done
|
done
|
||||||
|
|
||||||
|
_setup_post
|
||||||
|
}
|
||||||
|
|
||||||
|
function _setup_post() {
|
||||||
|
# Dovecot `.svbin` files must have a newer mtime than their `.sieve` source files,
|
||||||
|
# Modifications during setup to these files sometimes results in a common mtime value.
|
||||||
|
# Handled during post-setup as setup of Dovecot Sieve scripts is not centralized.
|
||||||
|
find /usr/lib/dovecot/ -iname '*.sieve' -exec touch -d '2 seconds ago' {} +
|
||||||
|
find /usr/lib/dovecot/ -iname '*.svbin' -exec touch -d '1 seconds ago' {} +
|
||||||
|
|
||||||
# All startup modifications to configs should have taken place before calling this:
|
# All startup modifications to configs should have taken place before calling this:
|
||||||
_prepare_for_change_detection
|
_prepare_for_change_detection
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue