On Fri, 2010-07-09 at 18:23 +0100, Martin Gregorie wrote: > On Fri, 2010-07-09 at 12:12 -0500, Jose Luis Marin Perez wrote: > > Procmail Using this understanding, my question is how to notify the user via > > email, would read the contents of the SPAM folder? excuse my insistence but > > I do not understand, I hope you can help me with this. > > Procmail can run a shell script as well as simply dumping or filing the > message. A shell script should be easily able to do whatever you want > with the spam message and then call sendmail to send a 'spam received' > message to the user.
*shudder* I'm with Charles here. While you're of course perfectly correct... Do rate limit it. Don't generate an annoying "you've got spam" [1] message for each spam received. That'd be a horribly poor exchange rate. Where's the advantage, if instead of deleting a spam in my Inbox, I have to delete a spam announcing message in my Inbox -- plus chasing the spam folder, to actually delete the spam, too. [1] Anyone else have that old AOL commercial in mind, with the female voice announcing an incoming mail? ;) -- char *t="\10pse\0r\0dtu...@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4"; main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1: (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}