eo_mailbox: skip servers where dovecot is installed (#50374)
This commit is contained in:
parent
1e42b45ffa
commit
a780b2b6d0
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue