Qsmtp
0.30dev
|
function to parse the EHLO greeting response More...
#include <qremote/greeting.h>
#include <log.h>
#include <netio.h>
#include <qremote/qremote.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
Functions | |
static int | cb_size (const char *more) |
static int | cb_auth (const char *more) |
int | esmtp_check_extension (const char *input) |
check if the line contains a known ESMTP extension More... | |
static void | errmsg_syntax (const char *phase) |
int | greeting (void) |
greet the server, try EHLO and fall back to HELO if needed More... | |
Variables | |
unsigned long | remotesize |
const char * | auth_mechs |
char | auth_mechs_copy [996] |
function to parse the EHLO greeting response
int esmtp_check_extension | ( | const char * | input | ) |
check if the line contains a known ESMTP extension
input | the line as sent by the server (ommitting the leading "250 " or "250-") |
0 | no known extension code was found |
-1 | a valid extension code was found, but the line had a parse error |
int greeting | ( | void | ) |
greet the server, try EHLO and fall back to HELO if needed
<0 | error code |
-EDONE | the server reply was syntactically correct, but an error response |
In case of incoming syntax errors the faulting line will be written to log.
const char* auth_mechs |
the AUTH mechanisms supported by the remote host
char auth_mechs_copy[996] |
copy of the AUTH mechanisms supported by the remote host, to avoid malloc()
unsigned long remotesize |
the maximum size allow by the remote host or 0 if unlimited or unknown