Fix memory_limit errors on large email synchronization (Bifrost#T229981)
Improve checking for needed memory, temporarily bump the limit or
postpone message to the next sync. If all of this does not help
sync fake body with original message headers.