masqmail-0.2
view Makefile.am @ 179:ec3fe72a3e99
Fixed an important bug with folded headers!
g_strconcat() returns a *copy* of the string, but hdr->value still
pointed to the old header (which probably was a memory leak, too).
If the folded part had been quite small it was likely that the new
string was at the same position as the old one, thus making everything
go well. But if pretty long headers were folded several times it was
likely that the new string was allocated somewhere else in memory,
thus breaking things. In result mails to lots of recipients (folded
header) were frequently only sent to the ones in the first line. Sorry
for the inconvenience.
author | meillo@marmaro.de |
---|---|
date | Fri, 03 Jun 2011 09:52:17 +0200 |
parents | cb42157b3520 |
children |
line source
1 EXTRA_DIST = examples docs man tpl misc
3 SUBDIRS = src man
5 install-data-local: log_dir spool_dir uid_bit conf_dir tpl_dir run_dir doc_dir rmail
7 uninstall-local: rm-rmail rm-doc_dir rm-tpl_dir rm-conf_dir rm-run_dir rm-spool_dir rm-log_dir
10 conf_dir:
11 install -d $(DESTDIR)@with_confdir@
13 rm-conf_dir:
14 rmdir $(DESTDIR)@with_confdir@ # removes only if empty
17 tpl_dir:
18 install -d $(DESTDIR)@datadir@/masqmail/tpl
19 cp tpl/* $(DESTDIR)@datadir@/masqmail/tpl
20 chmod 644 $(DESTDIR)@datadir@/masqmail/tpl/*
22 rm-tpl_dir:
23 rm -rf $(DESTDIR)@datadir@/masqmail/
26 doc_dir:
27 install -d $(DESTDIR)@docdir@
28 cp -r docs $(DESTDIR)@docdir@
29 cp -r examples $(DESTDIR)@docdir@
30 cp ChangeLog NEWS AUTHORS COPYING README TODO $(DESTDIR)@docdir@
32 rm-doc_dir:
33 cd $(DESTDIR)@docdir@ && ( \
34 rm -rf docs examples ; \
35 rm -f ChangeLog NEWS AUTHORS COPYING README TODO ; \
36 )
37 rmdir $(DESTDIR)@docdir@
40 run_dir:
41 install -d -o @with_user@ -g @with_group@ $(DESTDIR)/var/run/masqmail
43 rm-run_dir:
44 rm -rf $(DESTDIR)/var/run/masqmail
47 log_dir:
48 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_logdir@
50 rm-log_dir:
51 rmdir $(DESTDIR)@with_logdir@ # removes only if empty
54 spool_dir:
55 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@
56 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/lock
57 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/input
58 install -d -o @with_user@ -g @with_group@ $(DESTDIR)@with_spooldir@/popuidl
60 rm-spool_dir:
61 : # removal fails if the dirs are non-empty
62 : # this prevents losing spooled files
63 rmdir $(DESTDIR)@with_spooldir@/lock
64 rmdir $(DESTDIR)@with_spooldir@/input
65 rmdir $(DESTDIR)@with_spooldir@/popuidl
66 rmdir $(DESTDIR)@with_spooldir@
68 rmail:
69 [ -d "$(DESTDIR)@prefix@/sbin" ] || mkdir -p "$(DESTDIR)@prefix@/sbin"
70 sed '/^SENDMAIL/s,/usr/sbin/sendmail,$(DESTDIR)@prefix@/sbin/masqmail,'\
71 contrib/rmail >$(DESTDIR)@prefix@/sbin/rmail
72 chmod 755 $(DESTDIR)@prefix@/sbin/rmail
74 rm-rmail:
75 rm -f $(DESTDIR)@prefix@/sbin/rmail
78 uid_bit: $(DESTDIR)@prefix@/sbin/masqmail
79 chmod u+s $(DESTDIR)@prefix@/sbin/masqmail