If the message is in the Spam folder, use the Not Spam button. You can also designate folders to automatically mark messages in those folders as spam or not spam. Use the
Settings>Folders>Advanced screen. The help is at:
https://www.fastmail.com/help/receive/stopspam.html
Bill