Merge remote-tracking branch 'upstream/master' into feat-psql-support
commit
50343f354e
@ -1,3 +1,5 @@
|
|||||||
|
require "imap4flags";
|
||||||
require "vnd.dovecot.execute";
|
require "vnd.dovecot.execute";
|
||||||
|
|
||||||
|
setflag "\\seen";
|
||||||
execute :pipe "spam";
|
execute :pipe "spam";
|
||||||
|
@ -1,12 +1,21 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import logging as log
|
||||||
|
import sys
|
||||||
|
|
||||||
|
log.basicConfig(stream=sys.stderr, level=os.environ.get("LOG_LEVEL", "WARNING"))
|
||||||
|
logger=log.getLogger(__name__)
|
||||||
|
|
||||||
# Bootstrap the database if clamav is running for the first time
|
# Bootstrap the database if clamav is running for the first time
|
||||||
os.system("[ -f /data/main.cvd ] || freshclam")
|
if not os.path.isfile("/data/main.cvd"):
|
||||||
|
logger.info("Starting primary virus DB download")
|
||||||
|
os.system("freshclam")
|
||||||
|
|
||||||
# Run the update daemon
|
# Run the update daemon
|
||||||
|
logger.info("Starting the update daemon")
|
||||||
os.system("freshclam -d -c 6")
|
os.system("freshclam -d -c 6")
|
||||||
|
|
||||||
# Run clamav
|
# Run clamav
|
||||||
|
logger.info("Starting clamav")
|
||||||
os.system("clamd")
|
os.system("clamd")
|
||||||
|
Loading…
Reference in New Issue