swestrup: (Default)
[personal profile] swestrup
Speaking of Linux and tools and stuff, I (vaguely) remember reading, years ago, about a method for setting up a spool directory such that any time a file was dropped into the directory, a daemon would immediately read the file and process it. I think there was also some sort of business involving named pipes, but I don't really recall. This may have been because the handling daemon was in another box than the spool directory -- IIRC this was part of a lan-wide printing setup.

Anyway, fast-forward to today, and I'm thinking of putting in 'Retrain' directories in all of the mail accounts on my mail server. Anytime the mail headers misclassify something as spam or nonspam, you simply drop the misclassified mail into the retrain directory, and it is automagically removed and trained as being in the opposite class as its headers suggest, and then re-delivered through the mail-filter system.

Now, clearly I can do all this with a cron task, but I want snappier responses. Ideally, there should only be a few seconds delay between dropping stuff into the retrain directory and getting it re-delivered correctly. Does anyone have any good ideas about how one goes about setting this up these days? If its any help, I have FAM up and running on the system (although I don't really know how it works.)

January 2017

S M T W T F S
1234567
891011121314
15161718192021
22232425262728
293031    

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 26th, 2025 05:07 pm
Powered by Dreamwidth Studios