I'm using mbsync to copy emails from one IMAPStore to another. However, some emails allowed on the first IMAPStore exceed the per-message size limit of the second, causing mbsync to give an error: "IMAP error: unexpected BYE response: command or literal size is too large" and quit.
Any suggestions on how best to handle situations like this? Is there some way to filter emails by size, etc.?