Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dinhviethoa/libetpan
Mail Framework for C Language
https://github.com/dinhviethoa/libetpan
Last synced: 14 days ago
JSON representation
Mail Framework for C Language
- Host: GitHub
- URL: https://github.com/dinhviethoa/libetpan
- Owner: dinhvh
- License: other
- Created: 2011-07-17T09:20:55.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2024-05-28T03:33:46.000Z (6 months ago)
- Last Synced: 2024-10-29T14:35:52.635Z (15 days ago)
- Language: C
- Homepage: www.etpan.org
- Size: 12.5 MB
- Stars: 612
- Watchers: 40
- Forks: 284
- Open Issues: 68
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- Authors: AUTHORS
Awesome Lists containing this project
README
## 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.
[![Build Status](https://travis-ci.org/dinhviethoa/libetpan.png?branch=master)](https://travis-ci.org/dinhviethoa/libetpan)
[![Code Quality: Cpp](https://img.shields.io/lgtm/grade/cpp/g/dinhviethoa/libetpan.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/dinhviethoa/libetpan/context:cpp)
[![Total Alerts](https://img.shields.io/lgtm/alerts/g/dinhviethoa/libetpan.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/dinhviethoa/libetpan/alerts)## 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](http://brew.sh/).$ ./autogen.sh
$ makeYou 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
- Download Xcode
- Open `build-mac/libetpan.xcodeproj`
- Choose the correct target "static libetpan" for Mac or "libetpan ios" for iOS.
- Build### Setup a Mac project
- Add `libetpan.xcodeproj` as sub-project
- Link with libetpan.a### Setup an iOS project
- Add `libetpan.xcodeproj` as sub-project
- Link with libetpan-ios.a
- Set "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.