From owner-freebsd-questions Tue May 15 8:16:36 2001 Delivered-To: freebsd-questions@freebsd.org Received: from web14304.mail.yahoo.com (web14304.mail.yahoo.com [216.136.173.80]) by hub.freebsd.org (Postfix) with SMTP id 3268637B424 for ; Tue, 15 May 2001 08:16:31 -0700 (PDT) (envelope-from wildfiah@yahoo.com) Message-ID: <20010515151631.34386.qmail@web14304.mail.yahoo.com> Received: from [196.3.147.19] by web14304.mail.yahoo.com; Tue, 15 May 2001 08:16:30 PDT Date: Tue, 15 May 2001 08:16:30 -0700 (PDT) From: Wild Fyre Subject: Re: Procmail question. To: Francesco Casadei Cc: questions@freebsd.org In-Reply-To: <20010515105957.A2352@goku.kasby> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Is it possible to use 'mail' /usr/bin/mail to read the messages? If not how can i configure mutt to read the mail? --- Francesco Casadei wrote: > On Mon, May 14, 2001 at 11:34:21AM -0700, Wild Fyre > wrote: > > Hello ladies and gents, > > > > 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. > > > > > > Thanks in advance > > Stephan Weaver > > > > __________________________________________________ > > Do You Yahoo!? > > Yahoo! Auctions - buy the things you want at great > prices > > http://auctions.yahoo.com/ > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body > of the message > > > > end of the original message > > From procmailrc(5) manpage: > > [...] > Recipes > A line starting with ':' marks the beginning > of a recipe. > It has the following format: > > :0 [flags] [ : [locallockfile] ] > line)> > > [...] > 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=$HOME/Mail/ > ORGMAIL=$MAILDIR/wind/ > DEFAULT=$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 > -- > 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 > > > ATTACHMENT part 2 application/pgp-signature __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message