Have been affected by this issue, as you can read in my previous posts in this thread. My problems had to do with viewing attachments in an iCloud mail account stretching back many years. And had less problems with recent message attachments.
Tried most of the suggested remedies to no avail. Now I decided to download a fresh copy of all my messages from iCloud. I roughly followed the (Yosemite) procedure outlined in:
https://discussions.apple.com/thread/7144486
I updated the instructions for High Sierra and made a few additional tweaks.
This procedure seems to have worked for me. Am sharing it, in case others will benefit from this approach as well. But try at your own risk. And back up all your data before proceeding!
1) Make certain all attachments get downloaded. Go to:
Mail settings -> icon Accounts -> tab Account Information -> select iCloud (or another IMAP account)
set if this is not already the case:
- Download attachments: all
2) close Apple Mail
3) go to this folder the user Library in Finder
~/Library/Mail/V5/MailData
( /Users/YourAccountName/Library/Mail/V5/MailData )
And move (= backup!) to the desktop the following,
any file beginning with:
- Envelope Index
any file beginning with:
- ExternalUpdates.storedata
- MessageUidsAlreadyDownloaded3
and if present a preference file:
- OpenedAttachmentsV2.plist
4) launch Apple Mail and confirm you want to import your messages. Then be patient as the import might take quite some time.
Hope this helps.