Move emails stored locally in Apple Mail on your Mac to web server storage. This is especially important to do before updating to macOS 10.15 Catalina. At this time, these emails may be lost at the time of upgrade to Catalina.
Alternatively, you can move a whole MailBox folder as described in Apple's "Move or copy mailboxes in Mail on Mac" article.