rbeck@frc2.frc.ri.cmu.edu (Robert Beck) (09/29/90)
I wish to have incoming mail automatically incorporated into the
"inbox" folder. (I don't like to explicitly do it each time.)
I have tried:
In file ".forward" ->
| /usr/local/lib/slocal -user $USER
In file ".maildelivery"
To: * | A /usr/local/lib/rcvstore
This doesn't work - any idea what I am doing wrong?
(slocal & rcvstore reside in these places on my system)
Bob Beck
Field Robotics Center
Carnegie Mellon University
Pittsburgh, Pa.
Arpanet/Internet: rbeck@ri.cmu.edu
jdpeek@RODAN.ACS.SYR.EDU (Jerry Peek) (09/29/90)
> I wish to have incoming mail automatically incorporated into the > "inbox" folder. (I don't like to explicitly do it each time.) default - | A /usr/local/lib/rcvstore --Jerry Peek; Syracuse University Academic Computing Services; Syracuse, NY jdpeek@rodan.acs.syr.edu, JDPEEK@SUNRISE.BITNET +1 315 443-3995
trost@reed.bitnet (Bill Trost,Box 607,ext 640,) (09/30/90)
rbeck@frc2.frc.ri.cmu.edu (Robert Beck) writes: >I have tried: > >In file ".forward" -> >| /usr/local/lib/slocal -user $USER ... >This doesn't work - any idea what I am doing wrong? sendmail is rather picky about punctuation in the .forward. My .forward is "|/usr/new/lib/mh/slocal -user trost" When I remove the double-quotes from the .forward, errors like Sep 29 13:39:49 reed sendmail[28673]: AA28669: to=|/usr/new/lib/mh/slocal -user trost, delay=00:00:02, stat=unknown mailer error 1 appear in /usr/spool/mqueue/syslog. Add double quotes, and you should be fine. Does anyone know the details on how sendmail parses the .forward?
rickert@mp.cs.niu.edu (Neil Rickert) (09/30/90)
In article <15518@reed.UUCP> trost@reed.bitnet (Bill Trost,Box 607,ext 640,) writes: > >rbeck@frc2.frc.ri.cmu.edu (Robert Beck) writes: >>I have tried: >> >>In file ".forward" -> >>| /usr/local/lib/slocal -user $USER >... >>This doesn't work - any idea what I am doing wrong? > >sendmail is rather picky about punctuation in the .forward. My >.forward is > "|/usr/new/lib/mh/slocal -user trost" > >When I remove the double-quotes from the .forward, errors like > > Sep 29 13:39:49 reed sendmail[28673]: AA28669: to=|/usr/new/lib/mh/slocal -user trost, delay=00:00:02, stat=unknown mailer error 1 > >appear in /usr/spool/mqueue/syslog. Add double quotes, and you should >be fine. > >Does anyone know the details on how sendmail parses the .forward? The comments in the code (function include() in recipient.c) imply that the file is parsed assuming each line is a comma separated list. However when one examines the actual code it appears that under some circumstances it may be parsed as a blank separated list. The quoting avoids this. The other problem the original user has was in treating $USER literally. When sendmail is running, $USER is likely to evaluate to the person who is sending the mail, or to whoever started the sendmail daemon. A quick 'grep' through the code did not find this being replaced. -- =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= Neil W. Rickert, Computer Science <rickert@cs.niu.edu> Northern Illinois Univ. DeKalb, IL 60115. +1-815-753-6940
weisen@eniac.seas.upenn.edu (Neil Weisenfeld) (10/05/90)
In article <RBECK.90Sep29104141@hay.frc.ri.cmu.edu> rbeck@frc2.frc.ri.cmu.edu (Robert Beck) writes: > >In file ".forward" -> >| /usr/local/lib/slocal -user $USER > >This doesn't work - any idea what I am doing wrong? >(slocal & rcvstore reside in these places on my system) Try replacing $USER with your user id. I found that my system wasn't expanding it. Neil -- ( )(_) ( ) Neil Weisenfeld | 3900 Chestnut St. #233 ( ) (_)_ ( ) Computer Science and Engineering | Philadelphia, PA ( ) (_)( ) University of Pennsylvania | 19104 (_) (_) Class of 1991 | weisen@eniac.seas.upenn.edu