After upgrading to 10.14, I am unable to access the
~/Library/Mail directory, either as the user or as root.
[~/Library/Mail 14:01:42]$ ls -l ls: .: Operation not permitted [~/Library/Mail 14:04:11]$
So that's pretty weird. It happens even if I am root.
No system flags are set on the directory.
So presumably, this is another system integrity or sandboxing thing. Unfortunately, I have code that wants to access the sqlite3 database inside the
~/Library/Mail directory. So how do I grant my software access to my mail?
This seems to be related to the 10.14 privacy protections.