libetpan - fdik
 
 
 
 
 
Go to file
positron 507ab94fc9 Merge pull request 'Fix and optimize android-build' (#10) from huss/libetpan:build-android into master
Reviewed-on: #10
2022-03-21 18:47:04 +01:00
build-android Android Build: Only build for one arch given as a cli argument 2022-03-06 23:29:03 +01:00
build-mac Xcode: rm obsolete dependencies 2021-10-19 11:17:17 +02:00
build-windows Fix Windows build 2021-12-21 10:27:32 +01:00
doc import from CVS 2011-07-19 22:49:12 +02:00
include import from CVS 2011-07-19 22:49:12 +02:00
m4 import from CVS 2011-07-19 22:49:12 +02:00
src put quotes back in the parsed quoted string of the address 2020-06-03 16:08:37 +02:00
tests added critical section deletion on windows 2014-11-13 16:44:12 +03:00
travis Automatically choose SDK on Travis 2015-09-15 15:27:48 -07:00
.gitignore IOSAD-218 git ignores compile dir 2021-07-16 12:14:55 +02:00
.travis.yml Use Xcode7 on Travis 2015-09-15 15:15:45 -07:00
AUTHORS import from CVS 2011-07-19 22:49:12 +02:00
COPYRIGHT import from CVS 2011-07-19 22:49:12 +02:00
ChangeLog import from CVS 2011-07-19 22:49:12 +02:00
Makefile.am import from CVS 2011-07-19 22:49:12 +02:00
NEWS import from CVS 2011-07-19 22:49:12 +02:00
README.md Fixed Travis script 2014-04-24 13:19:37 -07:00
autogen.sh fixed warning 2013-02-28 18:35:39 -08:00
configure.ac configure patch for mac 2020-10-27 15:52:53 +01:00
libetpan-config.h.in Fixed warnings in Xcode build. 2016-01-18 23:52:23 +01:00
libetpan-config.in import from CVS 2011-07-19 22:49:12 +02:00
rules.mk import from CVS 2011-07-19 22:49:12 +02:00

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
$ 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.