MBOX-Line: From petite_abeille at mac.com  Mon Mar 19 13:02:38 2012
To: imap-protocol@u.washington.edu
From: PA <petite_abeille@mac.com>
Date: Fri Jun  8 12:34:48 2018
Subject: [Imap-protocol] [ann] lua imap server
Message-ID: <CBFD9662-269A-4573-8EF1-E07E7BE4671C@mac.com>

Hello,

Bellow is a preview of a diminutive IMAP server implemented in Lua [1]:

imap://lua:lua@svr225.stepx.com:1143/inbox

For these brave enough to give it a try, the user name and password is lua (plain login, no starttls, nor ssl). 

For example:

$ telnet svr225.stepx.com 1143
Trying 212.55.219.225...
Connected to svr225.stepx.com.
Escape character is '^]'.
* ok imap4rev1
123 login lua lua
123 ok login
123 select inbox
* 1000 exists
* 0 recent
* flags (\answered \deleted \draft \flagged \seen)
* ok [permanentflags ()] done
* ok [uidnext 88836] done
* ok [uidvalidity 15986] done
123 ok [read-only] select
123 fetch * fast
* 1000 fetch (flags (\seen) internaldate "27-Feb-2012 01:31:18 +0000" rfc822.size 13981)
123 ok fetch
123 logout
* bye imap4rev1
123 ok logout

The demo server sports the content of the Lua mailing list since its inception until February 2012. About 88K messages.

The server is read only and fronts an email archive stored in SQLite.

The server side implementation details can be found bellow:

http://dev.alt.textdrive.com/browser/Mail/IMAP.lua#L523
http://dev.alt.textdrive.com/browser/Mail/IMAPFetch.lua#L747
http://dev.alt.textdrive.com/browser/Mail/IMAPSearch.lua#L498

The server has been tested for interoperability with the following libraries:

- uw-imap c-client 
- JavaMail
- Perl Mail::IMAPClient
- Python imaplib 
- Ruby Net::IMAP

And the following email clients:

- alpine
- Apple Mail Mac OS X
- Apple Mail iOS
- Mozilla Thunderbird
- Mulberry
- GyazMail
- Sparrow

As the IMAP protocol is rather, hmm, "challenging", help with interoperability testing would be much appreciated :)

If you manage to connect (or not) to the demo server, could you report back what client or library did or didn't work as expected?

Thanks in advance.

Cheers,

--

[1] http://www.lua.org/about.html


