On Tuesday 27 November 2018 08:41:32 rhkra...@gmail.com wrote: > On Monday, November 26, 2018 09:51:49 PM Gene Heskett wrote: > > I even wrote a script to couple kmail so the incoming mail only > > exists few a few milliseconds in /var/mail. > > I don't understand -- what is your script doing? Is it doing it only > for spam?
No for everything that clamav gives a clean bill of health, it tells kmail to go get the mail when a mailfile in /var/mail is closed after procmail writes it there. Kmail looks at the headers and if spamd said it was spam, sorts it to the spam folder. procmail takes care of the viri so kmail never sees it at all. If not spam, it gets sorted into the appropriate mail folder by kmail. All triggered by inotifywait exiting with the name of the file, bash then takes the correct action and restarts inotifywait, all in a millisecobd or so. That bash script I called mailwatcher. An older version that might need tweaking for you system & names is on my web page in the sig. Be my guest. > > > I'm a lazy cuss, let the computer > > handle all that stuff, that is what I built it for, to work FOR me. > > And its been very happy being my slave. -- Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene>