Re: E-Mail Client Code Suggestions
Re: E-Mail Client Code Suggestions
- Subject: Re: E-Mail Client Code Suggestions
- From: Steve Luzynski <email@hidden>
- Date: Tue, 27 Jul 2004 22:03:05 -0500
On Jul 26, 2004, at 11:37 PM, Ed Sutherland wrote:
I am an old 'C' coder now experimenting with recreational Cocoa
development. (In other words, I don't develop for a living.) With that
said, I have a question:
I want to develop an e-mail client along the lines of Mozilla's
Thunderbird, but without the news baggage. Can someone point me in the
direction of code samples showing me how to connect to a mail server
and query whether there are waiting messages? Thanks for any help.
Thunderbird wouldn't be the worst place to start, actually...
Beyond that, the protcol specs are:
POP3 - RFC1939 - www.faqs.org/rfcs/rfc1939.html
IMAP4 - RFC 3501 - www.faqs.org/rfcs/rfc3501.html
POP3 is really easy, there are very few verbs. IMAP is a bit more
interesting, but still a reasonably straightforward protocol.
Most internet protocols are text based. POP3, for example, at its most
basic, looks like:
open tcp connection to mailserver port 110
wait for +OK
user <username>
wait for +OK
pass <password>
wait for +OK
list to get a list of messages, etc.
Like I said, pretty simple. Once you're familiar with the RFC you can
check your email from a telnet prompt. :)
Also check out
http://www.opengroupware.org/. They have fully fleshed
out POP3, SMTP, and IMAP implementations in Objective C (although not
necessarily Apple specific per se) to look at.
-Steve
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.