mam.lib: add proper overcap message pruning for archives. (Fixes #157)