Every step below is from an official source
Switch from Yahoo Mail to iCloud Mail
What to do at Yahoo Mail before you leave, what iCloud Mail needs when you join, and everything else the switch touches. Your full plan is built in your browser and stays there.
Official sources reviewed . How we review sources
At Yahoo Mail, before you leave
Download your Yahoo mail with an IMAP appBefore
Use Yahoo's IMAP settings to download your mail into an app like Thunderbird, Outlook or Mac Mail. Large accounts can take several days or longer.
Download your email from Yahoo Mail with IMAPYahoo. ReviewedChoose to keep mail on the serverDuring
If your email app asks whether to keep mail on the server, select yes. Otherwise your email is deleted from your Yahoo account as it downloads.
Download your email from Yahoo Mail with IMAPYahoo. ReviewedDownload what you need before closingAfter
Closing your Yahoo account removes access to your Yahoo Mail messages and folders, so download anything you want first. In most countries you can reactivate by signing in within 30 days.
Close or reactivate your Yahoo accountYahoo. Reviewed
At iCloud Mail, when you join
Import contacts from a vCardDuring
At icloud.com/contacts, select the Add button, choose Import Contact, then select a vCard. Imported contacts are added to the All Contacts list.
Import, export, or print contacts on iCloud.comApple. ReviewedImport old mail to a custom domain addressDuring
If you use your own domain with iCloud Mail, you can import existing emails from your previous provider on iCloud.com. This isn't available for all providers, and you need enough iCloud storage.
Move other emails by hand with MailDuring
You can also move emails into iCloud Mail yourself using the Mail app on iPhone, iPad or Mac.
Then: everything else the switch affects
The steps above are what Yahoo Mail and iCloud Mail say. Your full checklist adds the accounts, codes, payments and devices that depend on your email provider, in a safe order. It's built from your answers, in your browser.