MailCore / mailcore2

MailCore 2 provide a simple and asynchronous API to work with e-mail protocols IMAP, POP and SMTP. The API has been redesigned from ground up.
Other
2.6k stars 625 forks source link

Cannot create build on Windows #1599

Open liahim1 opened 7 years ago

liahim1 commented 7 years ago

Hello,

Have you tested that the build can be created on Windows ? I tried to build with Visual Studio 2015 and I get many errors.

For example the file MCData.cpp contains the include directive #include <sys/mman.h>, which is not available on Windows. Same for #include in MCDataDecoderUtils.cpp. There is no guard for those directive, and also some Linux functions are used, which do not exist in Windows, like memmem, munmap or mmap.

Another issues is with the libetpan dependency version suggested for download on the build page. Is has some functions missing, like mailesmtp_send_quit_no_disconnect referenced in MCSMTPSession.cpp. The function does not exist in any header file.

So am I doing something wrong, or are there actually issues with the build for Windows ?

Thank you

amtf-jw commented 4 years ago

Hello "mailesmtp_send_quit_no_disconnect "need complie libetpan,which link is https://github.com/dinhviethoa/libetpan using libetpan.dll add to mailcore2