LibEtPan - C语言便携式、高效的邮件框架

网友投稿 908 2022-10-27 17:49:00

LibEtPan - C语言便携式、高效的邮件框架

LibEtPan

The purpose of this mail library is to provide a portable, efficient framework for different kinds of mail access: IMAP, SMTP, POP and NNTP.

It provides an API for C language.

Features

IMAPSMTPPOPNNTPRFC822/MIME message builderRFC822/MIME message parserMaildirmboxMH

Build instructions

Unix

You need to install autoconf, automake and libtool. They can be installed using brew.

$ ./autogen.sh$ make

You can use flag --with-poll for using poll() instead of select() for checking connection status

How to link with it

$ gcc -c -o sample.o sample.c `libetpan-config --cflags`$ gcc -o sample sample.o `libetpan-config --libs`

Mac / iOS

Download XcodeOpen build-mac/libetpan.xcodeprojChoose the correct target "static libetpan" for Mac or "libetpan ios" for iOS.Build

Setup a Mac project

Add libetpan.xcodeproj as sub-projectLink with libetpan.a

Setup an iOS project

Add libetpan.xcodeproj as sub-projectLink with libetpan-ios.aSet "Other Linker Flags": -lsasl2

Build on Windows

See README and Visual Studio Solution in build-windows folder

More information

See http://etpan.org/libetpan.html for more information and examples.

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:NSubstitute一个.NET模拟(mocking)框架的友好替代
下一篇:VolleyManager是对android网络请求框架volley的封装
相关文章