email client <---> filter <---> SMPT server
Rather than connecting directly to mail.myisp.com, you connect to 127.0.0.1 and the filter then connects to mail.myisp.com
Your filter looks like an SMTP server to your normal email client, and looks like an email client to your ISP's mail server.
The filter sees everthing going back and forth, so it can then mess about with the messages as it sees fit.
Start simple with a "logger" filter which just dumps everything to a file, so you get the hang of it.
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953