Difference between revisions of "Unit POP3"
From Ultibo.org
								
												
				| Line 10: | Line 10: | ||
----  | ----  | ||
| − | ''  | + | |
| + | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">  | ||
| + | <div style="font-size: 14px; padding-left: 12px;">'''POP3 specific constants''' <code> POP3_* </code></div>  | ||
| + | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">  | ||
| + | {| class="wikitable" style="font-size: 14px; background: white;"  | ||
| + | |-  | ||
| + | | <code>POP3_LINE_END = Chr(13) + Chr(10);</code>  | ||
| + | | CR LF  | ||
| + | |-  | ||
| + | |colspan="2"|   | ||
| + | |-  | ||
| + | | <code>POP3_BUFFER_SIZE = SIZE_4K;</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | |}  | ||
| + | </div></div>  | ||
| + | <br />   | ||
| + | |||
| + | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">  | ||
| + | <div style="font-size: 14px; padding-left: 12px;">'''POP3 status constants''' <code> POP3_STATUS_* </code></div>  | ||
| + | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">  | ||
| + | {| class="wikitable" style="font-size: 14px; background: white;"  | ||
| + | |-  | ||
| + | | <code>POP3_STATUS_NONE = 0;</code>  | ||
| + | | style="width: 50%;"|   | ||
| + | |-  | ||
| + | | <code>POP3_STATUS_CONN = 1;</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | | <code>POP3_STATUS_USER = 2;</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | | <code>POP3_STATUS_PASS = 3;</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | | <code>POP3_STATUS_APOP = 4;</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | | <code>POP3_STATUS_DATA = 5;</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | | <code>POP3_STATUS_QUIT = 6;</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | |colspan="2"|   | ||
| + | |-  | ||
| + | | <code>POP3_MAX_STATUS = 6;</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | |}  | ||
| + | </div></div>  | ||
| + | <br />  | ||
| + | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">  | ||
| + | <div style="font-size: 14px; padding-left: 12px;">'''POP3 command constants''' <code> POP3_COMMAND_* </code></div>  | ||
| + | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">  | ||
| + | {| class="wikitable" style="font-size: 14px; background: white;"  | ||
| + | |-  | ||
| + | | <code>POP3_COMMAND_STAT = 'STAT';</code>  | ||
| + | | style="width: 50%;"|   | ||
| + | |-  | ||
| + | | <code>POP3_COMMAND_LIST = 'LIST';</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | | <code>POP3_COMMAND_RETR = 'RETR';</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | | <code>POP3_COMMAND_DELE = 'DELE';</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | | <code>POP3_COMMAND_NOOP = 'NOOP';</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | | <code>POP3_COMMAND_RSET = 'RSET';</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | | <code>POP3_COMMAND_QUIT = 'QUIT';</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | |colspan="2"|   | ||
| + | |-  | ||
| + | | <code>POP3_COMMAND_TOP  = 'TOP';</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | | <code>POP3_COMMAND_UIDL = 'UIDL';</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | | <code>POP3_COMMAND_USER = 'USER';</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | | <code>POP3_COMMAND_PASS = 'PASS';</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | | <code>POP3_COMMAND_APOP = 'APOP';</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | |}  | ||
| + | </div></div>  | ||
| + | <br />   | ||
| + | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">  | ||
| + | <div style="font-size: 14px; padding-left: 12px;">'''POP3 string constants''' <code> POP3_STRING_* </code></div>  | ||
| + | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">  | ||
| + | {| class="wikitable" style="font-size: 14px; background: white;"  | ||
| + | |-  | ||
| + | | <code>POP3_STRING_SUCCESS = '+OK ';</code>  | ||
| + | | style="width: 50%;"|   | ||
| + | |-  | ||
| + | | <code>POP3_STRING_FAILURE = '-ERR ';</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | | <code>POP3_STRING_COMPLETE = '.';</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | |colspan="2"|   | ||
| + | |-  | ||
| + | | <code>POP3_STRING_SIGNON = 'Ultibo POP3 server (version ' + ULTIBO_RELEASE_VERSION + ')';</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | | <code>POP3_STRING_SIGNOFF = 'Ultibo POP3 server closing connection';</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | | <code>POP3_STRING_EMPTY_STAT = '0 0';</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | | <code>POP3_STRING_EMPTY_LIST = '0 messages (0 octets)';</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | | <code>POP3_STRING_BAD_COMMAND = 'Bad command';</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | | <code>POP3_STRING_BAD_MESSAGE = 'No such message';</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | | <code>POP3_STRING_BAD_USERNAME = 'Invalid username or password';</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | | <code>POP3_STRING_BAD_PASSWORD = 'Invalid username or password';</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | | <code>POP3_STRING_NO_PERMISSION = 'Permission denied';</code>  | ||
| + | |    | ||
| + | |-  | ||
| + | |}  | ||
| + | </div></div>  | ||
| + | <br />   | ||
| + | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">  | ||
| + | <div style="font-size: 14px; padding-left: 12px;">'''POP3 logging constants''' <code> POP3_LOG_* </code></div>  | ||
| + | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">  | ||
| + | {| class="wikitable" style="font-size: 14px; background: white;"  | ||
| + | |-  | ||
| + | | <code>POP3_LOG_LEVEL_DEBUG = LOG_LEVEL_DEBUG;</code>  | ||
| + | | POP3 debugging messages  | ||
| + | |-  | ||
| + | | <code>POP3_LOG_LEVEL_INFO = LOG_LEVEL_INFO;</code>  | ||
| + | | POP3 informational messages  | ||
| + | |-  | ||
| + | | <code>POP3_LOG_LEVEL_ERROR = LOG_LEVEL_ERROR;</code>  | ||
| + | | POP3 error messages  | ||
| + | |-  | ||
| + | | <code>POP3_LOG_LEVEL_NONE = LOG_LEVEL_NONE;</code>  | ||
| + | | No POP3 messages  | ||
| + | |-  | ||
| + | |}  | ||
| + | </div></div>  | ||
| + | <br />  | ||
=== Type definitions ===  | === Type definitions ===  | ||
Revision as of 00:34, 16 December 2016
Return to Unit Reference
Description
To be documented
Constants
POP3 specific constants 
 POP3_*  POP3_LINE_END = Chr(13) + Chr(10);
 | 
