The open-source library OpenPop.NET provides very thorough operation observing all those MIME types and other mail-related standards. Please see:
http://sourceforge.net/projects/hpop[
^].
This library is not very well written and can be improved, but you can use it even as a reference, to find all what's involved.
—SA