1 |
#include <string.h> |
#include <string.h> |
2 |
#include <errno.h> |
#include <errno.h> |
3 |
#include <unistd.h> |
#include <unistd.h> |
4 |
|
#include <sys/time.h> |
5 |
#include <sys/types.h> |
#include <sys/types.h> |
6 |
#include <sys/socket.h> |
#include <sys/socket.h> |
7 |
#include <netinet/in.h> |
#include <netinet/in.h> |
43 |
error("imapfilter: create socket; %s\n", strerror(errno)); |
error("imapfilter: create socket; %s\n", strerror(errno)); |
44 |
return ERROR_NETWORK; |
return ERROR_NETWORK; |
45 |
} |
} |
|
|
|
46 |
if (!(he = gethostbyname(serv))) { |
if (!(he = gethostbyname(serv))) { |
47 |
error("imapfilter: get network host entry; %s\n", strerror(errno)); |
error("imapfilter: get network host entry; %s\n", strerror(errno)); |
48 |
close_connection(); |
close_connection(); |
59 |
close_connection(); |
close_connection(); |
60 |
return ERROR_NETWORK; |
return ERROR_NETWORK; |
61 |
} |
} |
|
|
|
62 |
log_info(LOG_SERVER, serv); |
log_info(LOG_SERVER, serv); |
63 |
|
|
64 |
#ifdef SSL_TLS |
#ifdef SSL_TLS |
70 |
#endif |
#endif |
71 |
|
|
72 |
info("Connected to %s.\n", serv); |
info("Connected to %s.\n", serv); |
73 |
|
|
74 |
return 0; |
return 0; |
75 |
} |
} |
76 |
|
|