From owner-freebsd-questions Tue May 15 2: 1: 6 2001 Delivered-To: freebsd-questions@freebsd.org Received: from relay3.inwind.it (relay3.inwind.it [212.141.53.74]) by hub.freebsd.org (Postfix) with ESMTP id 2EB4937B424 for ; Tue, 15 May 2001 02:01:00 -0700 (PDT) (envelope-from fcasadei@inwind.it) Received: from [62.98.204.167] (62.98.204.167) by relay3.inwind.it (5.5.029) id 3AE401CE0050FDF9 for questions@freebsd.org; Tue, 15 May 2001 11:00:58 +0200 Received: (qmail 2411 invoked by uid 1000); 15 May 2001 08:59:57 -0000 Date: Tue, 15 May 2001 10:59:57 +0200 From: Francesco Casadei To: Wild Fyre Cc: questions@freebsd.org Subject: Re: Procmail question. Message-ID: <20010515105957.A2352@goku.kasby> References: <20010514183421.93425.qmail@web14306.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="ZPt4rx8FFjLCG7dd" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010514183421.93425.qmail@web14306.mail.yahoo.com>; from wildfiah@yahoo.com on Mon, May 14, 2001 at 11:34:21AM -0700 X-Operating-System: FreeBSD 4.3-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 14, 2001 at 11:34:21AM -0700, Wild Fyre wrote: > Hello ladies and gents, >=20 > How can i use procmail, so that 1) Mail can be > delivered to the users home directory instead of the > spool dir ie /var/mail. >=20 >=20 > Thanks in advance > Stephan Weaver >=20 > __________________________________________________ > Do You Yahoo!? > Yahoo! Auctions - buy the things you want at great prices > http://auctions.yahoo.com/ >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message >=20 > end of the original message =46rom procmailrc(5) manpage: [...] Recipes A line starting with ':' marks the beginning of a recipe. It has the following format: :0 [flags] [ : [locallockfile] ] [...] Recipe action line The action line can start with the following characters: [...] Anything else will be taken as a mailbox name (either a filename or a directory, absolute or relative to the cur- rent directory (see MAILDIR)). If it is a (possibly yet nonexistent) filename, the mail will be appended to it. If it is a directory, the mail will be delivered to a newly created, guaranteed to be unique file named $MSGPRE- FIX* in the specified directory. If the mailbox name ends in "/.", then this directory is presumed to be an MH folder; i.e., procmail will use the next number it finds available. If the mailbox name ends in "/", then this directory is presumed to be a maildir folder; i.e., proc- mail will deliver the message to a file in a subdirectory named "tmp" and rename it to be inside a subdirectory named "new". If the mailbox is specified to be an MH folder or maildir folder, procmail will create the neces- sary directories if they don't exist, rather than treat the mailbox as a non-existent filename. When procmail is delivering to directories, you can specify multiple direc- tories to deliver to (procmail will do so utilising hardlinks). So you'll want something like: -* begin .procmailrc-wind *- MAILDIR=3D$HOME/Mail/ ORGMAIL=3D$MAILDIR/wind/ DEFAULT=3D$MAILDIR/wind/ :0 * ^Sender.*freebsd-questions freebsd-questions/ :0 E * ^Sender.*freebsd-stable freebsd-stable/ :0 E * ^Sender.*freebsd-isp freebsd-isp/ :0 E * ^Sender.*freebsd-announce freebsd-announce/ -* end .procmailrc-wind *- Messages from -questions, -stable, -isp and -announce go to (respectively) ~/Mail/freebsd-questions, ~/Mail/freebsd-stable, ~/Mail/freebsd-isp and ~/Mail/freebsd-announce. All other messages go to ~/Mail/wind, which is the default maildir. For more information: man procmail man procmailrc man procmailex Hope this helps. Francesco Casadei --=20 You can download my public key from http://digilander.iol.it/fcasadei/ or retrieve it from a keyserver (pgpkeys.mit.edu, wwwkeys.pgp.net, ...) Key fingerprint is: 1671 9A23 ACB4 520A E7EE 00B0 7EC3 375F 164E B17B --ZPt4rx8FFjLCG7dd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7APANfsM3XxZOsXsRAk60AJ0aszxbZLWmorOWis56YCsapd+I9QCdHl/S Ipa63jRLiVM+VR8hQ4VZUds= =2Nw4 -----END PGP SIGNATURE----- --ZPt4rx8FFjLCG7dd-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message