Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Mar 1998 15:24:18 +0100
From:      Andreas Klemm <andreas@klemm.gtn.com>
To:        ache@FreeBSD.ORG
Cc:        isp@FreeBSD.ORG, ports@FreeBSD.ORG, asami@FreeBSD.ORG
Subject:   bugfix procmail port and discussion about general MAILSPOOLHOME var.
Message-ID:  <19980307152418.16939@klemm.gtn.com>

next in thread | raw e-mail | index | archive | help
Hi Andrey and the others !

First this should only be one mail for you, you'll see at the
end of this mail that this has changed to a general feature
request ;-)

patch-ab in the procmail port patches in absolute path names:

! #define ETCRC   "/usr/local/etc/procmailrc"       /* optional global procmailr
                   ^^^^^^^^^^
! #define ETCRCS  "/usr/local/etc/procmailrcs/"     /* optional trusted path pre
                   ^^^^^^^^^^

Could you please remove these two diffs from the patch and
provide a post configuration script, that patches the actual
content of $(PREFIX) into the config.h file ?

FEATURE REQUEST:

Another thing, many ISP's use procmail's ability, to store
users mails into their home directory ($HOME/.mail).

This is useful, if you want to use existing user quotas for incoming
mails and if you don't want to have one huge /var/mail directory with
mailfiles for 5000+ users ...

Could you add a compile time option that patches authenticate.c
to activate this feature ? MAILSPOOLHOME enables this behaviour.

For example 
	cd /usr/ports/mail/procmail
	make MAILSPOOLHOME=yes
And in the port's Makefile
	.if defined(MAILSPOOLHOME)
		PATCHFILES=mailspoolhome.patch
	.endif

Or something like this.

Perhaps one should make a note, that then the MUA has to be
aware of the MAIL envireonment variable or pop server have to be
patched, too look for the users mailbox in $HOME/.mail/loginname.

--- src/authenticate.c.orig     Sat Mar  7 14:56:07 1998
+++ src/authenticate.c  Sat Mar  7 14:56:15 1998
@@ -41,7 +41,7 @@
 #ifndef MAILSPOOLHASH
 #define MAILSPOOLHASH  0      /* 2 would deliver to /var/spool/mail/b/a/bar */
 #endif
-/*#define MAILSPOOLHOME "/.mail"                     /* watch the leading / */
+#define MAILSPOOLHOME "/.mail"               /* watch the leading / */
                                                  /* delivers to $HOME/.mail */
 #define STRLEN(x)      (sizeof(x)-1)


[Brainstorming on]

With the help of the other port maintainers we could additionally
think about patching all of our pop and imap servers and MUA's
in the ports collection to be aware of mailbox files in the
users home directory in $HOME/.mail
via a global make variable MAILSPOOLHOME
that could be placed in /etc/make.conf.

This switch should also be available on the command line
	make MAILSPOOLHOME=yes all install
or make it to a system wide default via
	/etc/make.conf

For ISP's with large installations that would surely be a nice
feature and another bonus to use FreeBSD and the ports collection

[Brainstorming OFF]

What do you think of that ?
 
-- 
Andreas Klemm
powered by ,,symmetric multiprocessor FreeBSD''

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980307152418.16939>