Mail logs getting gigantic, full HD, Apple Mail
For over a year I've struggled with lower battery life and the fan coming on for long periods of time, and the HD getting full. Another question and answer showed this was due to mail logs and that they can be deleted from the Mail logs in the Library.
On a 1TB drive, my mail log specifically for Google had reached 365GB and I was out of space so had to find a solution. Deleting the log temporarily reclaimed the space, but then the logs just started growing all over again.
I found the solution elsewhere and it's SO simple. From within Apple Mail, select Window > Connection Doctor. In Connection Doctor you'll see a checkbox at the bottom turned on for "Log Connection Activity". Turn that off and the endless logging ceases.
Hope this helps someone else...