82855 AI Apple Watch CentOS Eclipse H700 iCal iOS iPad iPhone iphone4 iTunes Java Javascript linux Mac MBP ML MySQL Oracle Parallels Desktop RAID redmine Rocky Linux RockyLinux screen Snow Leopard SQL SVN Thinkpad VMware VR Windows Windows 7 Windows 11 Word X40 东航 字体 导航 数据库 朗逸 签证 达美 闹钟

ls: Mail: Operation not permitted


估计是 Apple 怕是怕邮件里的东西不干净,macOS 11.3 多了个属性,导致就算sudo 了不能看 ~/Library/Mail 的内容。

thunder@HongleideMacBook-Pro Library % sudo ls ~/Library/Mail
ls: Mail: Operation not permitted
thunder@HongleideMacBook-Pro Library % ls -lh ~/Library | grep Mail
drwx——@ 4 thunder staff 128B 9 1 2020 Mail
thunder@HongleideMacBook-Pro Library % xattr ~/Library/Mail
com.apple.quarantine

估计要删了这个扩展属性才能看。
xattr -d com.apple.quarantine ~/Library/Mail

,