How to forward email to a process?
    Andrew Moore 
    amoore at mooresystems.com
       
    Sun Nov  9 02:58:38 CST 2003
    
    
  
On Sat, Nov 08, 2003 at 06:06:03PM -0600, Bradley Miller wrote:
> Can someone tell me how I can send a copy of an email to a process?  For 
> instance, anything that comes in at someone at somewhere.com could also be 
> stored in a database ? ? ?   I'm using Qmail and would love to figure out 
> how this is done.
I recommend using procmail for delivery. You can then have
it send things through processes, to files, or to other
email addresses. In fact, you may already use procmail and
not know it. You can start in on your .procmailrc and see
how that works.
Something like this may help you out:
:0 c
| /usr/local/bin/InsertIntoDatabase.sh
Timo's procmail tips page:
http://www.uwasa.fi/~ts/info/proctips.html
and other pages may help you out.
-Andy
    
    
More information about the Kclug
mailing list