procmail
[Top] [All Lists]

Re: forward mechanism

1997-03-09 16:39:56

I recently install version  v3.11pre4 1995/10/29 of procmail on 
a dec3100 running a believe Ultrix 4.something, (uname doesn't 
work).

Here is procmail -v output:
procmail v3.11pre4 1995/10/29 written and created by Stephen R. van den Berg
                                                        <srb(_at_)cuci(_dot_)nl>

Submit questions/answers to the procmail-related mailinglist by sending to:
        <procmail(_at_)informatik(_dot_)rwth-aachen(_dot_)de>

And of course, subscription and information requests for this list to:
        <procmail-request(_at_)informatik(_dot_)rwth-aachen(_dot_)de>

Locking strategies:     dotlocking, flock()
Default rcfile:         $HOME/.procmailrc
System mailbox:         /var/spool/mail/$LOGNAME



NOTE: My logname is walt but the home directory is cs1272.

the .forward doesn't work and contains:

"|IFS=' '&&p=/stud/senior/cs1272/bin.dec/procmail&&test -f $p&&exec $p -Y 
f-||exit 75 #walt"


4)  What does your .procmailrc look like (including any INCLUDERC
    files)?

#Set on when debugging
VERBOSE=on
 
#Replace `mail' with your mail directory (Pine uses mail, Elm uses Mail)
MAILDIR=$HOME/pine_mail
     
#Directory for storing procmail log and rc files
PMDIR=$HOME/.procmail
     
LOGFILE=$PMDIR/log
INCLUDERC=$PMDIR/rc.testing
INCLUDERC=$PMDIR/rc.maillists


5)  What is the fully qualified path to the directory where Pine
    expects to find its folders?

~/pine_mail and spool is /var/spool/mail/$LOGNAME
on a NFS mounted directory on another machine.


6)  Can you capture and include the exact error message(s) you are
    receiving?

I ran the following script (as suggested in the procmail manpage):

#!/bin/sh
set -x
LOGNAME=walt
export LOGNAME

              ORGMAIL=/var/spool/mail/$LOGNAME

              if cd $HOME &&
               test -s $ORGMAIL &&
               lockfile -r0 -l1024 .newmail.lock 2>/dev/null
              then
                trap "rm -f .newmail.lock" 1 2 3 13 15
                umask 077
                lockfile -l1024 -ml
                cat $ORGMAIL >>.newmail &&
                 cat /dev/null >$ORGMAIL
                lockfile -mu
                formail -s procmail <.newmail &&
                 rm -f .newmail
                rm -f .newmail.lock
              fi
              exit 0



and recorded the following error:
ORGMAIL=/var/spool/mail/walt
+ cd /stud/senior/cs1272 
+ test -s /var/spool/mail/walt 
+ lockfile -r0 -l1024 .newmail.lock 
+ trap rm -f .newmail.lock 1 2 3 13 15 
+ umask 077 
+ lockfile -l1024 -ml 
lockfile: Can't determine your mailbox, who are you?
Usage: lockfile -nnn | -r nnn | -l nnn | -s nnn | -! | -ml | -mu | file ...
+ cat /var/spool/mail/walt 
+ cat /dev/null 
+ lockfile -mu 
lockfile: Can't determine your mailbox, who are you?
Usage: lockfile -nnn | -r nnn | -l nnn | -s nnn | -! | -ml | -mu | file ...
+ formail -s procmail 
procmail: Couldn't create "/var/spool/mail/1272"
procmail: Couldn't create "/var/spool/mail/1272"
procmail: Couldn't create "/var/spool/mail/1272"
procmail: Couldn't create "/var/spool/mail/1272"
procmail: Couldn't create "/var/spool/mail/1272"
+ rm -f .newmail.lock 
+ exit 0 



Paul                             <pobart(_at_)access(_dot_)digex(_dot_)net>
----------------------------------------------------------
Paul O. Bartlett, P.O. Box 857, Vienna, VA 22183-0857, USA
Finger, keyserver, or WWW for PGP 2.6.2 public key
Home Page:  http://www.access.digex.net/~pobart



<Prev in Thread] Current Thread [Next in Thread>