mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 01:31:58 +01:00
freebsd fixes
This commit is contained in:
parent
537641afd9
commit
6d3d61374c
7
configure
vendored
7
configure
vendored
@ -4629,6 +4629,8 @@ fi
|
|||||||
|
|
||||||
if test "$os" = "FreeBSD"; then
|
if test "$os" = "FreeBSD"; then
|
||||||
defs="$defs -DFREEBSD"
|
defs="$defs -DFREEBSD"
|
||||||
|
antispam_libs="-lz -lm -lcrypto -lssl"
|
||||||
|
MAKE="gmake"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$os" = "Linux"; then
|
if test "$os" = "Linux"; then
|
||||||
@ -4714,7 +4716,12 @@ cat >>confdefs.h <<_ACEOF
|
|||||||
#define HAVE_LIBWRAP 1
|
#define HAVE_LIBWRAP 1
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
|
|
||||||
|
if test "$os" = "FreeBSD"; then
|
||||||
|
antispam_libs="$antispam_libs -lwrap"
|
||||||
|
else
|
||||||
antispam_libs="$antispam_libs -lwrap -lnsl"
|
antispam_libs="$antispam_libs -lwrap -lnsl"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "tcpwrappers support: no"
|
echo "tcpwrappers support: no"
|
||||||
fi
|
fi
|
||||||
|
@ -356,6 +356,8 @@ dnl let us know if we are building on FreeBSD
|
|||||||
|
|
||||||
if test "$os" = "FreeBSD"; then
|
if test "$os" = "FreeBSD"; then
|
||||||
defs="$defs -DFREEBSD"
|
defs="$defs -DFREEBSD"
|
||||||
|
antispam_libs="-lz -lm -lcrypto -lssl"
|
||||||
|
MAKE="gmake"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$os" = "Linux"; then
|
if test "$os" = "Linux"; then
|
||||||
@ -424,7 +426,12 @@ fi
|
|||||||
if test "$have_tcpwrappers" = "yes"; then
|
if test "$have_tcpwrappers" = "yes"; then
|
||||||
echo "tcpwrappers support: yes"
|
echo "tcpwrappers support: yes"
|
||||||
AC_DEFINE_UNQUOTED(HAVE_LIBWRAP, 1, [tcpwrappers support])
|
AC_DEFINE_UNQUOTED(HAVE_LIBWRAP, 1, [tcpwrappers support])
|
||||||
|
|
||||||
|
if test "$os" = "FreeBSD"; then
|
||||||
|
antispam_libs="$antispam_libs -lwrap"
|
||||||
|
else
|
||||||
antispam_libs="$antispam_libs -lwrap -lnsl"
|
antispam_libs="$antispam_libs -lwrap -lnsl"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "tcpwrappers support: no"
|
echo "tcpwrappers support: no"
|
||||||
fi
|
fi
|
||||||
|
@ -130,7 +130,7 @@ int import_from_maildir(char *directory, struct session_data *sdata, struct __da
|
|||||||
|
|
||||||
|
|
||||||
int import_from_imap_server(char *imapserver, char *username, char *password, struct session_data *sdata, struct __data *data, struct __config *cfg){
|
int import_from_imap_server(char *imapserver, char *username, char *password, struct session_data *sdata, struct __data *data, struct __config *cfg){
|
||||||
int rc=ERR, ret=OK, sd, seq=1;
|
int rc=ERR, ret=OK, sd, seq=1, result;
|
||||||
char *p, puf[MAXBUFSIZE];
|
char *p, puf[MAXBUFSIZE];
|
||||||
char folders[MAXBUFSIZE];
|
char folders[MAXBUFSIZE];
|
||||||
|
|
||||||
@ -151,7 +151,7 @@ int import_from_imap_server(char *imapserver, char *username, char *password, st
|
|||||||
p = &folders[0];
|
p = &folders[0];
|
||||||
do {
|
do {
|
||||||
memset(puf, 0, sizeof(puf));
|
memset(puf, 0, sizeof(puf));
|
||||||
p = split(p, '\n', puf, sizeof(puf)-1);
|
p = split(p, '\n', puf, sizeof(puf)-1, &result);
|
||||||
|
|
||||||
printf("processing folder: %s... ", puf);
|
printf("processing folder: %s... ", puf);
|
||||||
|
|
||||||
|
@ -229,7 +229,7 @@ int import_from_maildir(char *directory, struct session_data *sdata, struct __da
|
|||||||
|
|
||||||
|
|
||||||
int import_from_imap_server(char *imapserver, char *username, char *password, struct session_data *sdata, struct __data *data, char *skiplist, struct __config *cfg){
|
int import_from_imap_server(char *imapserver, char *username, char *password, struct session_data *sdata, struct __data *data, char *skiplist, struct __config *cfg){
|
||||||
int rc=ERR, ret=OK, sd, seq=1, skipmatch;
|
int rc=ERR, ret=OK, sd, seq=1, skipmatch, result;
|
||||||
char *p, puf[SMALLBUFSIZE];
|
char *p, puf[SMALLBUFSIZE];
|
||||||
char *q, muf[SMALLBUFSIZE];
|
char *q, muf[SMALLBUFSIZE];
|
||||||
char folders[MAXBUFSIZE];
|
char folders[MAXBUFSIZE];
|
||||||
@ -251,7 +251,7 @@ int import_from_imap_server(char *imapserver, char *username, char *password, st
|
|||||||
p = &folders[0];
|
p = &folders[0];
|
||||||
do {
|
do {
|
||||||
memset(puf, 0, sizeof(puf));
|
memset(puf, 0, sizeof(puf));
|
||||||
p = split(p, '\n', puf, sizeof(puf)-1);
|
p = split(p, '\n', puf, sizeof(puf)-1, &result);
|
||||||
|
|
||||||
if(strlen(puf) < 1) continue;
|
if(strlen(puf) < 1) continue;
|
||||||
|
|
||||||
@ -261,7 +261,7 @@ int import_from_imap_server(char *imapserver, char *username, char *password, st
|
|||||||
q = skiplist;
|
q = skiplist;
|
||||||
do {
|
do {
|
||||||
memset(muf, 0, sizeof(muf));
|
memset(muf, 0, sizeof(muf));
|
||||||
q = split(q, ',', muf, sizeof(muf)-1);
|
q = split(q, ',', muf, sizeof(muf)-1, &result);
|
||||||
if(strncasecmp(puf, muf, strlen(muf)) == 0){
|
if(strncasecmp(puf, muf, strlen(muf)) == 0){
|
||||||
skipmatch = 1;
|
skipmatch = 1;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user