CR LF | 
 POP3_BUFFER_SIZE = SIZE_4K;
 | 
|
 
POP3 status constants 
 POP3_STATUS_*  POP3_STATUS_NONE = 0;
 | 
|
 POP3_STATUS_CONN = 1;
 | 
|
 POP3_STATUS_USER = 2;
 | 
|
 POP3_STATUS_PASS = 3;
 | 
|
 POP3_STATUS_APOP = 4;
 | 
|
 POP3_STATUS_DATA = 5;
 | 
|
 POP3_STATUS_QUIT = 6;
 | 
|
 POP3_MAX_STATUS = 6;
 | 
|
POP3 command constants 
 POP3_COMMAND_*  POP3_COMMAND_STAT = 'STAT';
 | 
|
 POP3_COMMAND_LIST = 'LIST';
 | 
|
 POP3_COMMAND_RETR = 'RETR';
 | 
|
 POP3_COMMAND_DELE = 'DELE';
 | 
|
 POP3_COMMAND_NOOP = 'NOOP';
 | 
|
 POP3_COMMAND_RSET = 'RSET';
 | 
|
 POP3_COMMAND_QUIT = 'QUIT';
 | 
|
 POP3_COMMAND_TOP  = 'TOP';
 | 
|
 POP3_COMMAND_UIDL = 'UIDL';
 | 
|
 POP3_COMMAND_USER = 'USER';
 | 
|
 POP3_COMMAND_PASS = 'PASS';
 | 
|
 POP3_COMMAND_APOP = 'APOP';
 | 
|
 
POP3 string constants 
 POP3_STRING_*  POP3_STRING_SUCCESS = '+OK ';
 | 
|
 POP3_STRING_FAILURE = '-ERR ';
 | 
|
 POP3_STRING_COMPLETE = '.';
 | 
|
 POP3_STRING_SIGNON = 'Ultibo POP3 server (version ' + ULTIBO_RELEASE_VERSION + ')';
 | 
|
 POP3_STRING_SIGNOFF = 'Ultibo POP3 server closing connection';
 | 
|
 POP3_STRING_EMPTY_STAT = '0 0';
 | 
|
 POP3_STRING_EMPTY_LIST = '0 messages (0 octets)';
 | 
|
 POP3_STRING_BAD_COMMAND = 'Bad command';
 | 
|
 POP3_STRING_BAD_MESSAGE = 'No such message';
 | 
|
 POP3_STRING_BAD_USERNAME = 'Invalid username or password';
 | 
|
 POP3_STRING_BAD_PASSWORD = 'Invalid username or password';
 | 
|
 POP3_STRING_NO_PERMISSION = 'Permission denied';
 | 
|
 
POP3 logging constants 
 POP3_LOG_*  POP3_LOG_LEVEL_DEBUG = LOG_LEVEL_DEBUG;
 | 
POP3 debugging messages | 
 POP3_LOG_LEVEL_INFO = LOG_LEVEL_INFO;
 | 
POP3 informational messages | 
 POP3_LOG_LEVEL_ERROR = LOG_LEVEL_ERROR;
 | 
POP3 error messages | 
 POP3_LOG_LEVEL_NONE = LOG_LEVEL_NONE;
 | 
No POP3 messages | 
Type definitions
To be documented
Public variables
To be documented
Function declarations
Initialization functions
procedure POP3Init;
Description: To be documented
| Note | None documented | 
|---|
POP3 helper functions
procedure POP3Log(Level:LongWord; const AText:String);
Description: To be documented
| Note | None documented | 
|---|
procedure POP3LogInfo(const AText:String);
Description: To be documented
| Note | None documented | 
|---|
procedure POP3LogError(const AText:String);
Description: To be documented
| Note | None documented | 
|---|
procedure POP3LogDebug(const AText:String);
Description: To be documented
| Note | None documented | 
|---|
Return to Unit Reference