tfPop3GetSessionOption

Jump to: navigation, search

Table of Contents >> Optional Protocols >> POP3


#include <trsocket.h>


int tfPop3GetSessionOption (
ttPop3ClientHandle pop3Handle,
int optionName
);


Function Description

This function is used to set POP3 client session options.


Parameters

  • pop3Handle
    The POP3 session handle.
  • optionName
    The name of the option to get (see below).


Returns

  • (optionValue)
    The specified option value will be returned (see below).


POP3 session options

optionName optionValue
TM_POP3_OPTNAME_BLOCKINGMODE TM_BLOCKING_ON or TM_BLOCKING_OFF.
TM_POP3_OPTNAME_APOP 1: Use APOP

0: Do not use APOP

Currently we do not support APOP.

TM_POP3_OPTNAME_LOGINLENGTH Total length of the username and password, including the null terminator.
TM_POP3_OPTNAME_TIMEOUT The timeout value.
TM_POP3_OPTNAME_CACHEMESSAGE The number of messages to cache the size for.


Table of Contents >> Optional Protocols >> POP3