Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

libmail - a mail handling library

40 views
Skip to first unread message

Dimitris Mandalidis

unread,
Mar 11, 2009, 3:43:15 AM3/11/09
to
Developers who intend to integrate mail checking capabilities to their
applications may be interested in libmail, an open-source C library,
as it provides an API to avoid ad-hoc implementations.

You can find libmail at: http://libmail.sourceforge.net

Hope you enjoy
Dimitris Mandalidis

Rainer Weikusat

unread,
Mar 11, 2009, 4:53:03 AM3/11/09
to
Dimitris Mandalidis <man...@gmail.com> writes:
> Developers who intend to integrate mail checking capabilities to their
> applications may be interested in libmail, an open-source C library,
> as it provides an API to avoid ad-hoc implementations.

The implementation looks pretty 'ad hoc' in its own right. Are you
aware that a 'port' is a 16-bit number?

Dimitris Mandalidis

unread,
Mar 11, 2009, 5:18:35 AM3/11/09
to
On 11 Μαρ, 10:53, Rainer Weikusat <rweiku...@mssgmbh.com> wrote:

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.

Jasen Betts

unread,
Mar 12, 2009, 8:45:50 AM3/12/09
to
On 2009-03-11, Dimitris Mandalidis <man...@gmail.com> wrote:
> Developers who intend to integrate mail checking capabilities to their
> applications may be interested in libmail, an open-source C library,
> as it provides an API to avoid ad-hoc implementations.
>
> You can find libmail at: http://libmail.sourceforge.net

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,


0 new messages