This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
reference:imap4_server_script [2015/03/23 15:00] – paul | reference:imap4_server_script [2018/11/14 10:45] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 19: | Line 19: | ||
return caps | return caps | ||
end | end | ||
+ | | ||
+ | ====DoListResult function==== | ||
+ | |||
+ | if (m_Lua.Call(" | ||
+ | { | ||
+ | m_Lua.GetReturnIndexString(1, | ||
+ | m_Lua.GetReturnIndexString(2, | ||
+ | } | ||
+ | |||
+ | |||
+ | When the IMAP4 LIST command is received, for each folder to be returned by the command, VPOP3 calls | ||
+ | |||
+ | DoListResult(foldername, | ||
+ | |||
+ | * foldername = the name of the folder | ||
+ | * attributes = the attributes which will be returned for the list | ||
+ | * extended = extra information to be returned for the list (eg CHILDINFO data) | ||
+ | |||
+ | The function should return a three values | ||
+ | - boolean to indicate whether the folder response should be sent (true) or hidden (false) | ||
+ | - new attributes | ||
+ | - new extended data | ||
+ | |||
+ | If the folder response is sent, it is formatted as: | ||
+ | '' | ||
+ | |||
+ | e.g. | ||
+ | function DoListResult(folder, | ||
+ | -- do nothing | ||
+ | return true, attributes, extended | ||
+ | end |