50ed20
diff -up mutt-1.10.0/configure.ac.nodotlock mutt-1.10.0/configure.ac
50ed20
--- mutt-1.10.0/configure.ac.nodotlock	2018-05-14 23:51:53.000000000 +0200
50ed20
+++ mutt-1.10.0/configure.ac	2018-05-23 15:09:21.186613968 +0200
50ed20
@@ -528,9 +528,7 @@ int main (int argc, char **argv)
50ed20
 }]])],[mutt_cv_worldwrite=yes],[mutt_cv_worldwrite=no],[mutt_cv_worldwrite=no])])
50ed20
 
50ed20
         mutt_cv_setgid=no
50ed20
-        if test $mutt_cv_worldwrite = yes; then
50ed20
-                AC_DEFINE(USE_DOTLOCK,1,[ Define to use dotlocking for mailboxes. ])
50ed20
-        else
50ed20
+        if test $mutt_cv_worldwrite != yes; then
50ed20
 
50ed20
                 AC_CACHE_CHECK(if $mutt_cv_mailpath is group writable, mutt_cv_groupwrite, [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <sys/types.h>
50ed20
 #include <sys/stat.h>
50ed20
@@ -546,7 +544,6 @@ int main (int argc, char **argv)
50ed20
 }]])],[mutt_cv_groupwrite=yes],[mutt_cv_groupwrite=no],[mutt_cv_groupwrite=no])])
50ed20
 
50ed20
                 if test $mutt_cv_groupwrite = yes; then
50ed20
-                        AC_DEFINE(USE_DOTLOCK,1,[ Define to use dotlocking for mailboxes. ])
50ed20
                         AC_DEFINE(USE_SETGID,1,[ Define if mutt should run setgid "mail". ])
50ed20
                         mutt_cv_setgid=yes
50ed20
                 fi
50ed20
diff -up mutt-1.10.0/Makefile.am.nodotlock mutt-1.10.0/Makefile.am
50ed20
--- mutt-1.10.0/Makefile.am.nodotlock	2018-05-23 15:11:05.477977659 +0200
50ed20
+++ mutt-1.10.0/Makefile.am	2018-05-23 15:11:20.252170843 +0200
50ed20
@@ -154,17 +154,6 @@ hcversion.h: $(srcdir)/mutt.h $(srcdir)/
50ed20
 patchlist.c: $(srcdir)/PATCHES $(srcdir)/patchlist.sh
50ed20
 	$(srcdir)/patchlist.sh < $(srcdir)/PATCHES > patchlist.c
50ed20
 
50ed20
-install-exec-hook:
50ed20
-	if test -f $(DESTDIR)$(bindir)/mutt.dotlock && test -f $(DESTDIR)$(bindir)/mutt_dotlock ; then	\
50ed20
-		rm -f $(DESTDIR)$(bindir)/mutt.dotlock ;		\
50ed20
-		ln -sf $(DESTDIR)$(bindir)/mutt_dotlock $(DESTDIR)$(bindir)/mutt.dotlock ; \
50ed20
-	fi
50ed20
-	if test -f $(DESTDIR)$(bindir)/mutt_dotlock && test x$(DOTLOCK_GROUP) != x ; then \
50ed20
-		chgrp $(DOTLOCK_GROUP) $(DESTDIR)$(bindir)/mutt_dotlock && \
50ed20
-		chmod $(DOTLOCK_PERMISSION) $(DESTDIR)$(bindir)/mutt_dotlock || \
50ed20
-		{ echo "Can't fix mutt_dotlock's permissions!  This is required to lock mailboxes in the mail spool directory." >&2 ; exit 1 ; } \
50ed20
-	fi
50ed20
-
50ed20
 install-data-local:
50ed20
 	$(MKDIR_P) $(DESTDIR)$(sysconfdir)
50ed20
 	$(INSTALL) -m 644 $(srcdir)/mime.types $(DESTDIR)$(sysconfdir)/mime.types.dist