Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!news.sgi.com!howland.erols.net!feed1.news.erols.com!insync!uuneo.neosoft.com!not-for-mail From: conrads@neosoft.com (Conrad Sabatier) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: .forward file format Date: 26 Oct 1996 05:47:17 GMT Organization: What? Me, organize? Lines: 51 Message-ID: <54s8l5$bqs@uuneo.neosoft.com> References: <54olal$h5u@uuneo.neosoft.com> <54orfi$jte@uuneo.neosoft.com> <54rg7t$9cj@nntp.Stanford.EDU> <54rote$bsc@nntp.Stanford.EDU> Reply-To: conrads@neosoft.com (Conrad Sabatier) NNTP-Posting-Host: 206.27.165.146 In article <54rote$bsc@nntp.Stanford.EDU>, Annelise Anderson <andrsn@andrsn.stanford.edu> wrote: >Annelise Anderson (andrsn@andrsn.stanford.edu) wrote: >: Conrad Sabatier (conrads@neosoft.com) wrote: > >: : Could it be because I'm using popclient to retrieve my mail from my ISP's >: : POP3 server? > >: Yes, I think so. I get some mail from a POP3 server and it goes >: directly into a mail box and never gets processed by procmail. >: Other mail comes to the queue, and when I process the queue the mail >: is then dealt with by the .forward file; my has > >: "|IFS=' '&&p=/usr/local/bin/procmail&&test -f $p&&exec $p -Yf-||exit 75 #andrsn" > >: which looks pretty much like yours. > >: However, I think you can tell the popserver to put the mail wherever you >: want it--you might want to try telling it to put it in /var/spool/mqueue. > >This won't work--but the man page for procmail says that it will process >an already filled (the key word to search for) mailbox. There's a >script for doing so that assumes the mail is put in /var/mail/username. >So if you run popclient and then the script (extract it from the man >page) it will process the mail in accordance with your .procmailrc. Yes...but...*how*??? My shell programming skills leave much to be desired. As I said, running procmail manually (the script from man procmail mentioned above) on an already-loaded /var/mail/$LOGNAME mailbox works beautifully. OK, so popclient stuffs everything into the /var/mail/$LOGNAME inbox, and then I need to run procmail (the script) on it. So how can I automate this process? Or can I pipe popclient's output to sendmail/procmail? Help? Please? I *really* need to get this thing working! The junk mail these days is driving me nuts! Many thanks! -- Conrad Sabatier | conrads@neosoft.com | Eschew obfuscation. http://www.neosoft.com/~conrads |