Giter Site home page Giter Site logo

pjstevns / dbmail Goto Github PK

View Code? Open in Web Editor NEW
78.0 27.0 33.0 32.89 MB

Fast and scalable email services

Home Page: http://www.dbmail.org

License: Other

Shell 8.14% PHP 0.36% Python 1.89% Makefile 4.20% C 83.83% C++ 0.14% Ruby 0.22% PLpgSQL 0.06% PLSQL 0.58% M4 0.51% Roff 0.07%

dbmail's Introduction

(c) 2004-2014 NFG Net Facilities Group BV, The Netherlands, [email protected]

(c) 2000-2005 IC&S, The Netherlands

What is it?

DBMail is a collection of programs that enables email to be stored in and retrieved from a database.

Read the INSTALL file for installation of DBMail.

Why is it useful?

  • it enables you to create mailboxes without the need of systemusers.

  • mail is more effeciently stored and therefore it can be inserted an retrieved much faster dan any regular system (DBMail is currently able to retrieve aprox. 250 mail messages per second)

  • It's scalable. You can run the dbmail programs on different servers talking to the same database(cluster).

  • It is more secure. There's no need to maintain system users or write to the filesystem. All this is done through the database.

Who created it?

Eelco van Beek [email protected] at first created a very sloppy version of this program which didn't work at all.

Because the DBMail mailing system is big he needed help. So he asked Roel [email protected], one of the people working with him at IC&S, to join in developing DBMail further.

In 2003 Ilja Booij joined IC&S to work on the 2.x version. During that time, Paul Stevens at NFG also joined the development team, initially to provide debian packaging, later to take over development of the 2.1 release. Aaron Stone also deserves special thanks for initiating the LDAP driver, maintaining the delivery chain and of course sieve support.

DBMail is now a community effort to create a fast, effecient and scalable database driven mailingsystem. Both IC&S and NFG are fully behind opensource and the GPL. Therefore DBMail has the GPL licence.

Both IC&S and NFG provide commercial support and consultancy for this product. For more information about this you can send an email to [email protected] and/or [email protected].

Disclaimer: IC&S nor NFG are responsible for any damages resulting from use of this software.

It should work with almost no problem. We have clients that run dbmail with more than 25.000 useraccounts. The system is stable.

How do i install it?

Check the different README files and the wiki pages on dbmail.org for detailed information and howtos.

Future

Check the website for further DBMail plans.

What kind of licence is DBMail?

DBMail uses the GPL version 2 licence.

It's included in the COPYING file.

dbmail's People

Contributors

alan-hicks avatar alyarskiy avatar axelsteiner avatar cjmayo avatar feurix avatar hleithner avatar jhcloos avatar michele-comitini avatar moveone avatar pjstevns avatar santa01 avatar serhii-pavlov avatar sodabrew avatar vampyre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dbmail's Issues

no build on fedora 26 with gmime 3.0

