eo_mailbox: skip servers where dovecot is installed (#50374)

This commit is contained in:
Frédéric Péters 2021-01-20 21:04:18 +01:00
parent 1e42b45ffa
commit a780b2b6d0
1 changed files with 4 additions and 0 deletions

View File

@ -127,6 +127,10 @@ def packages(ctn):
def mailboxes(ctn):
if os.path.exists('/etc/dovecot/dovecot.conf'):
# skip servers where dovecot is installed as it's expected to have
# mailboxes there.
return
boxes = glob.glob("/var/spool/mail/*")
for m in boxes:
if os.path.isfile(m):