procmail
[Top] [All Lists]

Forward and copy recipe

1996-09-04 18:18:01
I am trying to create a simple recipe that will forward a user's email to
another address AND place a copy in their inbox on this server.  Can
someone tell me what modifications need to be made to make this possible?

----- %< snip ----------

VERBOSE=on
SENDMAIL=/usr/sbin/sendmail
MAILDIR=$HOME/mail
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/log
FILEDIR=$HOME/fileserver

:0 c
* ^TO.*user_alias@
! username(_at_)host(_dot_)org

   :0 A
   inbox

:0
* ^TO.*username@
{
  :0 c
  ! username(_at_)host(_dot_)org

  :0 A
  INBOX
}

-------- %< snip --------


Thanks!

Mike

~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
    Syn-Work Media, Inc.   | WWW Development & Hosting | Life Safety    
       http://www.synwork.com | Systems Integration       | CCTV           
   mike(_at_)synwork(_dot_)com       | Voice/Data/Fiber          | Access 
Control 
     Flaq on IRC            | Dukane Distributor        | BICSI/RCDD     
                   :|:|:|: Powered By FreeBSD :|:|:|:
                     Turning PC's Into Workstations
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~

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