-I$(top_srcdir)/src/lib-mail \
-I$(top_srcdir)/src/lib-settings \
-I$(top_srcdir)/src/lib-master \
+ -I$(top_srcdir)/src/lib-pop3 \
-DPKG_RUNDIR=\""$(rundir)"\" \
-DPKG_STATEDIR=\""$(statedir)"\" \
-DPKG_LIBEXECDIR=\""$(pkglibexecdir)"\" \
print '#include "hash-method.h"'."\n";
print '#include "settings-parser.h"'."\n";
print '#include "message-header-parser.h"'."\n";
+print '#include "pop3-protocol.h"'."\n";
print '#include "all-settings.h"'."\n";
print '#include <stddef.h>'."\n";
print '#include <unistd.h>'."\n";
headers = \
- pop3-capability.h
+ pop3-capability.h \
+ pop3-protocol.h
pkginc_libdir=$(pkgincludedir)
pkginc_lib_HEADERS = $(headers)
--- /dev/null
+#ifndef POP3_PROTOCOL_H
+#define POP3_PROTOCOL_H
+
+#define POP3_DEFAULT_PORT 110
+#define POP3S_DEFAULT_PORT 995
+
+#endif
#include "str.h"
#include "strescape.h"
#include "master-service.h"
+#include "pop3-protocol.h"
#include "client.h"
#include "client-authenticate.h"
#include "auth-client.h"
static struct login_binary pop3_login_binary = {
.protocol = "pop3",
.process_name = "pop3-login",
- .default_port = 110,
- .default_ssl_port = 995,
+ .default_port = POP3_DEFAULT_PORT,
+ .default_ssl_port = POP3S_DEFAULT_PORT,
.event_category = {
.name = "pop3",
#include "settings-parser.h"
#include "service-settings.h"
#include "login-settings.h"
+#include "pop3-protocol.h"
#include "pop3-login-settings.h"
#include <stddef.h>
/* <settings checks> */
static struct inet_listener_settings pop3_login_inet_listeners_array[] = {
- { .name = "pop3", .address = "", .port = 110 },
- { .name = "pop3s", .address = "", .port = 995, .ssl = TRUE }
+ { .name = "pop3", .address = "", .port = POP3_DEFAULT_PORT },
+ { .name = "pop3s", .address = "", .port = POP3S_DEFAULT_PORT,
+ .ssl = TRUE }
};
static struct inet_listener_settings *pop3_login_inet_listeners[] = {
&pop3_login_inet_listeners_array[0],