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.

60 lines
1.3 KiB

9 years ago
9 years ago
9 years ago
9 years ago
  1. ## LibEtPan
  2. The purpose of this mail library is to provide a portable, efficient framework for different kinds of mail access: IMAP, SMTP, POP and NNTP.
  3. It provides an API for C language.
  4. [![Build Status](https://travis-ci.org/dinhviethoa/libetpan.png?branch=master)](https://travis-ci.org/dinhviethoa/libetpan)
  5. ## Features
  6. - IMAP
  7. - SMTP
  8. - POP
  9. - NNTP
  10. - RFC822/MIME message builder
  11. - RFC822/MIME message parser
  12. - Maildir
  13. - mbox
  14. - MH
  15. ## Build instructions
  16. ### Unix
  17. You need to install autoconf, automake and libtool.
  18. They can be installed using [brew](http://brew.sh/).
  19. $ ./autogen.sh
  20. $ make
  21. ### How to link with it
  22. $ gcc -c -o sample.o sample.c `libetpan-config --cflags`
  23. $ gcc -o sample sample.o `libetpan-config --libs`
  24. ### Mac / iOS
  25. - Download Xcode
  26. - Open `build-mac/libetpan.xcodeproj`
  27. - Choose the correct target "static libetpan" for Mac or "libetpan ios" for iOS.
  28. - Build
  29. ### Setup a Mac project
  30. - Add `libetpan.xcodeproj` as sub-project
  31. - Link with libetpan.a
  32. ### Setup an iOS project
  33. - Add `libetpan.xcodeproj` as sub-project
  34. - Link with libetpan-ios.a
  35. - Set "Other Linker Flags": `-lsasl2`
  36. ### Build on Windows
  37. - See README and Visual Studio Solution in build-windows folder
  38. ## More information
  39. See http://etpan.org/libetpan.html for more information and examples.