libetpan - fdik
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Shuhao Zhang 0413d6dedb #275 remove 'system()' call on iOS 5 years ago
build-android Cyrus 2.1.26 6 years ago
build-mac Cyrus 2.1.26 6 years ago
build-windows libetpan 1.8 5 years ago
doc import from CVS 11 years ago
include import from CVS 11 years ago
m4 import from CVS 11 years ago
src #275 remove 'system()' call on iOS 5 years ago
tests Add empty element at end for getopt_long options 5 years ago
travis Automatically choose SDK on Travis 7 years ago
.gitignore add compile script to .gitignore 7 years ago
.travis.yml Use Xcode7 on Travis 7 years ago
AUTHORS import from CVS 11 years ago
COPYRIGHT import from CVS 11 years ago
ChangeLog import from CVS 11 years ago
Makefile.am import from CVS 11 years ago
NEWS import from CVS 11 years ago
README.md add flag --with-poll for configure 6 years ago
autogen.sh fixed warning 10 years ago
configure.ac libetpan 1.8 5 years ago
libetpan-config.h.in The inline keyword is not part of C in visual studio but is part of C++ and it is illegal to re-define a C++ keyword. This change makes it so that we define the inline only when this header file is included in C. 8 years ago
libetpan-config.in import from CVS 11 years ago
rules.mk import from CVS 11 years ago

README.md

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

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

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