|
Can someone explain what the above error means and what is causing it? Another question, where do the capability() and select() functions come from (I don't see them in the imap code)?The library is a very thin binding over the IMAP protocol, and all magic happens in IMAP_META:command() and IMAP_META.__index. IMAP_META:command(cmd, ...) will format the IMAP command with the arguments, like adding a sequence number, converting the command to uppercase and concatenating all arguments with spaces. It will then send the command and collect all results into a table, which it returns.IMAP_META.__index then provides a simple interface over IMAP_META:command(cmd) - instead of writing imap:command("select", ...), you can just do imap:select(...).