You can see if a directory is indexed on an ext4 filesystem with the "lsattr" command:
Code:
WORKSTATION spool # lsattr -d *
-------------e-- anacron
-------------e-- cron
----------I--e-- cups
-------------e-- libreoffice
-------------e-- lintian
-------------e-- lpd
lsattr: Operation not supported While reading flags on mail
----------I--e-- mqueue
-------------e-- mqueue-client
-------------e-- plymouth
-------------e-- rsyslog
-------------e-- samba
The 'I' you see on the /var/spool/mqueue directory shows it is INDEXED. You cannot change this with chattr.
I am still trying to figure out how to create a new indexed directory because I cannot rename mqueue to mqueue1 and create an empty mqueue to purge the mail spool because sendmail won't wrote to the new mqueue directory for some of what it is doing and exits without the "Index" option set.
Thanks,
David