march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c -o sortnull.lo sortnull.c
/bin/sh ../../libtool --tag=CC --mode=compile gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I../.. -I../../src -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c -o authsql.lo authsql.c
libtool: compile: gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I../.. -I../../src -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c sortnull.c -o sortnull.o
libtool: compile: gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I../.. -I../../src -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c authsql.c -o authsql.o
authsql.c: In function 'user_get_deliver_to':
authsql.c:164:9: warning: variable 'd' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
GList *d = NULL;
^
authsql.c: In function 'auth_get_known_users':
authsql.c:60:10: warning: variable 'users' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
GList * users = NULL;
^~~~~
authsql.c: In function 'auth_get_known_aliases':
authsql.c:79:10: warning: variable 'aliases' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
GList * aliases = NULL;
^~~~~~~
authsql.c: In function 'auth_getclientid':
authsql.c:100:16: warning: variable 't' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
C c; R r; int t = TRUE;
^
authsql.c: In function 'auth_getmaxmailsize':
authsql.c:121:16: warning: variable 't' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
C c; R r; int t = TRUE;
^
authsql.c: In function 'auth_getencryption':
authsql.c:141:8: warning: variable 'res' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
char *res = NULL;
^~~
authsql.c: In function 'auth_change_password':
authsql.c:263:80: warning: argument 'enctype' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
int auth_change_password(uint64_t user_idnr, const char *new_pass, const char *enctype)
^~~~~~~
authsql.c: In function 'auth_md5_validate':
authsql.c:364:6: warning: variable 't' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
int t = FALSE;
^
authsql.c: In function 'auth_get_userid':
authsql.c:415:8: warning: variable 'result' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
char *result = NULL;
^~~~~~
authsql.c: In function 'auth_check_userid':
authsql.c:433:21: warning: variable 't' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
C c; R r; gboolean t = TRUE;
^
authsql.c: In function 'auth_removealias':
authsql.c:573:21: warning: variable 't' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
C c; S s; gboolean t = FALSE;
^
authsql.c: In function 'auth_removealias_ext':
authsql.c:593:21: warning: variable 't' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
C c; S s; gboolean t = FALSE;
^
authsql.c: In function 'auth_get_user_aliases':
authsql.c:614:9: warning: variable 'l' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
GList *l = NULL;
^
authsql.c: In function 'auth_get_aliases_ext':
authsql.c:638:9: warning: variable 'l' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
GList *l = NULL;
^
/bin/sh ../../libtool --tag=CC --mode=link gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -Wl,--as-needed -Wl,-z,now -Wl,-z,relro -Wl,-z,noexecstack -m64 -march=core2 -mtune=core2 -Os -fuse-ld=gold -fuse-linker-plugin -Wl,--export-dynamic -lgmodule-2.0 -lgthread-2.0 -pthread -lglib-2.0 -lgmime-3.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lm -lmhash -levent_pthreads -levent -lssl -lcrypto -lzdb -o libsort_null.la sortnull.lo
/bin/sh ../../libtool --tag=CC --mode=link gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -Wl,--as-needed -Wl,-z,now -Wl,-z,relro -Wl,-z,noexecstack -m64 -march=core2 -mtune=core2 -Os -fuse-ld=gold -fuse-linker-plugin -Wl,--export-dynamic -lgmodule-2.0 -lgthread-2.0 -pthread -lglib-2.0 -lgmime-3.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lm -lmhash -levent_pthreads -levent -lssl -lcrypto -lzdb -o libauth_sql.la -rpath /usr/lib64/dbmail authsql.lo -lcrypt
libtool: link: ar cru .libs/libsort_null.a sortnull.o
libtool: link: ar cru .libs/libauth_sql.a authsql.o
libtool: link: ranlib .libs/libsort_null.a
libtool: link: ranlib .libs/libauth_sql.a
libtool: link: ( cd ".libs" && rm -f "libsort_null.la" && ln -s "../libsort_null.la" "libsort_null.la" )
libtool: link: ( cd ".libs" && rm -f "libauth_sql.la" && ln -s "../libauth_sql.la" "libauth_sql.la" )
make[3]: Leaving directory '/data/dokuments/rpmbuild/BUILD/dbmail-3.2.3/src/modules'
make[3]: Entering directory '/data/dokuments/rpmbuild/BUILD/dbmail-3.2.3/src'
/bin/sh ../libtool --tag=CC --mode=compile gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR='"/etc"' -DLIBDIR='"/usr/lib64"' -DLOCALSTATEDIR='"/var"' -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c -o libdbmail_la-dm_user.lo test -f 'dm_user.c' || echo './'dm_user.c
/bin/sh ../libtool --tag=CC --mode=compile gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR='"/etc"' -DLIBDIR='"/usr/lib64"' -DLOCALSTATEDIR='"/var"' -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c -o libdbmail_la-dm_message.lo test -f 'dm_message.c' || echo './'dm_message.c
/bin/sh ../libtool --tag=CC --mode=compile gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR='"/etc"' -DLIBDIR='"/usr/lib64"' -DLOCALSTATEDIR='"/var"' -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c -o libdbmail_la-dm_mailbox.lo test -f 'dm_mailbox.c' || echo './'dm_mailbox.c
/bin/sh ../libtool --tag=CC --mode=compile gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR='"/etc"' -DLIBDIR='"/usr/lib64"' -DLOCALSTATEDIR='"/var"' -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c -o libdbmail_la-dm_mailboxstate.lo test -f 'dm_mailboxstate.c' || echo './'dm_mailboxstate.c
/bin/sh ../libtool --tag=CC --mode=compile gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR='"/etc"' -DLIBDIR='"/usr/lib64"' -DLOCALSTATEDIR='"/var"' -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c -o libdbmail_la-dm_cram.lo test -f 'dm_cram.c' || echo './'dm_cram.c
/bin/sh ../libtool --tag=CC --mode=compile gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR='"/etc"' -DLIBDIR='"/usr/lib64"' -DLOCALSTATEDIR='"/var"' -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c -o libdbmail_la-dm_capa.lo test -f 'dm_capa.c' || echo './'dm_capa.c
/bin/sh ../libtool --tag=CC --mode=compile gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR='"/etc"' -DLIBDIR='"/usr/lib64"' -DLOCALSTATEDIR='"/var"' -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c -o libdbmail_la-dm_config.lo test -f 'dm_config.c' || echo './'dm_config.c
/bin/sh ../libtool --tag=CC --mode=compile gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR='"/etc"' -DLIBDIR='"/usr/lib64"' -DLOCALSTATEDIR='"/var"' -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c -o libdbmail_la-dm_debug.lo test -f 'dm_debug.c' || echo './'dm_debug.c
libtool: compile: gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR="/etc" -DLIBDIR="/usr/lib64" -DLOCALSTATEDIR="/var" -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c dm_user.c -o libdbmail_la-dm_user.o
libtool: compile: gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR="/etc" -DLIBDIR="/usr/lib64" -DLOCALSTATEDIR="/var" -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c dm_mailboxstate.c -o libdbmail_la-dm_mailboxstate.o
libtool: compile: gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR="/etc" -DLIBDIR="/usr/lib64" -DLOCALSTATEDIR="/var" -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c dm_config.c -o libdbmail_la-dm_config.o
libtool: compile: gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR="/etc" -DLIBDIR="/usr/lib64" -DLOCALSTATEDIR="/var" -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c dm_capa.c -o libdbmail_la-dm_capa.o
libtool: compile: gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR="/etc" -DLIBDIR="/usr/lib64" -DLOCALSTATEDIR="/var" -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c dm_message.c -o libdbmail_la-dm_message.o
dm_mailboxstate.c: In function 'MailboxState_hasPermission':
dm_mailboxstate.c:980:16: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
if (! result > 0)
^
dm_mailboxstate.c:980:7: note: add parentheses around left hand side expression to silence this warning
if (! result > 0)
^~~~~~~~
( )
dm_mailboxstate.c: In function '_update_recent':
dm_mailboxstate.c:1119:44: warning: argument 'slices' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
static long long int _update_recent(GList *slices, uint64_t seq)
^~~~~~
dm_user.c:37:19: warning: 'ValidChars' defined but not used [-Wunused-const-variable=]
static const char ValidChars[] =
^~~~~~~~~~
/bin/sh ../libtool --tag=CC --mode=compile gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR='"/etc"' -DLIBDIR='"/usr/lib64"' -DLOCALSTATEDIR='"/var"' -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c -o libdbmail_la-dm_list.lo test -f 'dm_list.c' || echo './'dm_list.c
/bin/sh ../libtool --tag=CC --mode=compile gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR='"/etc"' -DLIBDIR='"/usr/lib64"' -DLOCALSTATEDIR='"/var"' -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c -o libdbmail_la-dm_db.lo test -f 'dm_db.c' || echo './'dm_db.c
libtool: compile: gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR="/etc" -DLIBDIR="/usr/lib64" -DLOCALSTATEDIR="/var" -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c dm_debug.c -o libdbmail_la-dm_debug.o
libtool: compile: gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR="/etc" -DLIBDIR="/usr/lib64" -DLOCALSTATEDIR="/var" -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c dm_mailbox.c -o libdbmail_la-dm_mailbox.o
libtool: compile: gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR="/etc" -DLIBDIR="/usr/lib64" -DLOCALSTATEDIR="/var" -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c dm_cram.c -o libdbmail_la-dm_cram.o
/bin/sh ../libtool --tag=CC --mode=compile gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR='"/etc"' -DLIBDIR='"/usr/lib64"' -DLOCALSTATEDIR='"/var"' -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c -o libdbmail_la-dm_sievescript.lo test -f 'dm_sievescript.c' || echo './'dm_sievescript.c
/bin/sh ../libtool --tag=CC --mode=compile gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR='"/etc"' -DLIBDIR='"/usr/lib64"' -DLOCALSTATEDIR='"/var"' -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c -o libdbmail_la-dm_acl.lo test -f 'dm_acl.c' || echo './'dm_acl.c
dm_mailbox.c: In function 'dump_message_to_stream':
dm_mailbox.c:146:12: warning: implicit declaration of function 'internet_address_list_parse_string'; did you mean 'internet_address_list_to_string'? [-Wimplicit-function-declaration]
ialist = internet_address_list_parse_string(g_mime_message_get_sender(GMIME_MESSAGE(message->content)));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
internet_address_list_to_string
dm_mailbox.c:146:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
ialist = internet_address_list_parse_string(g_mime_message_get_sender(GMIME_MESSAGE(message->content)));
^
dm_mailbox.c: In function 'dbmail_mailbox_sorted_as_string':
dm_mailbox.c:478:24: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
if (! g_list_length(l)>0)
^
dm_mailbox.c:478:6: note: add parentheses around left hand side expression to silence this warning
if (! g_list_length(l)>0)
^~~~~~~~~~~~~~~~~~
( )
dm_mailbox.c: In function '_mimeparts_dump':
dm_mailbox.c:184:6: warning: variable 'count' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
int count = 0;
^~~~~
dm_mailbox.c: In function 'dbmail_mailbox_orderedsubject':
dm_mailbox.c:302:8: warning: variable 'res' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
char *res = NULL;
^~~
dm_mailbox.c: In function 'mailbox_search':
dm_mailbox.c:1309:41: warning: '%s' directive output may be truncated writing up to 2047 bytes into a region of size 254 [-Wformat-truncation=]
snprintf(partial, DEF_FRAGSIZE-1, "%%%s%%", s->search);
^~
dm_mailbox.c:1309:4: note: 'snprintf' output between 3 and 2050 bytes into a destination of size 255
snprintf(partial, DEF_FRAGSIZE-1, "%%%s%%", s->search);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_mailbox.c:1337:41: warning: '%s' directive output may be truncated writing up to 2047 bytes into a region of size 254 [-Wformat-truncation=]
snprintf(partial, DEF_FRAGSIZE-1, "%%%s%%", s->search);
^~
dm_mailbox.c:1337:4: note: 'snprintf' output between 3 and 2050 bytes into a destination of size 255
snprintf(partial, DEF_FRAGSIZE-1, "%%%s%%", s->search);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_mailbox.c:1381:41: warning: '%s' directive output may be truncated writing up to 2047 bytes into a region of size 254 [-Wformat-truncation=]
snprintf(partial, DEF_FRAGSIZE-1, "%%%s%%", s->search);
^~
dm_mailbox.c:1381:4: note: 'snprintf' output between 3 and 2050 bytes into a destination of size 255
snprintf(partial, DEF_FRAGSIZE-1, "%%%s%%", s->search);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_mailbox.c:1227:8: warning: variable 'inset' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
char *inset = NULL;
^~~~~
/bin/sh ../libtool --tag=CC --mode=compile gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR='"/etc"' -DLIBDIR='"/usr/lib64"' -DLOCALSTATEDIR='"/var"' -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c -o libdbmail_la-dm_misc.lo test -f 'dm_misc.c' || echo './'dm_misc.c
/bin/sh ../libtool --tag=CC --mode=compile gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR='"/etc"' -DLIBDIR='"/usr/lib64"' -DLOCALSTATEDIR='"/var"' -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c -o libdbmail_la-dm_pidfile.lo test -f 'dm_pidfile.c' || echo './'dm_pidfile.c
/bin/sh ../libtool --tag=CC --mode=compile gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR='"/etc"' -DLIBDIR='"/usr/lib64"' -DLOCALSTATEDIR='"/var"' -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c -o libdbmail_la-dm_digest.lo test -f 'dm_digest.c' || echo './'dm_digest.c
libtool: compile: gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR="/etc" -DLIBDIR="/usr/lib64" -DLOCALSTATEDIR="/var" -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c dm_list.c -o libdbmail_la-dm_list.o
libtool: compile: gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR="/etc" -DLIBDIR="/usr/lib64" -DLOCALSTATEDIR="/var" -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c dm_db.c -o libdbmail_la-dm_db.o
libtool: compile: gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR="/etc" -DLIBDIR="/usr/lib64" -DLOCALSTATEDIR="/var" -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c dm_acl.c -o libdbmail_la-dm_acl.o
dm_db.c: In function 'db_query':
dm_db.c:401:14: warning: variable 'r' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
ResultSet_T r = NULL;
^
dm_db.c: In function 'message_get_size':
dm_db.c:2912:11: warning: variable 'size' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
uint64_t size = 0;
^~~~
dm_db.c: In function 'mailboxes_by_regex':
dm_db.c:2167:11: warning: variable 'qs' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
GString *qs = NULL;
^~
dm_db.c:2168:6: warning: variable 'n_rows' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
int n_rows = 0;
^~~~~~
dm_db.c: In function 'db_use_usermap':
dm_db.c:1050:6: warning: variable 'use_usermap' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
int use_usermap = TRUE;
^~~~~~~~~~~
dm_db.c: In function 'dm_quota_rebuild_user':
dm_db.c:1217:11: warning: variable 'quotum' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
uint64_t quotum = 0;
^~~~~~
dm_db.c: In function 'dm_quota_rebuild':
dm_db.c:1260:6: warning: variable 'i' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
int i = 0;
^
dm_db.c: In function 'db_get_useridnr':
dm_db.c:1378:11: warning: variable 'user_idnr' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
uint64_t user_idnr = 0;
^~~~~~~~~
dm_db.c: In function 'db_log_ip':
dm_db.c:1400:11: warning: variable 'id' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
uint64_t id = 0;
^~
dm_db.c: In function 'db_update_rfcsize':
dm_db.c:1695:30: warning: argument 'lost' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
int db_update_rfcsize(GList *lost)
^~~~
dm_db.c: In function 'db_update_pop':
dm_db.c:2014:11: warning: variable 'user_idnr' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
uint64_t user_idnr = 0;
^~~~~~~~~
dm_db.c: In function 'db_mailbox_has_message_id':
dm_db.c:2865:6: warning: variable 'rows' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
int rows = 0;
^~~~
dm_db.c: In function 'db_get_msgflag':
dm_db.c:3111:6: warning: variable 'val' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
int val = 0;
^~~
dm_db.c: In function 'db_empty_mailbox':
dm_db.c:1447:11: warning: variable 'i' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
unsigned i = 0;
^
dm_db.c:1448:6: warning: variable 'result' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
int result = 0;
^~~~~~
dm_db.c: In function 'db_getmailboxname':
dm_db.c:3012:8: warning: variable 'tmp_name' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
char *tmp_name = NULL, *tmp_fq_name;
^~~~~~~~
dm_db.c: In function 'db_usermap_resolve':
dm_db.c:3460:49: warning: '%s' directive output may be truncated writing up to 1025 bytes into a region of size 102 [-Wformat-truncation=]
snprintf(clientsock, DM_SOCKADDR_LEN-1, "inet:%s:%s", ci->dst_ip, ci->dst_port);
^~
dm_db.c:3460:3: note: 'snprintf' output between 7 and 1064 bytes into a destination of size 107
snprintf(clientsock, DM_SOCKADDR_LEN-1, "inet:%s:%s", ci->dst_ip, ci->dst_port);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_db.c:3445:14: warning: variable 'userid' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
const char *userid = NULL, *sockok = NULL, *sockno = NULL, *login = NULL;
^~~~~~
dm_db.c:3445:62: warning: variable 'login' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
const char *userid = NULL, *sockok = NULL, *sockno = NULL, *login = NULL;
^~~~~
dm_db.c:3446:11: warning: variable 'row' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
unsigned row = 0;
^~~
dm_db.c:3448:13: warning: variable 'bestscore' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
int score, bestscore = -1;
^~~~~~~~~
dm_db.c:3449:8: warning: variable 'bestlogin' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
char *bestlogin = NULL, *bestuserid = NULL;
^~~~~~~~~
dm_db.c:3449:27: warning: variable 'bestuserid' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
char *bestlogin = NULL, *bestuserid = NULL;
^~~~~~~~~~
dm_db.c: In function 'db_user_validate':
dm_db.c:3654:6: warning: variable 'is_validated' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
int is_validated = 0;
^~~~~~~~~~~~
dm_db.c:3656:6: warning: variable 't' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
int t = FALSE;
^
/bin/sh ../libtool --tag=CC --mode=compile gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR='"/etc"' -DLIBDIR='"/usr/lib64"' -DLOCALSTATEDIR='"/var"' -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c -o libdbmail_la-dm_match.lo test -f 'dm_match.c' || echo './'dm_match.c
libtool: compile: gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR="/etc" -DLIBDIR="/usr/lib64" -DLOCALSTATEDIR="/var" -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c dm_sievescript.c -o libdbmail_la-dm_sievescript.o
/bin/sh ../libtool --tag=CC --mode=compile gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR='"/etc"' -DLIBDIR='"/usr/lib64"' -DLOCALSTATEDIR='"/var"' -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c -o libdbmail_la-dm_iconv.lo test -f 'dm_iconv.c' || echo './'dm_iconv.c
/bin/sh ../libtool --tag=CC --mode=compile gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR='"/etc"' -DLIBDIR='"/usr/lib64"' -DLOCALSTATEDIR='"/var"' -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c -o libdbmail_la-dm_dsn.lo test -f 'dm_dsn.c' || echo './'dm_dsn.c
dm_sievescript.c: In function 'dm_sievescript_rename':
dm_sievescript.c:135:6: warning: variable 'active' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
int active = 0;
^~~~~~
libtool: compile: gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR="/etc" -DLIBDIR="/usr/lib64" -DLOCALSTATEDIR="/var" -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c dm_misc.c -o libdbmail_la-dm_misc.o
/bin/sh ../libtool --tag=CC --mode=compile gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR='"/etc"' -DLIBDIR='"/usr/lib64"' -DLOCALSTATEDIR='"/var"' -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c -o libdbmail_la-dm_sset.lo test -f 'dm_sset.c' || echo './'dm_sset.c
libtool: compile: gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR="/etc" -DLIBDIR="/usr/lib64" -DLOCALSTATEDIR="/var" -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c dm_digest.c -o libdbmail_la-dm_digest.o
libtool: compile: gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR="/etc" -DLIBDIR="/usr/lib64" -DLOCALSTATEDIR="/var" -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c dm_pidfile.c -o libdbmail_la-dm_pidfile.o
libtool: compile: gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR="/etc" -DLIBDIR="/usr/lib64" -DLOCALSTATEDIR="/var" -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c dm_iconv.c -o libdbmail_la-dm_iconv.o
libtool: compile: gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR="/etc" -DLIBDIR="/usr/lib64" -DLOCALSTATEDIR="/var" -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c dm_match.c -o libdbmail_la-dm_match.o
/bin/sh ../libtool --tag=CC --mode=compile gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR='"/etc"' -DLIBDIR='"/usr/lib64"' -DLOCALSTATEDIR='"/var"' -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c -o libdbmail_la-dm_string.lo test -f 'dm_string.c' || echo './'dm_string.c
/bin/sh ../libtool --tag=CC --mode=compile gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR='"/etc"' -DLIBDIR='"/usr/lib64"' -DLOCALSTATEDIR='"/var"' -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c -o libdbmail_la-mpool.lo test -f '../src/mpool/mpool.c' || echo './'../src/mpool/mpool.c
libtool: compile: gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR="/etc" -DLIBDIR="/usr/lib64" -DLOCALSTATEDIR="/var" -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c dm_dsn.c -o libdbmail_la-dm_dsn.o
libtool: compile: gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR="/etc" -DLIBDIR="/usr/lib64" -DLOCALSTATEDIR="/var" -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c dm_sset.c -o libdbmail_la-dm_sset.o
/bin/sh ../libtool --tag=CC --mode=compile gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR='"/etc"' -DLIBDIR='"/usr/lib64"' -DLOCALSTATEDIR='"/var"' -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c -o libdbmail_la-dm_mempool.lo test -f 'dm_mempool.c' || echo './'dm_mempool.c
/bin/sh ../libtool --tag=CC --mode=compile gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR='"/etc"' -DLIBDIR='"/usr/lib64"' -DLOCALSTATEDIR='"/var"' -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c -o libdbmail_la-server.lo test -f 'server.c' || echo './'server.c
/bin/sh ../libtool --tag=CC --mode=compile gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR='"/etc"' -DLIBDIR='"/usr/lib64"' -DLOCALSTATEDIR='"/var"' -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c -o libdbmail_la-clientsession.lo test -f 'clientsession.c' || echo './'clientsession.c
libtool: compile: gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR="/etc" -DLIBDIR="/usr/lib64" -DLOCALSTATEDIR="/var" -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c ../src/mpool/mpool.c -o libdbmail_la-mpool.o
libtool: compile: gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR="/etc" -DLIBDIR="/usr/lib64" -DLOCALSTATEDIR="/var" -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c dm_string.c -o libdbmail_la-dm_string.o
/bin/sh ../libtool --tag=CC --mode=compile gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR='"/etc"' -DLIBDIR='"/usr/lib64"' -DLOCALSTATEDIR='"/var"' -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c -o libdbmail_la-clientbase.lo test -f 'clientbase.c' || echo './'clientbase.c
libtool: compile: gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR="/etc" -DLIBDIR="/usr/lib64" -DLOCALSTATEDIR="/var" -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c dm_mempool.c -o libdbmail_la-dm_mempool.o
/bin/sh ../libtool --tag=CC --mode=compile gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR='"/etc"' -DLIBDIR='"/usr/lib64"' -DLOCALSTATEDIR='"/var"' -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c -o libdbmail_la-dm_tls.lo test -f 'dm_tls.c' || echo './'dm_tls.c
libtool: compile: gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR="/etc" -DLIBDIR="/usr/lib64" -DLOCALSTATEDIR="/var" -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c server.c -o libdbmail_la-server.o
libtool: compile: gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR="/etc" -DLIBDIR="/usr/lib64" -DLOCALSTATEDIR="/var" -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c clientsession.c -o libdbmail_la-clientsession.o
libtool: compile: gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR="/etc" -DLIBDIR="/usr/lib64" -DLOCALSTATEDIR="/var" -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c dm_tls.c -o libdbmail_la-dm_tls.o
libtool: compile: gcc -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -DHAVE_CONFIG_H -I. -I.. -I.. -DSYSCONFDIR="/etc" -DLIBDIR="/usr/lib64" -DLOCALSTATEDIR="/var" -m64 -march=core2 -mtune=core2 -Os -fPIC -fuse-ld=gold -fuse-linker-plugin -I/usr/include/zdb -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes -c clientbase.c -o libdbmail_la-clientbase.o
dm_iconv.c: In function 'dbmail_iconv_db_to_utf7':
dm_iconv.c:198:44: warning: passing argument 1 of 'g_mime_utils_header_encode_text' from incompatible pointer type [-Wincompatible-pointer-types]
subj2 = g_mime_utils_header_encode_text((const char *)subj);
^
In file included from /usr/include/gmime-3.0/gmime/gmime-data-wrapper.h:31:0,
from /usr/include/gmime-3.0/gmime/gmime.h:34,
from dbmail.h:53,
from dm_iconv.c:23:
/usr/include/gmime-3.0/gmime/gmime-utils.h:58:7: note: expected 'GMimeFormatOptions * {aka struct _GMimeFormatOptions *}' but argument is of type 'const char *'
char *g_mime_utils_header_encode_text (GMimeFormatOptions *options, const char *text, const char *charset);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_iconv.c:198:12: error: too few arguments to function 'g_mime_utils_header_encode_text'
subj2 = g_mime_utils_header_encode_text((const char *)subj);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gmime-3.0/gmime/gmime-data-wrapper.h:31:0,
from /usr/include/gmime-3.0/gmime/gmime.h:34,
from dbmail.h:53,
from dm_iconv.c:23:
/usr/include/gmime-3.0/gmime/gmime-utils.h:58:7: note: declared here
char *g_mime_utils_header_encode_text (GMimeFormatOptions *options, const char *text, const char *charset);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_iconv.c:204:41: warning: passing argument 1 of 'g_mime_utils_header_encode_text' from incompatible pointer type [-Wincompatible-pointer-types]
return g_mime_utils_header_encode_text(str_in);
^~~~~~
In file included from /usr/include/gmime-3.0/gmime/gmime-data-wrapper.h:31:0,
from /usr/include/gmime-3.0/gmime/gmime.h:34,
from dbmail.h:53,
from dm_iconv.c:23:
/usr/include/gmime-3.0/gmime/gmime-utils.h:58:7: note: expected 'GMimeFormatOptions * {aka struct _GMimeFormatOptions *}' but argument is of type 'const char *'
char *g_mime_utils_header_encode_text (GMimeFormatOptions *options, const char *text, const char *charset);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_iconv.c:204:9: error: too few arguments to function 'g_mime_utils_header_encode_text'
return g_mime_utils_header_encode_text(str_in);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gmime-3.0/gmime/gmime-data-wrapper.h:31:0,
from /usr/include/gmime-3.0/gmime/gmime.h:34,
from dbmail.h:53,
from dm_iconv.c:23:
/usr/include/gmime-3.0/gmime/gmime-utils.h:58:7: note: declared here
char *g_mime_utils_header_encode_text (GMimeFormatOptions *options, const char *text, const char *charset);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_iconv.c: In function 'dbmail_iconv_decode_text':
dm_iconv.c:209:41: warning: passing argument 1 of 'g_mime_utils_header_decode_text' from incompatible pointer type [-Wincompatible-pointer-types]
return g_mime_utils_header_decode_text(in);
^~
In file included from /usr/include/gmime-3.0/gmime/gmime-data-wrapper.h:31:0,
from /usr/include/gmime-3.0/gmime/gmime.h:34,
from dbmail.h:53,
from dm_iconv.c:23:
/usr/include/gmime-3.0/gmime/gmime-utils.h:57:7: note: expected 'GMimeParserOptions * {aka struct _GMimeParserOptions *}' but argument is of type 'const char *'
char *g_mime_utils_header_decode_text (GMimeParserOptions *options, const char *text);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_iconv.c:209:9: error: too few arguments to function 'g_mime_utils_header_decode_text'
return g_mime_utils_header_decode_text(in);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gmime-3.0/gmime/gmime-data-wrapper.h:31:0,
from /usr/include/gmime-3.0/gmime/gmime.h:34,
from dbmail.h:53,
from dm_iconv.c:23:
/usr/include/gmime-3.0/gmime/gmime-utils.h:57:7: note: declared here
char *g_mime_utils_header_decode_text (GMimeParserOptions *options, const char *text);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_iconv.c: In function 'dbmail_iconv_decode_address':
dm_iconv.c:213:43: warning: passing argument 1 of 'g_mime_utils_header_decode_phrase' from incompatible pointer type [-Wincompatible-pointer-types]
return g_mime_utils_header_decode_phrase(address);
^~~~~~~
In file included from /usr/include/gmime-3.0/gmime/gmime-data-wrapper.h:31:0,
from /usr/include/gmime-3.0/gmime/gmime.h:34,
from dbmail.h:53,
from dm_iconv.c:23:
/usr/include/gmime-3.0/gmime/gmime-utils.h:60:7: note: expected 'GMimeParserOptions * {aka struct _GMimeParserOptions *}' but argument is of type 'char *'
char *g_mime_utils_header_decode_phrase (GMimeParserOptions *options, const char *phrase);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_iconv.c:213:9: error: too few arguments to function 'g_mime_utils_header_decode_phrase'
return g_mime_utils_header_decode_phrase(address);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gmime-3.0/gmime/gmime-data-wrapper.h:31:0,
from /usr/include/gmime-3.0/gmime/gmime.h:34,
from dbmail.h:53,
from dm_iconv.c:23:
/usr/include/gmime-3.0/gmime/gmime-utils.h:60:7: note: declared here
char *g_mime_utils_header_decode_phrase (GMimeParserOptions *options, const char *phrase);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_iconv.c: In function 'dbmail_iconv_db_to_utf7':
dm_iconv.c:205:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
dm_iconv.c: In function 'dbmail_iconv_decode_text':
dm_iconv.c:210:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
dm_iconv.c: In function 'dbmail_iconv_decode_address':
dm_iconv.c:214:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[3]: *** [Makefile:2467: libdbmail_la-dm_iconv.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
dm_misc.c: In function 'g_tree_merge':
dm_misc.c:1032:27: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
if (! g_tree_nnodes(a) > 0)
^
dm_misc.c:1032:8: note: add parentheses around left hand side expression to silence this warning
if (! g_tree_nnodes(a) > 0)
^~~~~~~~~~~~~~~~~~
( )
dm_misc.c:1056:27: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
if (! g_tree_nnodes(b) > 0)
^
dm_misc.c:1056:8: note: add parentheses around left hand side expression to silence this warning
if (! g_tree_nnodes(b) > 0)
^~~~~~~~~~~~~~~~~~
( )
dm_misc.c:1084:27: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
if (! g_tree_nnodes(b) > 0)
^
dm_misc.c:1084:8: note: add parentheses around left hand side expression to silence this warning
if (! g_tree_nnodes(b) > 0)
^~~~~~~~~~~~~~~~~~
( )
dm_misc.c: In function 'imap_append_hash_as_string':
dm_misc.c:1408:46: warning: passing argument 1 of 'g_mime_utils_header_encode_text' from incompatible pointer type [-Wincompatible-pointer-types]
clean1 = g_mime_utils_header_encode_text(clean2);
^~~~~~
In file included from /usr/include/gmime-3.0/gmime/gmime-data-wrapper.h:31:0,
from /usr/include/gmime-3.0/gmime/gmime.h:34,
from dbmail.h:53,
from dm_misc.c:26:
/usr/include/gmime-3.0/gmime/gmime-utils.h:58:7: note: expected 'GMimeFormatOptions * {aka struct _GMimeFormatOptions *}' but argument is of type 'char *'
char *g_mime_utils_header_encode_text (GMimeFormatOptions *options, const char *text, const char *charset);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_misc.c:1408:14: error: too few arguments to function 'g_mime_utils_header_encode_text'
clean1 = g_mime_utils_header_encode_text(clean2);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gmime-3.0/gmime/gmime-data-wrapper.h:31:0,
from /usr/include/gmime-3.0/gmime/gmime.h:34,
from dbmail.h:53,
from dm_misc.c:26:
/usr/include/gmime-3.0/gmime/gmime-utils.h:58:7: note: declared here
char *g_mime_utils_header_encode_text (GMimeFormatOptions *options, const char *text, const char *charset);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_misc.c: In function 'imap_append_disposition_as_string':
dm_misc.c:1451:17: warning: implicit declaration of function 'g_mime_content_disposition_new_from_string'; did you mean 'g_mime_content_disposition_get_parameter'? [-Wimplicit-function-declaration]
disposition = g_mime_content_disposition_new_from_string(disp);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
g_mime_content_disposition_get_parameter
dm_misc.c:1451:15: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
disposition = g_mime_content_disposition_new_from_string(disp);
^
dm_misc.c: In function 'dbmail_imap_append_alist_as_plist':
dm_misc.c:1791:56: warning: passing argument 1 of 'g_mime_utils_header_encode_phrase' from incompatible pointer type [-Wincompatible-pointer-types]
char * encname = g_mime_utils_header_encode_phrase(name);
^~~~
In file included from /usr/include/gmime-3.0/gmime/gmime-data-wrapper.h:31:0,
from /usr/include/gmime-3.0/gmime/gmime.h:34,
from dbmail.h:53,
from dm_misc.c:26:
/usr/include/gmime-3.0/gmime/gmime-utils.h:61:7: note: expected 'GMimeFormatOptions * {aka struct _GMimeFormatOptions *}' but argument is of type 'const char *'
char *g_mime_utils_header_encode_phrase (GMimeFormatOptions *options, const char *phrase, const char *charset);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_misc.c:1791:22: error: too few arguments to function 'g_mime_utils_header_encode_phrase'
char * encname = g_mime_utils_header_encode_phrase(name);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gmime-3.0/gmime/gmime-data-wrapper.h:31:0,
from /usr/include/gmime-3.0/gmime/gmime.h:34,
from dbmail.h:53,
from dm_misc.c:26:
/usr/include/gmime-3.0/gmime/gmime-utils.h:61:7: note: declared here
char *g_mime_utils_header_encode_phrase (GMimeFormatOptions *options, const char *phrase, const char *charset);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_misc.c: In function 'envelope_address_part':
dm_misc.c:1917:11: warning: implicit declaration of function 'internet_address_list_parse_string'; did you mean 'internet_address_list_to_string'? [-Wimplicit-function-declaration]
alist = internet_address_list_parse_string(t);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
internet_address_list_to_string
dm_misc.c:1917:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
alist = internet_address_list_parse_string(t);
^
dm_misc.c: In function 'imap_get_envelope':
dm_misc.c:1976:11: warning: implicit declaration of function 'g_mime_message_get_date_as_string'; did you mean 'g_mime_message_get_date'? [-Wimplicit-function-declaration]
result = g_mime_message_get_date_as_string(message);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
g_mime_message_get_date
dm_misc.c:1976:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
result = g_mime_message_get_date_as_string(message);
^
dm_misc.c:1995:40: warning: passing argument 1 of 'g_mime_utils_header_encode_text' from incompatible pointer type [-Wincompatible-pointer-types]
s = g_mime_utils_header_encode_text((const char *)subj);
^
In file included from /usr/include/gmime-3.0/gmime/gmime-data-wrapper.h:31:0,
from /usr/include/gmime-3.0/gmime/gmime.h:34,
from dbmail.h:53,
from dm_misc.c:26:
/usr/include/gmime-3.0/gmime/gmime-utils.h:58:7: note: expected 'GMimeFormatOptions * {aka struct _GMimeFormatOptions *}' but argument is of type 'const char *'
char *g_mime_utils_header_encode_text (GMimeFormatOptions *options, const char *text, const char *charset);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_misc.c:1995:8: error: too few arguments to function 'g_mime_utils_header_encode_text'
s = g_mime_utils_header_encode_text((const char *)subj);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gmime-3.0/gmime/gmime-data-wrapper.h:31:0,
from /usr/include/gmime-3.0/gmime/gmime.h:34,
from dbmail.h:53,
from dm_misc.c:26:
/usr/include/gmime-3.0/gmime/gmime-utils.h:58:7: note: declared here
char *g_mime_utils_header_encode_text (GMimeFormatOptions *options, const char *text, const char *charset);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_misc.c: In function 'imap_get_logical_part':
dm_misc.c:2076:7: error: too few arguments to function 'g_mime_object_get_headers'
t = g_mime_object_get_headers(GMIME_OBJECT(object));
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gmime-3.0/gmime/gmime.h:35:0,
from dbmail.h:53,
from dm_misc.c:26:
/usr/include/gmime-3.0/gmime/gmime-object.h:133:7: note: declared here
char *g_mime_object_get_headers (GMimeObject *object, GMimeFormatOptions *options);
^~~~~~~~~~~~~~~~~~~~~~~~~
dm_misc.c:2083:8: error: too few arguments to function 'g_mime_object_to_string'
t = g_mime_object_to_string(GMIME_OBJECT(object));
^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gmime-3.0/gmime/gmime.h:35:0,
from dbmail.h:53,
from dm_misc.c:26:
/usr/include/gmime-3.0/gmime/gmime-object.h:136:7: note: declared here
char *g_mime_object_to_string (GMimeObject *object, GMimeFormatOptions *options);
^~~~~~~~~~~~~~~~~~~~~~~
dm_misc.c: In function 'dm_shellesc':
dm_misc.c:1222:24: warning: this statement may fall through [-Wimplicit-fallthrough=]
safe_command[end++] = '\';
~~~~~~~~~~~~~~~~~~~~^~~~~~
dm_misc.c:1223:3: note: here
default:
^~~~~~~
make[3]: *** [Makefile:2439: libdbmail_la-dm_misc.lo] Error 1
dm_message.c: In function 'g_mime_object_get_body':
dm_message.c:94:6: error: too few arguments to function 'g_mime_object_to_string'
s = g_mime_object_to_string(GMIME_OBJECT(object));
^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gmime-3.0/gmime/gmime.h:35:0,
from dbmail.h:53,
from dm_message.c:25:
/usr/include/gmime-3.0/gmime/gmime-object.h:136:7: note: declared here
char *g_mime_object_to_string (GMimeObject *object, GMimeFormatOptions *options);
^~~~~~~~~~~~~~~~~~~~~~~
dm_message.c: In function 'find_type':
dm_message.c:332:9: warning: implicit declaration of function 'g_mime_content_type_new_from_string'; did you mean 'g_mime_content_encoding_from_string'? [-Wimplicit-function-declaration]
type = g_mime_content_type_new_from_string(header);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
g_mime_content_encoding_from_string
dm_message.c:332:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
type = g_mime_content_type_new_from_string(header);
^
dm_message.c: In function 'store_head':
dm_message.c:505:15: error: too few arguments to function 'g_mime_object_get_headers'
char *head = g_mime_object_get_headers(object);
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gmime-3.0/gmime/gmime.h:35:0,
from dbmail.h:53,
from dm_message.c:25:
/usr/include/gmime-3.0/gmime/gmime-object.h:133:7: note: declared here
char *g_mime_object_get_headers (GMimeObject *object, GMimeFormatOptions *options);
^~~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c: In function 'store_mime_multipart':
dm_message.c:540:12: warning: implicit declaration of function 'g_mime_multipart_get_preface'; did you mean 'g_mime_multipart_get_part'? [-Wimplicit-function-declaration]
preface = g_mime_multipart_get_preface((GMimeMultipart *)object);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
g_mime_multipart_get_part
dm_message.c:540:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
preface = g_mime_multipart_get_preface((GMimeMultipart *)object);
^
dm_message.c:541:13: warning: implicit declaration of function 'g_mime_multipart_get_postface'; did you mean 'g_mime_multipart_get_boundary'? [-Wimplicit-function-declaration]
postface = g_mime_multipart_get_postface((GMimeMultipart )object);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
g_mime_multipart_get_boundary
dm_message.c:541:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
postface = g_mime_multipart_get_postface((GMimeMultipart )object);
^
dm_message.c: In function 'store_mime_object':
dm_message.c:609:3: warning: implicit declaration of function 'g_mime_header_list_set_stream'; did you mean 'g_mime_header_list_to_string'? [-Wimplicit-function-declaration]
g_mime_header_list_set_stream (GMIME_MESSAGE(object)->mime_part->headers, NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
g_mime_header_list_to_string
In file included from /usr/include/glib-2.0/gobject/gobject.h:24:0,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:23,
from /usr/include/gmime-3.0/gmime/gmime-param.h:26,
from /usr/include/gmime-3.0/gmime/gmime.h:31,
from dbmail.h:53,
from dm_message.c:25:
dm_message.c: In function 'dbmail_message_init_with_string':
dm_message.c:804:25: error: too few arguments to function 'g_mime_parser_construct_message'
content = GMIME_OBJECT(g_mime_parser_construct_message(parser));
^
/usr/include/glib-2.0/gobject/gtype.h:2212:57: note: in definition of macro '_G_TYPE_CIC'
((ct
) g_type_check_instance_cast ((GTypeInstance
) ip, gt))
^~
/usr/include/gmime-3.0/gmime/gmime-object.h:39:39: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST'
#define GMIME_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMIME_TYPE_OBJECT, GMimeObject))
^~~~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c:804:12: note: in expansion of macro 'GMIME_OBJECT'
content = GMIME_OBJECT(g_mime_parser_construct_message(parser));
^~~~~~~~~~~~
In file included from /usr/include/gmime-3.0/gmime/gmime.h:50:0,
from dbmail.h:53,
from dm_message.c:25:
/usr/include/gmime-3.0/gmime/gmime-parser.h:119:15: note: declared here
GMimeMessage *g_mime_parser_construct_message (GMimeParser parser, GMimeParserOptions options);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:24:0,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:23,
from /usr/include/gmime-3.0/gmime/gmime-param.h:26,
from /usr/include/gmime-3.0/gmime/gmime.h:31,
from dbmail.h:53,
from dm_message.c:25:
dm_message.c:812:26: error: too few arguments to function 'g_mime_parser_construct_part'
content = GMIME_OBJECT(g_mime_parser_construct_part(parser));
^
/usr/include/glib-2.0/gobject/gtype.h:2212:57: note: in definition of macro '_G_TYPE_CIC'
((ct
) g_type_check_instance_cast ((GTypeInstance
) ip, gt))
^~
/usr/include/gmime-3.0/gmime/gmime-object.h:39:39: note: in expansion of macro 'G_TYPE_CHECK_INSTANCE_CAST'
#define GMIME_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMIME_TYPE_OBJECT, GMimeObject))
^~~~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c:812:13: note: in expansion of macro 'GMIME_OBJECT'
content = GMIME_OBJECT(g_mime_parser_construct_part(parser));
^~~~~~~~~~~~
In file included from /usr/include/gmime-3.0/gmime/gmime.h:50:0,
from dbmail.h:53,
from dm_message.c:25:
/usr/include/gmime-3.0/gmime/gmime-parser.h:118:14: note: declared here
GMimeObject *g_mime_parser_construct_part (GMimeParser *parser, GMimeParserOptions *options);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c: In function 'dbmail_message_set_internal_date':
dm_message.c:844:20: error: too many arguments to function 'g_mime_utils_header_decode_date'
if ((dt = g_mime_utils_header_decode_date(
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gmime-3.0/gmime/gmime-data-wrapper.h:31:0,
from /usr/include/gmime-3.0/gmime/gmime.h:34,
from dbmail.h:53,
from dm_message.c:25:
/usr/include/gmime-3.0/gmime/gmime-utils.h:34:12: note: declared here
GDateTime *g_mime_utils_header_decode_date (const char *str);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c:844:18: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
if ((dt = g_mime_utils_header_decode_date(
^
dm_message.c: In function 'dbmail_message_set_header':
dm_message.c:891:2: error: too few arguments to function 'g_mime_object_set_header'
g_mime_object_set_header(GMIME_OBJECT(self->content), header, value);
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gmime-3.0/gmime/gmime.h:35:0,
from dbmail.h:53,
from dm_message.c:25:
/usr/include/gmime-3.0/gmime/gmime-object.h:127:6: note: declared here
void g_mime_object_set_header (GMimeObject *object, const char *header, const char *value, const char *charset);
^~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c: In function 'dbmail_message_get_header_repeated':
dm_message.c:923:2: warning: implicit declaration of function 'g_mime_header_list_foreach'; did you mean 'g_mime_header_list_clear'? [-Wimplicit-function-declaration]
g_mime_header_list_foreach(headers, _get_header_repeated, &data);
^~~~~~~~~~~~~~~~~~~~~~~~~~
g_mime_header_list_clear
dm_message.c: In function 'dbmail_message_get_header_addresses':
dm_message.c:946:16: warning: implicit declaration of function 'internet_address_list_parse_string'; did you mean 'internet_address_list_to_string'? [-Wimplicit-function-declaration]
if ((ialist = internet_address_list_parse_string(field_value)) == NULL) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
internet_address_list_to_string
dm_message.c:946:14: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
if ((ialist = internet_address_list_parse_string(field_value)) == NULL) {
^
dm_message.c: In function 'dbmail_message_to_string':
dm_message.c:979:9: error: too few arguments to function 'g_mime_object_to_string'
return g_mime_object_to_string(GMIME_OBJECT(self->content));
^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gmime-3.0/gmime/gmime.h:35:0,
from dbmail.h:53,
from dm_message.c:25:
/usr/include/gmime-3.0/gmime/gmime-object.h:136:7: note: declared here
char *g_mime_object_to_string (GMimeObject *object, GMimeFormatOptions *options);
^~~~~~~~~~~~~~~~~~~~~~~
dm_message.c: In function '_message_cache_envelope_date':
dm_message.c:1317:4: warning: passing argument 1 of 'g_mime_utils_header_format_date' makes pointer from integer without a cast [-Wint-conversion]
self->internal_date,
^~~~
In file included from /usr/include/gmime-3.0/gmime/gmime-data-wrapper.h:31:0,
from /usr/include/gmime-3.0/gmime/gmime.h:34,
from dbmail.h:53,
from dm_message.c:25:
/usr/include/gmime-3.0/gmime/gmime-utils.h:35:7: note: expected 'GDateTime * {aka struct _GDateTime *}' but argument is of type 'time_t {aka const long int}'
char *g_mime_utils_header_format_date (GDateTime *date);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c:1316:10: error: too many arguments to function 'g_mime_utils_header_format_date'
value = g_mime_utils_header_format_date(
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gmime-3.0/gmime/gmime-data-wrapper.h:31:0,
from /usr/include/gmime-3.0/gmime/gmime.h:34,
from dbmail.h:53,
from dm_message.c:25:
/usr/include/gmime-3.0/gmime/gmime-utils.h:35:7: note: declared here
char *g_mime_utils_header_format_date (GDateTime *date);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c: In function 'dbmail_message_cache_headers':
dm_message.c:1359:39: error: 'GMimeHeaderForeachFunc' undeclared (first use in this function); did you mean 'GMimeObjectForeachFunc'?
g_mime_header_list_foreach(headers, (GMimeHeaderForeachFunc)_header_cache,
^~~~~~~~~~~~~~~~~~~~~~
GMimeObjectForeachFunc
dm_message.c:1359:39: note: each undeclared identifier is reported only once for each function it appears in
dm_message.c:1359:62: error: expected ')' before '_header_cache'
g_mime_header_list_foreach(headers, (GMimeHeaderForeachFunc)_header_cache,
^~~~~~~~~~~~~
dm_message.c:1368:17: warning: implicit declaration of function 'g_mime_content_type_to_string'; did you mean 'g_mime_content_type_is_type'? [-Wimplicit-function-declaration]
char *value = g_mime_content_type_to_string(content_type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
g_mime_content_type_is_type
dm_message.c:1368:17: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
dm_message.c:1374:17: warning: implicit declaration of function 'g_mime_content_disposition_to_string'; did you mean 'g_mime_content_disposition_parse'? [-Wimplicit-function-declaration]
char *value = g_mime_content_disposition_to_string(
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
g_mime_content_disposition_parse
dm_message.c:1374:17: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
dm_message.c: In function '_header_cache':
dm_message.c:1710:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
emaillist = internet_address_list_parse_string(value);
^
dm_message.c:1752:10: error: too many arguments to function 'g_mime_utils_header_decode_date'
date = g_mime_utils_header_decode_date(value,&offset);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gmime-3.0/gmime/gmime-data-wrapper.h:31:0,
from /usr/include/gmime-3.0/gmime/gmime.h:34,
from dbmail.h:53,
from dm_message.c:25:
/usr/include/gmime-3.0/gmime/gmime-utils.h:34:12: note: declared here
GDateTime *g_mime_utils_header_decode_date (const char *str);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c:1752:8: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
date = g_mime_utils_header_decode_date(value,&offset);
^
dm_message.c: In function 'dbmail_message_cache_referencesfield':
dm_message.c:1826:9: warning: implicit declaration of function 'g_mime_references_decode'; did you mean 'g_mime_references_copy'? [-Wimplicit-function-declaration]
refs = g_mime_references_decode(field);
^~~~~~~~~~~~~~~~~~~~~~~~
g_mime_references_copy
dm_message.c:1826:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
refs = g_mime_references_decode(field);
^
dm_message.c:1837:13: error: 'GMimeReferences {aka struct _GMimeReferences}' has no member named 'msgid'
while (refs->msgid) {
^~
dm_message.c:1838:32: error: 'GMimeReferences {aka struct _GMimeReferences}' has no member named 'msgid'
if (! g_tree_lookup(tree,refs->msgid)) {
^~
dm_message.c:1839:51: error: 'GMimeReferences {aka struct _GMimeReferences}' has no member named 'msgid'
insert_field_cache(self->id, "references", refs->msgid);
^~
dm_message.c:1840:27: error: 'GMimeReferences {aka struct _GMimeReferences}' has no member named 'msgid'
g_tree_insert(tree,refs->msgid,refs->msgid);
^~
dm_message.c:1840:39: error: 'GMimeReferences {aka struct _GMimeReferences}' has no member named 'msgid'
g_tree_insert(tree,refs->msgid,refs->msgid);
^~
dm_message.c:1842:11: error: 'GMimeReferences {aka struct _GMimeReferences}' has no member named 'next'
if (refs->next == NULL)
^~
dm_message.c:1844:14: error: 'GMimeReferences {aka struct _GMimeReferences}' has no member named 'next'
refs = refs->next;
^~
dm_message.c:1848:26: warning: passing argument 1 of 'g_mime_references_clear' from incompatible pointer type [-Wincompatible-pointer-types]
g_mime_references_clear(&head);
^
In file included from /usr/include/gmime-3.0/gmime/gmime.h:52:0,
from dbmail.h:53,
from dm_message.c:25:
/usr/include/gmime-3.0/gmime/gmime-references.h:57:6: note: expected 'GMimeReferences * {aka struct _GMimeReferences *}' but argument is of type 'GMimeReferences ** {aka struct _GMimeReferences **}'
void g_mime_references_clear (GMimeReferences *refs);
^~~~~~~~~~~~~~~~~~~~~~~
dm_message.c: In function 'dbmail_message_construct':
dm_message.c:1911:2: warning: implicit declaration of function 'g_mime_message_set_sender'; did you mean 'g_mime_message_get_sender'? [-Wimplicit-function-declaration]
g_mime_message_set_sender(message, from);
^~~~~~~~~~~~~~~~~~~~~~~~~
g_mime_message_get_sender
dm_message.c:1912:2: error: too few arguments to function 'g_mime_message_set_subject'
g_mime_message_set_subject(message, subject);
^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gmime-3.0/gmime/gmime.h:43:0,
from dbmail.h:53,
from dm_message.c:25:
/usr/include/gmime-3.0/gmime/gmime-message.h:113:6: note: declared here
void g_mime_message_set_subject (GMimeMessage *message, const char *subject, const char *charset);
^~~~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c:1913:2: warning: implicit declaration of function 'g_mime_message_add_recipient'; did you mean 'g_mime_message_get_all_recipients'? [-Wimplicit-function-declaration]
g_mime_message_add_recipient(message, GMIME_RECIPIENT_TYPE_TO, NULL, to);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
g_mime_message_get_all_recipients
dm_message.c:1913:40: error: 'GMIME_RECIPIENT_TYPE_TO' undeclared (first use in this function); did you mean 'GMIME_ADDRESS_TYPE_TO'?
g_mime_message_add_recipient(message, GMIME_RECIPIENT_TYPE_TO, NULL, to);
^~~~~~~~~~~~~~~~~~~~~~~
GMIME_ADDRESS_TYPE_TO
dm_message.c:1942:2: warning: implicit declaration of function 'g_mime_part_set_content_object'; did you mean 'g_mime_part_set_content_md5'? [-Wimplicit-function-declaration]
g_mime_part_set_content_object(mime_part, content);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
g_mime_part_set_content_md5
dm_message.c:1956:4: error: too few arguments to function 'g_mime_object_set_header'
g_mime_object_set_header(GMIME_OBJECT(mime_part),"Content-Transfer-Encoding", "base64");
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gmime-3.0/gmime/gmime.h:35:0,
from dbmail.h:53,
from dm_message.c:25:
/usr/include/gmime-3.0/gmime/gmime-object.h:127:6: note: declared here
void g_mime_object_set_header (GMimeObject *object, const char *header, const char *value, const char *charset);
^~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c:1959:4: error: too few arguments to function 'g_mime_object_set_header'
g_mime_object_set_header(GMIME_OBJECT(mime_part),"Content-Transfer-Encoding", "quoted-printable");
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gmime-3.0/gmime/gmime.h:35:0,
from dbmail.h:53,
from dm_message.c:25:
/usr/include/gmime-3.0/gmime/gmime-object.h:127:6: note: declared here
void g_mime_object_set_header (GMimeObject *object, const char *header, const char *value, const char *charset);
^~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c:1962:4: error: too few arguments to function 'g_mime_object_set_header'
g_mime_object_set_header(GMIME_OBJECT(mime_part),"Content-Transfer-Encoding", "7bit");
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gmime-3.0/gmime/gmime.h:35:0,
from dbmail.h:53,
from dm_message.c:25:
/usr/include/gmime-3.0/gmime/gmime-object.h:127:6: note: declared here
void g_mime_object_set_header (GMimeObject *object, const char *header, const char *value, const char *charset);
^~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c: In function 'parse_and_escape':
dm_message.c:2228:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
ialist = internet_address_list_parse_string(in);
^
dm_message.c: In function 'send_reply':
dm_message.c:2463:47: warning: passing argument 1 of 'g_mime_utils_header_encode_text' from incompatible pointer type [-Wincompatible-pointer-types]
newsubject = g_mime_utils_header_encode_text(unewsubject);
^~~~~~~~~~~
In file included from /usr/include/gmime-3.0/gmime/gmime-data-wrapper.h:31:0,
from /usr/include/gmime-3.0/gmime/gmime.h:34,
from dbmail.h:53,
from dm_message.c:25:
/usr/include/gmime-3.0/gmime/gmime-utils.h:58:7: note: expected 'GMimeFormatOptions * {aka struct _GMimeFormatOptions *}' but argument is of type 'char *'
char *g_mime_utils_header_encode_text (GMimeFormatOptions *options, const char *text, const char *charset);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c:2463:15: error: too few arguments to function 'g_mime_utils_header_encode_text'
newsubject = g_mime_utils_header_encode_text(unewsubject);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gmime-3.0/gmime/gmime-data-wrapper.h:31:0,
from /usr/include/gmime-3.0/gmime/gmime.h:34,
from dbmail.h:53,
from dm_message.c:25:
/usr/include/gmime-3.0/gmime/gmime-utils.h:58:7: note: declared here
char *g_mime_utils_header_encode_text (GMimeFormatOptions *options, const char *text, const char *charset);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dm_message.c: In function 'dbmail_message_to_string':
dm_message.c:980:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
dm_message.c: In function 'insert_messages':
dm_message.c:2775:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
if (g_list_length(delivery->forwards) > 0) {
^
dm_message.c:2781:3: note: here
case DSN_CLASS_FAIL:
^~~~
make[3]: *** [Makefile:2362: libdbmail_la-dm_message.lo] Error 1
server.c: In function 'server_sig_cb':
server.c:660:4: warning: 'g_mem_profile' is deprecated [-Wdeprecated-declarations]
g_mem_profile();
^~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/glist.h:32:0,
from /usr/include/glib-2.0/glib/ghash.h:33,
from /usr/include/glib-2.0/glib.h:50,
from /usr/include/gmime-3.0/gmime/gmime.h:25,
from dbmail.h:53,
from server.c:28:
/usr/include/glib-2.0/glib/gmem.h:367:6: note: declared here
void g_mem_profile (void);
^~~~~~~~~~~~~
server.c: In function 'server_mainloop':
server.c:965:14: error: 'GMIME_ENABLE_RFC2047_WORKAROUNDS' undeclared (first use in this function)
g_mime_init(GMIME_ENABLE_RFC2047_WORKAROUNDS);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
server.c:965:14: note: each undeclared identifier is reported only once for each function it appears in
server.c:965:2: error: too many arguments to function 'g_mime_init'
g_mime_init(GMIME_ENABLE_RFC2047_WORKAROUNDS);
^~~~~~~~~~~
In file included from dbmail.h:53:0,
from server.c:28:
/usr/include/gmime-3.0/gmime/gmime.h:124:6: note: declared here
void g_mime_init (void);
^~~~~~~~~~~
server.c:972:2: warning: implicit declaration of function 'g_mime_filter_crlf_get_type'; did you mean 'g_mime_filter_from_get_type'? [-Wimplicit-function-declaration]
g_mime_filter_crlf_get_type();
^~~~~~~~~~~~~~~~~~~~~~~~~~~
g_mime_filter_from_get_type
make[3]: *** [Makefile:2516: libdbmail_la-server.lo] Error 1
In file included from dbmail.h:111:0,
from clientbase.c:26:
clientbase.c: In function 'ci_uncork':
clientbase.c:210:20: warning: format '%d' expects argument of type 'int', but argument 9 has type '__time_t {aka long int}' [-Wformat=]
TRACE(TRACE_DEBUG,"[%p] [%d] [%d], [%d]", s, s->rx, s->tx, s->timeout.tv_sec);
^ ~~~~~~~~~~~~
dm_debug.h:56:76: note: in definition of macro 'TRACE'
#define TRACE(level, fmt...) trace(level, THIS_MODULE, func, LINE, fmt)
^~~
make[3]: Leaving directory '/data/dokuments/rpmbuild/BUILD/dbmail-3.2.3/src'
make[2]: *** [Makefile:2587: all-recursive] Error 1
make[2]: Leaving directory '/data/dokuments/rpmbuild/BUILD/dbmail-3.2.3/src'
make[1]: *** [Makefile:1960: all-recursive] Error 1
make[1]: Leaving directory '/data/dokuments/rpmbuild/BUILD/dbmail-3.2.3'
make: *** [Makefile:1891: all] Error 2
Fehler: Fehler-Status beim Beenden von /var/tmp/rpm-tmp.uTwoUg (%build)

Fehler beim Bauen des RPM:
Fehler-Status beim Beenden von /var/tmp/rpm-tmp.uTwoUg (%build)

Infinite aliases configuration with postfix.

Need of dynamic alias is very common and might get hard to predefine the aliases in the table.

Example:

A workaround I tried was by using recipient query rewrite.

Dependency: Need to install PCRE support for MySQL
https://github.com/mysqludf/lib_mysqludf_preg Issue #19 for Ubuntu

Then update: /etc/postfix/sql-recipients.cf

query = SELECT alias FROM dbmail_aliases WHERE alias=preg_replace('/([+][^@]+)/', '', '%s')

Restart postfix - ready to go!

IMAP stopped working on Solaris 11.1 sometime after dbmail-3.1.10

I can successfully compile and install dbmail-3.1.13 however when dbmail-imapd runs, it will not accept any connections from IMAP clients. I've turned on verbose logging and foreground mode (/usr/local/sbin/dbmail-imapd -D -v) but don't receive anything to stderr or to the logs. I've reverted back to dbmail-3.1.10 which accepts IMAP connections.

Platform is Solaris 11.1 with mysql database.

How to use usermap?

I'm using ldap auth and users can login with their usernames (without @domain component), but I want also allow them to use "username@mydomain" logins, because some imap clients using this in auto-configuration.

I have added a record into dbmail_usermap:

 login | sock_allow | sock_deny |    userid
-------+------------+-----------+--------------
 ANY   |            |           | %s@mydomain

but after that users just cannot login with any login (username or username@mydomain).
What is wrong?

Please Help

I have been following the INSTALL letter by letter

And when I run "./configure --with-sieve"

everything seems good for a sec then I get this "checking for libSieve headers... configure: error: Could not find libSieve headers." and it stops and I am not able to do anything else

systemd/Makefile

Was having trouble installing on Fedora 19, with systemd, Makefile was having issues with

 /usr/lib/systemd/system
 /usr/lib/tmpfiles.d

Had a permission denied error, traced it back to the Makefile trying creating those directories, but they already exist.

I fixed this by editing systemd/Makefile.in, and removing the lines #397 and #406

@SYSTEMD_TRUE@  $(MKDIR_P) $(DESTDIR)$(SYSTEMD_UNIT_DIR)

@SYSTEMD_TRUE@  $(MKDIR_P) $(DESTDIR)$(SYSTEMD_TMPFILES_DIR)

I haven't dug any further, but I guess it's not checking for the directories first? Having removed those lines it "make install"s fine now.

Thanks

Flag --with-pgsql unknown

When compiling with ./configure --with-pgsql --with-sieve i get the warning option --with-pgsql is unknown.

Keep Ldap trying instead of stopping

I have been checking the code in the past for the fact that DbMail stops connecting to Ldap is it cannot auth, this stops after 5 times but I think even faster following the logs.

Cant we simply make it try forever sot his saves us a DbMail restart to get it working again after Ldap comes back ?

dbmail + libzdb + mysql 5.7 = hang

The issue is related to mysql bug 85105 and libzdb issue 21.

Basically, libzdb's MysqlPreparedStatement_executeQuery() is setting the cursor type to read-only, which mysql 5.7 does not particularly enjoy when combined with INSERT statements. As a result, every call to dbmail's db_stmt_query() leads to a hang if the prepared statement is an INSERT one.

libzdb's MysqlPreparedStatement_execute() is not affected and hence dbmail's db_stmt_exec() can be used as a workaround, followed up with "SELECT LAST_INSERT_ID()".

To reproduce:

# dbmail-users -a user -w passwd

libzdb 2.11.3
MySQL 5.7.18
Ubuntu 16.04.2

dbmail fails to start reliably under systemd

The default service files use "forked" service to spawn the working daemons. See RedHat bugzilla #1267031 for details. Fedora 23/EPEL uses its own slight variation of your service files.

I have added an override until the package changes:

cat /etc/systemd/system/dbmail-imapd.service.d/override.conf

[Unit]
After=nss-lookup.target

[Service]
Type=simple
ExecStart=
ExecStart=/usr/sbin/dbmail-imapd -D

I recommend you replace the service lines as above for all your service files in dbmail/systemd. As I note in the BZ issue, this is both more reliable and more efficient. Using the builtin daemonizing code, although the only option in sysvinit, is not necessary here and prone to problems. '-D' does the right thing for systemd and is a simpler solution than auditing and changing the initialization code for whatever is run amok. I straced these problems down and I suspect that the environment systemd hands your daemons is triggering them to quietly exit and mess up systemd's idea of state in the process- something sysvinit is too dumb to even know about.

I've also added an "After" to force the daemons to serialize behind nss-lookup because they were coming up in parallel with the network services. network.target is too weak while nss-lookup doesn't release until connectivity is sufficient to allow a DNS/NIS query to work. My symptom was an strace that showed an ENOROUTE on various socket calls. The postgres.service call was also insufficient for me because my DB is on another machine and the postfix+dbmail-* is in a container (VM).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.