I would like to know if there exists a solution for archiving email, stripping out the attachments and saving them separately, deduplicated?
The ideal would be a maildir-setup, with a script running over the messages, extracting the attachments, using e.g. hard links for existing/identical attachments, leaving a link/URL to the saved attachment left in the message.
Does anything like this exist, as scripts or anything that can be run on a linux server?
AFAIK Zimbra is set up similar, with a custom maildir+database backed storage, however, I would like something a bit more "transparent" for my archiving needs.