Building the Right Environment to Support AI, Machine Learning and Deep Learning
Here is a simple COM server v.1.1 that is able to receive a mail messages and extract attached files. Base64 encoding is supported only. Look at the Eucalyptus sources for more encoding.
The POP3 realization was come from PJ Naughter code with some additional functions, the Base64 decoding was come from Eucalyptus. The COM server uses MFC because of CString. It is easy to avoid CString. It is easy to convert COM to class if you don't like COM. When received, the whole message is stored in memory. This may cause some problems with large messages. Unicode configuration is not supported.
- fixed incorrect attachments handling. Some SMTP clients such as Outlook break the 'Content-Disposition' line into two parts. The program incorrectly processed attached files in this case.
Thanks Paul A. Schifferer for the Eucalyptus - an advanced MIME-aware email application.
Thanks Zoroto for the comment about incorrect attachments handling.
DownloadsDownload demo project - 88 Kb
Download source - 49 Kb