mpack tools is probably what you're looking for.
It contains munpack which could be run as:
Code:
munpack -f mime-attachments-file
If you're comfortable programming (or need some advanced or specific behaviour), you could write a perl script using Mime::Tools.