This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| reference:imap4_server_script [2015/04/21 15:24] – [DoListResult function] paul | reference:imap4_server_script [2026/05/26 17:46] (current) – [GetEncryption function] paul | ||
|---|---|---|---|
| Line 50: | Line 50: | ||
| return true, attributes, extended | return true, attributes, extended | ||
| end | end | ||
| + | | ||
| + | | ||
| + | ====GetEncryption function==== | ||
| + | (Added in version 8.7) | ||
| + | |||
| + | When a connection is established, | ||
| + | |||
| + | GetEncryption(ipaddr, | ||
| + | |||
| + | * ipaddr - client IP address | ||
| + | * server addr - server IP address (eg if different IP addresses have bindings) | ||
| + | * server port - server port (eg if different ports have bindings) | ||
| + | * default encryption mode - 0 = no encryption/ | ||
| + | |||
| + | returns a single number of the new encryption mode | ||
| + | |||
| + | e.g. This will set SSL/TLS for connections to port 993 (bind the service to both ports 143 and 993, and set the encryption mode for None/ | ||
| + | |||
| + | function GetEncryption(client, | ||
| + | if (svrport==993) then | ||
| + | enc = 1; | ||
| + | end | ||
| + | return enc; | ||
| + | end | ||
| + | | ||
| + | ====FilterCommand function==== | ||
| + | (Added in v9.1) | ||
| + | |||
| + | Every time an IMAP4 command is received by VPOP3, this function is called, which will allow VPOP3 to filter it out, or replace it with trivial functionality | ||
| + | |||
| + | function FilterCommand(username, | ||
| + | |||
| + | returns newCommand, newParameters, | ||
| + | |||
| + | If ' | ||