The rebuild
method is new: call it with a set of rules (a
large set will be used by default) to re-structure a message: for instance
to remove parts of a message which are already flagged for deletion.
Four sets of rules can be used: rules how to handle multiparts, simplification rules, transformation rules, and your own rules.