Can I delete files in /Library/Containers/com.apple.mail/Data/Library/Logs?
My MacBook is becoming unstable due to limited disk space the major culprit for which is a mysterious category called "Other". Poking around a bit (a lot actually) I find that I have over 650 GB of Other, 330 GB of which is in a single file in
~/Library/Containers/com.apple.mail/Data/Library/Logs/Mail
called
imap-mail.outlook.com-<GUID>.txt
What is this file? Is it safe to delete it?
Simply delete the file. It's even safe to do this while Mail is running.
Accumulation of these files can be prevented by choosing Window > Connection Doctor in Mail and making sure "Log Connection Activity" is unchecked.