You can find libmail at: http://libmail.sourceforge.net
Hope you enjoy
Dimitris Mandalidis
The implementation looks pretty 'ad hoc' in its own right. Are you
aware that a 'port' is a 16-bit number?
Yes, but getaddrinfo(3) requests a port to be in char[]; at the time
of defining the structure I decided to use 'char[]' and not 'short'
as it would require me to convert it. Furthermore, I thought that each
end-user would type the server's info into a textbox, and despite that
I haven't been involved into GUI programming, I believe that the
middle application would take a char[] from this textbox, through this
implementation it might be possible for the server's port to be passed
directly to libmail, and if my assumption is correct, by using 'short'
it would require for the middle application to :
1. convert to short
2. pass it to libmail
3. libmail convert to char
4. getaddrinfo()
while currently it is staightforward.
However, it is still 0.1 version and I posted here to get some
feedback, you can always download the code, submit patches and make
suggestions.
D.
I find libc-client does all I want, but mainly I use it for sending.
It also needsto compile for windows.
I also leverage it's cross-platform TLS code for other purposes,