A c++ program callable from a delivering procmailrc recipe to shred mail and log the action (Shredded) with smtp id and optional message.
When called from a non-delivering procmailrc recipe it will retain the message and log the specified action (via -s option) with smtp id and optional message.
See the wiki for examples, or the shredmail landing page for additional information.