SpamBGon + Unix email The SpamBGon design allows integration with standard UNIX mail handling UNIX mail processing looks like this: Remote sender -> local mail daemon (MTA; e.g. sendmail or exim) MTA looks for ~/.forward file MTA pipes mail through .forward .forward decides what to do with mail Can call filter program procmail from .forward
44
Embed
SpamBGon + Unix email The SpamBGon design allows integration with standard UNIX mail handling UNIX mail processing looks like this: Remote sender -> local.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
SpamBGon + Unix email
The SpamBGon design allows integration with standard UNIX mail handling
UNIX mail processing looks like this: Remote sender -> local mail daemon
(MTA; e.g. sendmail or exim) MTA looks for ~/.forward file MTA pipes mail through .forward .forward decides what to do with mail Can call filter program procmail
from .forward
Putting the parts together Tell .forward to filter your mail through
the procmail program:|/usr/bin/procmail -f-
Set up a .procmailrc file with the following rules:# PATH must include javaPATH=/bin:/usr/bin:/usr/local/binMAILDIR=$HOME/mymaildir:0fw|java BSFTest -k stuff ...
:0:* ^X-Spam-Status: SPAMmy-spam-folder
For More Info...
man procmail man procmailrc man exim man spamassassin
A*
The Basic Setup, Reprise
Puzzle game: set of states+moves Apply a move/action to a state to
generate a next state Group of all states reachable in some
single move from state s are the children/ successors of s
Whole thing forms a directed graph; possibly acyclic, but more usually possessing cycles
Every move associated with a cost: c(s,a,s’)=cost to go from s to s’ via a
Object: find min cost path from start to goal
Some Terminology
Start
Goal
Some Terminology
Start
GoalStates that have been visited; had all childrengenerated == “closed”
Some Terminology
Start
GoalStates that have been generated, but notexamined; children not generated == “open”
Some Terminology
Start
Goal“Open” set forms a “fringe” or “frontier”around closed set.
Some Terminology
Start
GoalGenerating children for s moves it from opento closed and expands frontier. Adds its children to open.
s
Some Terminology
Start
Goal
s
Length of shortest path from start to s: g(s)
Some Terminology
Start
Goal
s
Length of shortest path from start to s: g(s)
Note! May bemultiple paths to s --not guaranteed thatfirst path to s isshortest path to it!
Some Terminology
Start
Goal
s
Estimated shortest dist froms to goal == h(s)(this is the heuristic function)
h(s)
Some Terminology
Start
Goal
s
g(s)+h(s)=f(s)Estimated total cost fromstart to goal
h(s)
Search Strategies
Closed list (set) things can be ignored Hard problem: which open list (set) thing
do we examine next? Strategies:
Smallest h(s)
Search Strategies
Closed list (set) things can be ignored Hard problem: which open list (set) thing
do we examine next? Strategies:
Smallest h(s) -- “greedy” search
Search Strategies
Closed list (set) things can be ignored Hard problem: which open list (set) thing
do we examine next? Strategies:
Smallest h(s) -- “greedy” search Smallest g(s)
Search Strategies
Closed list (set) things can be ignored Hard problem: which open list (set) thing