User Tools

Site Tools


reference:imap4_server_script

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
reference:imap4_server_script [2015/03/23 15:00] paulreference:imap4_server_script [2015/04/21 15:24] – [DoListResult function] paul
Line 19: Line 19:
     return caps     return caps
   end   end
 +  
 +====DoListResult function====
 +
 + if (m_Lua.Call("DoListResult", false, f->first, strFlags, strExtra))
 + {
 + m_Lua.GetReturnIndexString(1, strFlags);
 + m_Lua.GetReturnIndexString(2, strExtra);
 + }
 +
 +
 +When the IMAP4 LIST command is received, for each folder to be returned by the command, VPOP3 calls
 +
 +  DoListResult(foldername, attributes, extended)
 +
 +  * 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:
 +''* (<attributes>) "/" "<foldername>"<extended>''
 +
 +e.g.
 +  function DoListResult(folder, attributes, extended)
 +  -- do nothing
 +    return true, attributes, extended
 +  end  
reference/imap4_server_script.txt · Last modified: 2018/11/14 10:45 by 127.0.0.1