Encrypted Volume - Spotlight Index status

HI

I have an encrypted disk image with all my Mail on. I have learned that spotlight apparently does not index encrypted volumes. This means search in Mail is useless.

I have also discovered that the indexing is lost every time the disk image is unmounted. Which is a real pain. In other words, every time I mount the disk image, I have to issue a terminal command

…and then wait half an hour while it indexes my Mail each time!

I want to automate this process but am having trouble trying to detect whether indexing is already enabled on the mounted image. I have this snippet:

do shell script "sudo mdutil -i /Volumes/InfoPackEM" with administrator privileges 

But even when the disk image is mounted, the script returns an error saying:

… even when the indexing is on…It returns same error when indexing is off.

How do I test whether the indexing is on for a mounted disk image? Any ideas?

This isn’t the most helpful reply but Spotlight will index an encrypted disk image and should remember to index on mounting. I have one that works flawlessly.

I’m a bit confused too. You are storing your Mail on this image. Is this an archive of the Mail or your live Mail contents?

Hi

It is my active Mail account on the disk image (I have a symlink that points to it from the Application Support folder).

It is repeatable behaviour for me.

However, your comment made me think!!!

The disk image was created using Knox and there is a setting which either prevents or allows spotlight on a disk image by disk image basis. For the disk image in question, spotlight was not activated. So after changing that, it now seems to work!!

My head scratching is over, hopefully.

Thanks

:smiley:

Glad to start the ol’ thinking again. (I need that sometimes too.):cool:

Cheers!
Jim
BLUEFROG