Latest 1.3.pre2
Homepage https://github.com/dinhviethoa/libetpan
License BSD
Dependencies libsasl2
Frameworks Security, CFNetwork

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

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

Latest podspec

{
    "name": "libetpan",
    "version": "1.3.pre2",
    "summary": "Mail Framework for C Language.",
    "homepage": "https://github.com/dinhviethoa/libetpan",
    "license": {
        "type": "BSD",
        "file": "COPYRIGHT"
    },
    "authors": "Hou00e0 V. DINH",
    "source": {
        "git": "https://github.com/dinhviethoa/libetpan.git",
        "tag": "1.3.pre2"
    },
    "source_files": [
        "*.h",
        "include/**/*.{h}",
        "src/data-types/**/*.{h,c}",
        "src/driver/**/*.{h,c}",
        "src/engine/**/*.{h,c}",
        "src/low-level/**/*.{h,c}",
        "src/main/**/*.{h,c}"
    ],
    "compiler_flags": "-DHAVE_CONFIG_H=1 -DHAVE_CFNETWORK=1 -DLIBETPAN_IOS_DISABLE_SSL=1",
    "dependencies": {
        "libsasl2": []
    },
    "public_header_files": "include/libetpan/*.h",
    "xcconfig": {
        "USE_HEADERMAP": "NO"
    },
    "libraries": "iconv",
    "frameworks": [
        "Security",
        "CFNetwork"
    ],
    "prepare_command": "    cd build-macn    SRCROOT=true sh update.shn",
    "requires_arc": false
}

Pin It on Pinterest

Share This