百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
L

libetpan

> 编程语言
开源

用于 C 语言的邮件框架

629 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

用于 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

  • IMAP
  • SMTP
  • POP
  • NNTP
  • RFC822/MIME message builder
  • RFC822/MIME message parser
  • Maildir
  • mbox
  • MH

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 `pkg-config libetpan --cflags`
$ gcc -o sample sample.o `pkg-config libetpan --libs`

Mac / iOS

  • Install Xcode and CMake. Autoconf, Automake, and Libtool are optional; when present, the bootstrap refreshes the checked-in autotools output.

  • Configure libEtPan, initialize the dependency submodules, and build their XCFrameworks:

    $ ./build-mac/bootstrap.sh
    
  • Open build-mac/libetpan.xcworkspace

  • Choose the correct target "static libetpan" for Mac or "libetpan ios" for iOS.

  • To build all supported slices, choose the "libetpan xcframework" target. The result is written to build-mac/build/LibEtPan.xcframework.

  • Build

Setup a Mac project

  • Add libetpan.xcodeproj as sub-project
  • Link with libetpan.a
  • Link with build-mac/dependencies/build/JsonC.xcframework and build-mac/dependencies/build/CyrusSASL.xcframework

Setup an iOS project

  • Add libetpan.xcodeproj as sub-project
  • Link with libetpan-ios.a
  • Link with build-mac/dependencies/build/JsonC.xcframework and build-mac/dependencies/build/CyrusSASL.xcframework

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.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言