Posted on 02-24-2016 11:48 AM
I've searched through the plist file (/Users/<user>/Library/Containers/com.apple.mail/Data/Library/Preferences/com.apple.mail.plist) and can't seem to find where I can disable 'Automatically download all attachments' function in Accounts > Advanced. I've done a before and after capture and a delta in what data is written, and I can't find the correct settings to change this.
I've found that our users that have Mail.app configured are pulling down email from Google SPAM folder which Google throws questionable emails into. So the SPAM with attachments then show up in our Sophos console.
I'd prefer if the download automatically goes away so I can not have to risk anything bad happening to my users.
Posted on 02-24-2016 12:48 PM
It's in /Users/$USER/Library/Mail/V2/MailData/Accounts.plist as the "CachePolicy" attribute. CacheAllBodies = checkbox unchecked and CacheAllMessages = checkbox checked.
Didn't look too hard but it looks like you may want to use plistbuddy to write to it. Also noticed on my other Mac that key doesn't exist, even if I toggle the box, so it may be stored elsewhere too. Toggled it on my one Mac that shows it from the plist and it did update the checkbox.
Posted on 02-24-2016 08:24 PM
Accounts.plist does not exist in the path. My path goes
/Users/<user>/Library/Mail/V3/MailData/
and then from there my only files listed are:
BackupTOC.plist
DefaultCounts
Envelope Index
Envelope Index-T0x7fd892207a10.tmp.QbM4m6-shm
Envelope Index-T0x7fd892207a10.tmp.QbM4m6-wal
Envelope Index-shm
Envelope Index-wal
ExternalUpdates.storedata
ExternalUpdates.storedata-shm
ExternalUpdates.storedata-wal
FlagMailboxes.plist
RulesActiveState.plist
Signatures
SmartMailboxesLocalProperties.plist
SyncedFilesInfo.plist
SyncedRules.plist
SyncedSmartMailboxes.plist
UnsyncedRules.plist
VIPSenders.plist
If I go up a directory, inside of V3 I have two folders that look like they might be account folders. They're labeled in a way that it looks like a UUID type identifier for each folder. Inside of those folders I have .mbox files. No Accounts.plist file.
I don't have a V2 folder, only a V3. I should mention I'm on El Capitan. Was your test done on a previous OS build?
I ran a sudo find / -name Accounts.plist and nothing came up.
Posted on 04-05-2016 12:55 PM
Was anyone able to figure this out yet?
Posted on 09-16-2016 12:29 AM
I think the file you are looking for is ~/Library/Accounts/Accounts3.sqllite
Posted on 12-10-2021 11:15 PM
How to completely disable downloading attachments that belong to corporate account?