procmail
[Top] [All Lists]

Re: procmail inserting blank line in headers

1999-01-22 02:45:07
I had sent this but there was no response, so I wondered if it didn't get
thru.

On Mon, 18 Jan 1999, Philip Guenther wrote:



*selah* <soma(_at_)dorsai(_dot_)org> writes:
Our isp has disabled the use of .forward so I'm using the procmail script.
When I disable procmail I just disable the script.

Can you post the script to the procmail list?


Philip Guenther


This is the script:

          #!/bin/sh                                                            
                                                                               
          ORGMAIL=/mount/var/spool/mail/$LOGNAME
                                                                               
          if cd $HOME &&                                                       
           test -s $ORGMAIL &&                                                 
           lockfile -r0 -l3600 .newmail.lock 2>/dev/null                       
          then                                                                 
            trap "rm -f .newmail.lock" 1 2 3 15                                
            umask 077                                                          
            umask 077                                                          
            lockfile -l3600 -ml                                                
            cat $ORGMAIL >>.newmail &&                                         
             cat /dev/null >$ORGMAIL                                           
            lockfile -mu                                                       
            formail -s procmail <.newmail &&                                   
             rm -f .newmail                                                    
            rm -f .newmail.lock                                                
          fi                                                                   
          exit 0