SSH command to detect if domain is using mdbox or maildir

codepoet

Member
Jun 28, 2017
16
2
3
Canada
cPanel Access Level
Root Administrator
Hello, I was wondering if there was an official way to detect using ssh if a domain is using mdbox or maildir. The reason why is because I am building a little script that would run on cron and empty the spam assassin spam folder. But since the mdbox and maildir storage directories are different I need a way to find out

Thanks in advance
 

codepoet

Member
Jun 28, 2017
16
2
3
Canada
cPanel Access Level
Root Administrator
Actually to add to this. If a domain is using mdbox, wouldn't it be impossible to empty a specific amount of message in the spam folder since mdbox stores one or more messages per file ?