6 points · by anacleto · 11y ago · 4 comments
Building a simple email client (say, like mail(1), even including SMTP and POP3 instead of local delivery) is rather easy.
It could be a nice programming project for first year (2nd semester) students, I'd say.
Of course, you can complexify things, adding GUI, IMAP, MIME, displaying inline attached files (pictures, pdf files, etc), SSL/TLS, dealing with local mail folders, spam filters, automatic mail sorting, including an wysiwyg editor, message encryption with key management.
But the basic mail(1)-like client using SMTP and POP3 is easy.
This is by one of the guys from Sparrow (RIP) [1] and powered it under the hood.
The truly hard part is dealing with emails themselves, both in terms of MIME, and the bastardized broken things people will send you - malformed headers, missing headers, etc, etc.
I wrote a modal console-based Email client, completely scriptable via lua:
It was more work than I expected, but also fun. So there are compensations. (Obviously graphics make things harder, with threading, etc, but if you can handle the core you should be able to wrap a GUI around it.)