mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
notmuch-deliver: Import said files from maildrop-2.2.0 release.
We won't use all of the included build infrastructure files, but adding them nevertheless helps to track changes that are applied to them upstream. Signed-off-by: Thomas Schwinge <thomas@schwinge.name>
This commit is contained in:
parent
38b245b46a
commit
f0c3f7a995
3 changed files with 408 additions and 0 deletions
202
contrib/notmuch-deliver/maildrop/maildir/Makefile.am
Normal file
202
contrib/notmuch-deliver/maildrop/maildir/Makefile.am
Normal file
|
@ -0,0 +1,202 @@
|
||||||
|
#$Id: Makefile.am,v 1.59 2009/06/27 16:32:38 mrsam Exp $
|
||||||
|
#
|
||||||
|
# Copyright 1998 - 2005 Double Precision, Inc. See COPYING for
|
||||||
|
# distribution information.
|
||||||
|
|
||||||
|
|
||||||
|
noinst_LTLIBRARIES=libmaildir.la
|
||||||
|
|
||||||
|
|
||||||
|
DOCS= deliverquota.html.in deliverquota.8.in \
|
||||||
|
maildiracl.1.in \
|
||||||
|
maildir.html maildir.5 \
|
||||||
|
maildiracl.html.in \
|
||||||
|
maildirmake.html.in maildirmake.1.in maildirquota.html maildirquota.7 \
|
||||||
|
maildirkw.html maildirkw.1
|
||||||
|
|
||||||
|
if HAVE_SGML
|
||||||
|
BUILT_SOURCES=maildirsharedrc.h maildirfilterconfig.h quotawarnmsg.h \
|
||||||
|
mailbot.h autoresponsequota.h $(noinst_DATA) $(DOCS)
|
||||||
|
else
|
||||||
|
BUILT_SOURCES=maildirsharedrc.h maildirfilterconfig.h quotawarnmsg.h \
|
||||||
|
mailbot.h autoresponsequota.h $(noinst_DATA)
|
||||||
|
endif
|
||||||
|
|
||||||
|
noinst_DATA=deliverquota.html maildirmake.html deliverquota.8 maildirmake.1 \
|
||||||
|
maildiracl.html maildiracl.1 maildir.libdeps
|
||||||
|
|
||||||
|
libmaildir_la_SOURCES=autoresponse.c autoresponse.h \
|
||||||
|
maildiraclt.c maildiraclt.h \
|
||||||
|
maildircache.c maildircache.h \
|
||||||
|
maildircreate.c maildircreate.h \
|
||||||
|
maildirfilename.c maildirgetnew.c \
|
||||||
|
maildirfilter.c maildirfilter2.c \
|
||||||
|
maildirfilter.h maildirfiltertypelist.h\
|
||||||
|
maildirflags.c maildirmkdir.c \
|
||||||
|
maildirgetquota.c maildirgetquota.h \
|
||||||
|
maildirinfo.c maildirinfo.h \
|
||||||
|
maildirkeywords.c maildirkeywords2.c maildirkeywords3.c \
|
||||||
|
maildirkeywords4.cpp \
|
||||||
|
maildirkeywords.h maildirlist.c maildirlock.c \
|
||||||
|
maildirmake2.c \
|
||||||
|
maildirnewshared.c maildirnewshared.h maildirnewshared2.c \
|
||||||
|
maildiropen.c maildirparsequota.c \
|
||||||
|
maildirpath.c maildirpurgetmp.c maildirmisc.h \
|
||||||
|
maildirrename.c \
|
||||||
|
maildirsearch.c maildirsearchC.cpp maildirsearch.h \
|
||||||
|
maildirshared.c maildirshared2.c maildirdelfolder.c\
|
||||||
|
maildirquota.c maildirquota.h maildirrequota.c maildirrequota.h \
|
||||||
|
maildirwatch.c maildirwatch.h loginexec.c loginexec.h
|
||||||
|
|
||||||
|
noinst_PROGRAMS=deliverquota maildirmake testmaildirfilter maildirkwtest \
|
||||||
|
maildirkw maildiracl maildiraclttest
|
||||||
|
|
||||||
|
deliverquota_SOURCES=deliverquota.c
|
||||||
|
deliverquota_DEPENDENCIES=libmaildir.la ../rfc822/librfc822.la \
|
||||||
|
../numlib/libnumlib.la
|
||||||
|
deliverquota_LDADD=libmaildir.la ../rfc822/librfc822.la ../numlib/libnumlib.la
|
||||||
|
deliverquota_LDFLAGS=-static
|
||||||
|
|
||||||
|
maildirmake_SOURCES=maildirmake.c
|
||||||
|
maildirmake_DEPENDENCIES=libmaildir.la ../numlib/libnumlib.la \
|
||||||
|
../rfc822/librfc822.la
|
||||||
|
maildirmake_LDADD=libmaildir.la ../numlib/libnumlib.la \
|
||||||
|
../rfc822/librfc822.la
|
||||||
|
maildirmake_LDFLAGS=-static
|
||||||
|
|
||||||
|
testmaildirfilter_SOURCES=maildirfiltertypelist.h testmaildirfilter.c
|
||||||
|
testmaildirfilter_DEPENDENCIES=libmaildir.la ../numlib/libnumlib.la
|
||||||
|
testmaildirfilter_LDADD=libmaildir.la ../numlib/libnumlib.la @LIBPCRE@
|
||||||
|
testmaildirfilter_LDFLAGS=-static
|
||||||
|
|
||||||
|
maildirkwtest_SOURCES=maildirkwtest.c
|
||||||
|
maildirkwtest_LDADD=libmaildir.la
|
||||||
|
maildirkwtest_DEPENDENCIES=libmaildir.la
|
||||||
|
maildirkwtest_LDFLAGS=-static
|
||||||
|
|
||||||
|
maildirkw_SOURCES=maildirkw.c
|
||||||
|
maildirkw_LDADD=libmaildir.la ../liblock/liblock.la ../numlib/libnumlib.la \
|
||||||
|
`cat maildir.libdeps`
|
||||||
|
maildirkw_DEPENDENCIES=libmaildir.la ../liblock/liblock.la \
|
||||||
|
../numlib/libnumlib.la maildir.libdeps
|
||||||
|
maildirkw_LDFLAGS=-static
|
||||||
|
|
||||||
|
maildiracl=maildiracl.c
|
||||||
|
maildiracl_LDADD=libmaildir.la ../liblock/liblock.la ../numlib/libnumlib.la \
|
||||||
|
`cat maildir.libdeps`
|
||||||
|
maildiracl_DEPENDENCIES=libmaildir.la ../liblock/liblock.la \
|
||||||
|
../numlib/libnumlib.la maildir.libdeps
|
||||||
|
maildiracl_LDFLAGS=-static
|
||||||
|
|
||||||
|
maildiraclttest_SOURCES=testmaildiraclt.c
|
||||||
|
maildiraclttest_LDADD=libmaildir.la ../liblock/liblock.la \
|
||||||
|
../numlib/libnumlib.la `cat maildir.libdeps`
|
||||||
|
maildiraclttest_DEPENDENCIES=libmaildir.la ../liblock/liblock.la \
|
||||||
|
../numlib/libnumlib.la maildir.libdeps
|
||||||
|
maildiraclttest_LDFLAGS=-static
|
||||||
|
|
||||||
|
EXTRA_DIST=README.maildirquota.html README.maildirquota.txt \
|
||||||
|
README.imapkeywords.html \
|
||||||
|
README.maildirfilter.html \
|
||||||
|
README.sharedfolders.html README.sharedfolders.txt \
|
||||||
|
maildirkwtest.txt \
|
||||||
|
testsuite testsuite.txt testsuite2 testsuite2.txt quotawarnmsg $(DOCS)
|
||||||
|
|
||||||
|
HTML2TXT=links -dump -no-numbering
|
||||||
|
|
||||||
|
README.maildirquota.txt: README.maildirquota.html
|
||||||
|
$(HTML2TXT) README.maildirquota.html >README.maildirquota.txt
|
||||||
|
|
||||||
|
README.sharedfolders.txt: README.sharedfolders.html
|
||||||
|
$(HTML2TXT) README.sharedfolders.html >README.sharedfolders.txt
|
||||||
|
|
||||||
|
mailbot.h: config.status
|
||||||
|
echo '#define MAILBOT "@MAILBOT@"' >mailbot.h
|
||||||
|
|
||||||
|
maildirsharedrc.h: config.status
|
||||||
|
echo '#define MAILDIRSHAREDRC "$(sysconfdir)/maildirshared"' >maildirsharedrc.h
|
||||||
|
|
||||||
|
maildirfilterconfig.h: config.status
|
||||||
|
echo '#define MAILDIRFILTERCONFIG "$(sysconfdir)/maildirfilterconfig"' >maildirfilterconfig.h
|
||||||
|
|
||||||
|
autoresponsequota.h: config.status
|
||||||
|
echo '#define AUTORESPONSEQUOTA "$(sysconfdir)/autoresponsesquota"' >autoresponsequota.h
|
||||||
|
|
||||||
|
quotawarnmsg.h: config.status
|
||||||
|
echo '#define QUOTAWARNMSG "$(sysconfdir)/quotawarnmsg"' >quotawarnmsg.h
|
||||||
|
maildir.libdeps: config.status
|
||||||
|
echo @LIBFAM@ >maildir.libdeps
|
||||||
|
|
||||||
|
clean-local:
|
||||||
|
rm -rf maildir.libdeps testmd
|
||||||
|
|
||||||
|
check-am:
|
||||||
|
@SHELL@ $(srcdir)/testsuite 2>&1 | cmp - $(srcdir)/testsuite.txt
|
||||||
|
test "@LIBPCRE@" != "" || exit 0 ; @SHELL@ $(srcdir)/testsuite2 2>&1 | cmp - $(srcdir)/testsuite2.txt
|
||||||
|
LC_ALL=C; export LC_ALL; ./maildirkwtest | cmp -s - $(srcdir)/maildirkwtest.txt
|
||||||
|
LC_ALL=C; export LC_ALL; ./maildiraclttest
|
||||||
|
|
||||||
|
if HAVE_SGML
|
||||||
|
|
||||||
|
deliverquota.html.in: deliverquota.sgml ../docbook/sgml2html
|
||||||
|
../docbook/sgml2html deliverquota.sgml deliverquota.html.in
|
||||||
|
|
||||||
|
deliverquota.8.in: deliverquota.sgml ../docbook/sgml2html
|
||||||
|
../docbook/sgml2man deliverquota.sgml deliverquota.8.in
|
||||||
|
mv deliverquota.8 deliverquota.8.in
|
||||||
|
|
||||||
|
maildirmake.html.in: maildirmake.sgml ../docbook/sgml2html
|
||||||
|
../docbook/sgml2html maildirmake.sgml maildirmake.html.in
|
||||||
|
|
||||||
|
maildirmake.1.in: maildirmake.sgml ../docbook/sgml2html
|
||||||
|
../docbook/sgml2man maildirmake.sgml maildirmake.1.in
|
||||||
|
mv maildirmake.1 maildirmake.1.in
|
||||||
|
|
||||||
|
maildiracl.html.in: maildiracl.sgml ../docbook/sgml2html
|
||||||
|
../docbook/sgml2html maildiracl.sgml maildiracl.html.in
|
||||||
|
|
||||||
|
maildiracl.1.in: maildiracl.sgml ../docbook/sgml2html
|
||||||
|
../docbook/sgml2man maildiracl.sgml maildiracl.1.in
|
||||||
|
mv maildiracl.1 maildiracl.1.in
|
||||||
|
|
||||||
|
maildirquota.html: maildirquota.sgml ../docbook/sgml2html
|
||||||
|
../docbook/sgml2html maildirquota.sgml maildirquota.html
|
||||||
|
|
||||||
|
maildirquota.7: maildirquota.sgml ../docbook/sgml2man
|
||||||
|
../docbook/sgml2man maildirquota.sgml maildirquota.7
|
||||||
|
|
||||||
|
maildir.html: maildir.sgml ../docbook/sgml2html
|
||||||
|
../docbook/sgml2html maildir.sgml maildir.html
|
||||||
|
|
||||||
|
maildir.5: maildir.sgml ../docbook/sgml2man
|
||||||
|
../docbook/sgml2man maildir.sgml maildir.5
|
||||||
|
|
||||||
|
maildirkw.html: maildirkw.sgml ../docbook/sgml2html
|
||||||
|
../docbook/sgml2html maildirkw.sgml maildirkw.html
|
||||||
|
|
||||||
|
maildirkw.1: maildirkw.sgml ../docbook/sgml2man
|
||||||
|
../docbook/sgml2man maildirkw.sgml maildirkw.1
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
|
deliverquota.html: deliverquota.html.in
|
||||||
|
./config.status --file=$@
|
||||||
|
|
||||||
|
deliverquota.8: deliverquota.8.in
|
||||||
|
./config.status --file=$@
|
||||||
|
|
||||||
|
maildirmake.html: maildirmake.html.in
|
||||||
|
./config.status --file=$@
|
||||||
|
|
||||||
|
maildirmake.1: maildirmake.1.in
|
||||||
|
./config.status --file=$@
|
||||||
|
|
||||||
|
maildiracl.html: maildiracl.html.in
|
||||||
|
./config.status --file=$@
|
||||||
|
|
||||||
|
maildiracl.1: maildiracl.1.in
|
||||||
|
./config.status --file=$@
|
||||||
|
|
||||||
|
# autoresponse.c: autoresponsequota.h
|
||||||
|
|
||||||
|
DISTCLEANFILES=$(BUILT_SOURCES)
|
165
contrib/notmuch-deliver/maildrop/maildir/configure.in
Normal file
165
contrib/notmuch-deliver/maildrop/maildir/configure.in
Normal file
|
@ -0,0 +1,165 @@
|
||||||
|
dnl $Id: configure.in,v 1.37 2008/11/27 21:51:16 mrsam Exp $
|
||||||
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
|
dnl
|
||||||
|
dnl Copyright 1998 - 2001 Double Precision, Inc. See COPYING for
|
||||||
|
dnl distribution information.
|
||||||
|
|
||||||
|
AC_INIT(maildir, 0.11, [courier-maildrop@lists.sourceforge.net])
|
||||||
|
|
||||||
|
>confdefs.h # Kill PACKAGE_ macros
|
||||||
|
|
||||||
|
AC_CONFIG_SRCDIR(maildirquota.c)
|
||||||
|
LPATH="$PATH:/usr/local/bin"
|
||||||
|
AC_CANONICAL_SYSTEM
|
||||||
|
AM_INIT_AUTOMAKE([foreign no-define])
|
||||||
|
AM_CONFIG_HEADER(config.h)
|
||||||
|
|
||||||
|
dnl Checks for programs.
|
||||||
|
AC_PROG_AWK
|
||||||
|
AC_USE_SYSTEM_EXTENSIONS
|
||||||
|
AC_PROG_CC
|
||||||
|
AC_PROG_INSTALL
|
||||||
|
AC_PROG_LN_S
|
||||||
|
AC_LIBTOOL_DLOPEN
|
||||||
|
AM_PROG_LIBTOOL
|
||||||
|
|
||||||
|
AC_PROG_CXX
|
||||||
|
|
||||||
|
AC_PATH_PROGS(PERL, perl5 perl, perl, $LPATH)
|
||||||
|
|
||||||
|
if test "$GCC" = "yes"
|
||||||
|
then
|
||||||
|
CFLAGS="$CFLAGS -Wall"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$GXX" = "yes"
|
||||||
|
then
|
||||||
|
CXXFLAGS="$CXXFLAGS -Wall"
|
||||||
|
fi
|
||||||
|
|
||||||
|
CFLAGS="$CFLAGS -I${srcdir}/.. -I.."
|
||||||
|
|
||||||
|
dnl Checks for libraries.
|
||||||
|
|
||||||
|
dnl Checks for header files.
|
||||||
|
AC_HEADER_DIRENT
|
||||||
|
AC_HEADER_STDC
|
||||||
|
AC_HEADER_TIME
|
||||||
|
AC_CHECK_HEADERS(sys/stat.h sys/wait.h fcntl.h unistd.h sysexits.h utime.h pcre.h pcre/pcre.h)
|
||||||
|
|
||||||
|
AC_CHECK_HEADER([pcre.h],
|
||||||
|
[LIBPCRE=-lpcre])
|
||||||
|
|
||||||
|
AC_CHECK_HEADER([pcre/pcre.h],
|
||||||
|
[LIBPCRE=-lpcre])
|
||||||
|
|
||||||
|
AC_SUBST(LIBPCRE)
|
||||||
|
|
||||||
|
AC_HEADER_SYS_WAIT
|
||||||
|
|
||||||
|
AC_LANG_CPLUSPLUS
|
||||||
|
AC_CHECK_HEADERS(vector vector.h)
|
||||||
|
AC_LANG_C
|
||||||
|
|
||||||
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||||
|
AC_C_CONST
|
||||||
|
AC_TYPE_OFF_T
|
||||||
|
AC_TYPE_SIZE_T
|
||||||
|
AC_TYPE_UID_T
|
||||||
|
AC_STRUCT_TM
|
||||||
|
|
||||||
|
dnl Checks for library functions.
|
||||||
|
AC_CHECK_HEADER(fam.h, :, :)
|
||||||
|
AC_CHECK_FUNCS(symlink readlink strcasecmp utime utimes)
|
||||||
|
AC_CHECK_LIB(fam, FAMOpen, [
|
||||||
|
LIBFAM=-lfam
|
||||||
|
AC_DEFINE_UNQUOTED(HAVE_FAM,1,
|
||||||
|
[ Whether libfam.a is available ])
|
||||||
|
|
||||||
|
AC_CHECK_HEADER(fam.h, : , [
|
||||||
|
AC_MSG_WARN([[The development header files and libraries for fam,]])
|
||||||
|
AC_MSG_WARN([[the File Alteration Monitor, are not installed.]])
|
||||||
|
AC_MSG_WARN([[You appear to have the FAM runtime libraries installed,]])
|
||||||
|
AC_MSG_WARN([[so you need to simply install the additional development]])
|
||||||
|
AC_MSG_WARN([[package for your operating system.]])
|
||||||
|
AC_MSG_ERROR([[FAM development libraries not found.]]) ]
|
||||||
|
)
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_SUBST(LIBFAM)
|
||||||
|
|
||||||
|
echo "$LIBFAM" >maildir.libdeps
|
||||||
|
|
||||||
|
AC_CACHE_CHECK([for missing gethostname prototype],maildir_cv_SYS_GETHOSTNAME,
|
||||||
|
|
||||||
|
AC_TRY_COMPILE([
|
||||||
|
#if HAVE_UNISTD_H
|
||||||
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
extern "C" int gethostname(int,int);
|
||||||
|
],[
|
||||||
|
],maildir_cv_SYS_GETHOSTNAME=yes,maildir_cv_SYS_GETHOSTNAME=no
|
||||||
|
)
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
if test $maildir_cv_SYS_GETHOSTNAME = "no"
|
||||||
|
then
|
||||||
|
AC_DEFINE_UNQUOTED(HAS_GETHOSTNAME,1,
|
||||||
|
[ Whether gethostname() is prototyped ])
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_ARG_WITH(db, [ --with-db=gdbm Use the GDBM library.
|
||||||
|
--with-db=db Use the libdb.a library.],
|
||||||
|
db="$withval", db="")
|
||||||
|
|
||||||
|
if test "$db" = "no"
|
||||||
|
then
|
||||||
|
db=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$db" != ""
|
||||||
|
then
|
||||||
|
AC_DEFINE_UNQUOTED(HAVE_DBOBJ,1,
|
||||||
|
[ Whether the top-level configure script defined dbobj ])
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_ARG_WITH(trashquota, [ --with-trashquota Count deleted messages as part of the quota],
|
||||||
|
trashquota="$withval",
|
||||||
|
trashquota="no")
|
||||||
|
|
||||||
|
if test "$trashquota" = "yes"
|
||||||
|
then
|
||||||
|
AC_DEFINE_UNQUOTED(TRASHQUOTA,1,
|
||||||
|
[ Whether to count deleted messages towards the maildir quota ])
|
||||||
|
fi
|
||||||
|
|
||||||
|
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
||||||
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
||||||
|
eval "prefix=$prefix"
|
||||||
|
eval "exec_prefix=$exec_prefix"
|
||||||
|
eval "sysconfdir=$sysconfdir"
|
||||||
|
|
||||||
|
AC_PATH_PROGS(MAILBOT, mailbot, mailbot, $LPATH)
|
||||||
|
|
||||||
|
if test -d $srcdir/../courier
|
||||||
|
then
|
||||||
|
MAILBOT="$bindir/mailbot"
|
||||||
|
AC_DEFINE_UNQUOTED(HAVE_COURIER,1,
|
||||||
|
[ Whether building the full Courier suite. ])
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_SUBST(MAILBOT)
|
||||||
|
AM_CONDITIONAL(HAVE_SGML, test -d ${srcdir}/../docbook)
|
||||||
|
|
||||||
|
if test "$target_os" = "cygwin"
|
||||||
|
then
|
||||||
|
AC_DEFINE_UNQUOTED(MDIRSEP, "!",
|
||||||
|
[ Maildir target separator ])
|
||||||
|
else
|
||||||
|
AC_DEFINE_UNQUOTED(MDIRSEP, ":",
|
||||||
|
[ Maildir target separator ])
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_OUTPUT(Makefile sharedindexinstall sharedindexsplit)
|
41
contrib/notmuch-deliver/maildrop/numlib/configure.in
Normal file
41
contrib/notmuch-deliver/maildrop/numlib/configure.in
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
|
dnl $Id: configure.in,v 1.6 2004/12/10 02:34:46 mrsam Exp $
|
||||||
|
dnl
|
||||||
|
dnl Copyright 1998 - 2004 Double Precision, Inc. See COPYING for
|
||||||
|
dnl distribution information.
|
||||||
|
|
||||||
|
AC_PREREQ(2.59)
|
||||||
|
AC_INIT(numlib, 0.10, courier-users@lists.sourceforge.net)
|
||||||
|
|
||||||
|
>confdefs.h # Kill PACKAGE_ macros
|
||||||
|
|
||||||
|
AC_CONFIG_SRCDIR([atotimet.c])
|
||||||
|
AM_CONFIG_HEADER([config.h])
|
||||||
|
AM_INIT_AUTOMAKE([foreign no-define])
|
||||||
|
|
||||||
|
dnl Checks for programs.
|
||||||
|
AC_PROG_AWK
|
||||||
|
AC_PROG_CC
|
||||||
|
AC_PROG_INSTALL
|
||||||
|
AC_PROG_LN_S
|
||||||
|
AC_PROG_LIBTOOL
|
||||||
|
|
||||||
|
if test "$GCC" = "yes"
|
||||||
|
then
|
||||||
|
CFLAGS="$CFLAGS -Wall"
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl Checks for libraries.
|
||||||
|
|
||||||
|
dnl Checks for header files.
|
||||||
|
|
||||||
|
AC_CHECK_HEADERS(unistd.h)
|
||||||
|
|
||||||
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||||
|
AC_TYPE_UID_T
|
||||||
|
AC_TYPE_PID_T
|
||||||
|
|
||||||
|
dnl Checks for library functions.
|
||||||
|
|
||||||
|
AC_CHECK_FUNCS(setgroups initgroups)
|
||||||
|
AC_OUTPUT(Makefile)
|
Loading…
Reference in a new issue