Can you migrate mailboxes with rclone?

it is possible to migrate email content through imap or pop3 protocols with rclone, the idea is to know if this is possible... I would like to know if rclone allows me to migrate content from drives such as google drive (I already did this) and also migrate email content, in order to create a script that scans mailboxes and if it has a drive system, download it and send it to the corresponding mailbox.....

rclone doesn't do mailboxes yet - sorry!

You could use a tool like imapsync.