Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias alias Import alias Import alias Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias alias alias alias alias Assign NameStore Dict ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Call NameLoad If AttributeLoad NameLoad attr body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad Call NameLoad Call AttributeLoad NameLoad attr Slice Num decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore BinOpAdd BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr handlers ExceptHandler body Assign NameStore BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad handlers ExceptHandler body Assign NameStore BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body TryExcept body If CompareNotEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore BinOpAdd BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str Call AttributeLoad Str attr NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str NameLoad Return SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Call AttributeLoad Str attr Assign NameStore BinOpAdd AttributeLoad NameLoad attr Str AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr handlers ExceptHandler body Assign NameStore BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore BinOpAdd AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr AugAssignAdd NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str handlers ExceptHandler body Assign NameStore BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler body Assign NameStore BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler body Assign NameStore BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler body Assign NameStore BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr If CompareIn NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad orelse Assign NameStore BinOpAdd BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Print NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body TryExcept body If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Str Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str Call NameLoad NameLoad Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Assign NameStore BinOpAdd Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad NameLoad Str handlers ExceptHandler body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad Assign NameStore Num For NameStore Call AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore Num If CompareGt Call NameLoad NameLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Call AttributeLoad Str attr Str Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad NameLoad Str Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str ExceptHandler type NameLoad name NameStore body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Print BinOpMod Str Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Call AttributeLoad Str attr orelse Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad Assign AttributeStore NameLoad attr NameLoad AugAssignAdd AttributeStore NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str Call NameLoad Call NameLoad NameLoad Str NameLoad Str Call NameLoad NameLoad Str Call NameLoad NameLoad orelse Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AugAssignAdd AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Call AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr NameLoad If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str If CompareEq NameLoad Str body TryExcept body Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num NameLoad handlers ExceptHandler body Assign NameStore BinOpAdd BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str Call NameLoad NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body While CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad BinOpMult BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad BinOpMult BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Str Assign NameStore Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore BinOpAdd BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Call AttributeLoad NameLoad attr Str For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call NameLoad If AttributeLoad NameLoad attr body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareGt Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num body Assign AttributeStore NameLoad attr BinOpMod BinOpAdd AttributeLoad NameLoad attr Num BinOpSub Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Str Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr If CompareGt NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Num BinOpSub NameLoad Num Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Num If CompareGt Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad orelse Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Num Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword Call NameLoad keyword AttributeLoad NameLoad attr keyword BinOpAdd BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad SubscriptLoad NameLoad Slice Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword NameLoad If NameLoad body Assign AttributeStore NameLoad attr Call NameLoad NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Call AttributeLoad Str attr Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr Call NameLoad NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad TryExcept body Assign AttributeStore NameLoad attr NameLoad handlers ExceptHandler body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Assign NameStore Num orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Str Return NameLoad decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr CompareLtE AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr orelse If BoolOpAnd AttributeLoad NameLoad attr CompareGt AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Str handlers ExceptHandler type AttributeLoad NameLoad attr body If CompareGtE AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Assign NameStore Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index SubscriptLoad NameLoad Index Num Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num handlers ExceptHandler type AttributeLoad NameLoad attr body If CompareGtE AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Assign NameStore Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Str handlers ExceptHandler type AttributeLoad NameLoad attr body If CompareGtE AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Assign NameStore Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad ExceptHandler type AttributeLoad NameLoad attr body If CompareGtE AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Assign NameStore Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num handlers ExceptHandler type AttributeLoad NameLoad attr body If CompareGtE AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Assign NameStore Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If CompareEq NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Assign NameStore AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Str If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Str orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Str orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Str orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Str orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore NameLoad If CompareEq Call AttributeLoad NameLoad attr Str body Assign NameStore NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore NameLoad orelse Assign NameStore Str Return NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Assign NameStore NameLoad If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Print BinOpAdd Str NameLoad Assign NameStore Call NameLoad If NameLoad body Print BinOpMod Str NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Print Str orelse Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body With Call NameLoad AttributeLoad NameLoad attr Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr body For NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad body For NameStore NameLoad body For NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad body Assign SubscriptStore NameLoad Index BinOpMod Str TupleLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Dict Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr ExceptHandler body Assign NameStore Dict Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd Call NameLoad NameLoad Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr
N/A N/A 
Milter for LaikaBOSS

emails can be blocked according to laikaboss disposition.

The configuration is reloaded periodically.

The milter can be configured to write emails to a local filesystem. It is recommended that LaikaBOSS be used for archival,
but this option may assist with debugging.

Logging via syslog hardcoded to local0 with tag defined in config
Output: syslog.alert:       per email/recipient logs formatted in laika legacy log format
        syslog.debug:       Debug Information 
        syslog.err          Error Information

laika legacy log format:
#filename|messageid|instance|flags|disposition|attachments|sender|client IP|recipient|server IP|date|response|queue ID||scantime|Subject

The debug logs contain a per-connection randomly generated ID. This is not the SMTP server queue ID because it is not available at the
start of the connection for some MTAs. This helps correlate actions on the same connection.

File handle limit is a common cause of crashing for milter. Two main limitations are in play:

1. Typical per process file handle limits, ulimit -n, usually 1024, can be adjusted through typical means.
2. FD_SETSIZE limit in select(), also usually 1024. See SM_CONF_POLL to enable poll() in libmilter.

The config item maxFiles is designed to help limit consumption of file handles after the specified limit is reached. 
This mechanism may help prevent reaching file handle limits, but may not fully prevent reaching file handle limit on
servers that process many email simultaneously. An as alternative to increasing these limits, one might running more
instances of the milter server and load balance across them.


helowhitelist allows a whitelist of milter clients and STMP clients for which mail is not scanned. The purpose it to allow all the mail
from an MTA to be sent to the milter but exempt some clients/relays from scanning.

For example, given the following json file:

{
  "group": {
    "gateway": [
      "10.1.200.1",
      "10.1.200.2",
      "10.1.200.3",
      "10.1.200.4"
    ],
    "internala": [
      "192.168.100.1",
      "192.168.100.2"
    ],
    "internalb": [
      "192.168.101.1",
      "192.168.101.2"
    ],
    "localhost": [
      "127.0.0.1"
    ]
  },
  "exclusions": {
    "gateway": [
      "internala",
      "internab"
    ],
    "localhost": [
      "localhost"
    ]
  }
}

If the MTAs in group gateway are connected to this milter, then emails from from the systems in groups internala and internalb will not be scanned (but emails from other upstream servers will be). Localhost to localhost email is also exempted.

 N/A sys N/A traceback N/A os N/A StringIO N/A re N/A json N/A Milter N/A resource N/A time time strftime N/A socket N/A syslog N/A zmq N/A datetime N/A random N/A ConfigParser subprocess Popen PIPE STDOUT N/A zlib N/A uuid N/A cPickle pickle email.utils formatdate email.utils parsedate_tz email.utils mktime_tz laikaboss.objectmodel ExternalObject ExternalVars laikaboss.constants level_minimal level_metadata level_full laikaboss.clientLib Client flagRollup getAttachmentList dispositionFromResult finalDispositionFromResult N/A global_whitelist N/A LaikaMilter N/A N/A Milter Base N/A N/A 
    Main Milter class
    libmilter uses one instance per connection and closes
    
    1) Create Milter.Factory referencing this class
    2) Start Milter
    
     __init__ N/A N/A self N/A N/A N/A N/A self altConfig None N/A N/A N/A len N/A sys argv 2 N/A N/A N/A self altConfig N/A N/A sys argv N/A 1 N/A N/A self fph None N/A N/A self fpb None N/A N/A self headers N/A N/A N/A self fileBuffer N/A N/A self rulesMatched N/A N/A self warnings N/A N/A self sender N/A N/A self receiver N/A N/A self disposition N/A N/A self dispositions N/A N/A self scanPerformedOn N/A N/A self subject N/A N/A self qid N/A N/A self messageID N/A N/A self messageDate N/A N/A self attachments N/A N/A self CUSTOMHELO N/A N/A self CUSTOMFROM N/A N/A self CUSTOMORCPT N/A N/A N/A self milterConfig N/A MilterConfig N/A N/A self altConfig N/A N/A N/A N/A self milterConfig configFileLoc N/A self altConfig N/A N/A N/A N/A self milterConfig loadAll N/A N/A self archiveFileName N/A milterConfig storeDir N/A N/A self logger logger N/A N/A self startTimeDT None N/A N/A self startTime None N/A N/A self endTime None N/A N/A self startTimeZMQ None N/A N/A self endTimeZMQ None N/A N/A self rtnToMTA N/A Milter CONTINUE N/A N/A self alreadyScanned False N/A N/A self uuid N/A N/A str N/A N/A uuid uuid4 N/A -12 N/A abort N/A N/A self N/A N/A N/A N/A N/A log N/A N/A N/A N/A self uuid  Aborted QID:  N/A self qid  Attempting to send to direct to EOM N/A N/A N/A N/A self logger writeLog N/A syslog LOG_DEBUG N/A %s N/A str log N/A N/A N/A self eom N/A N/A N/A N/A log N/A N/A self uuid  Uncaught Exception in Abort N/A N/A N/A N/A self logger writeLog N/A syslog LOG_ERR N/A %s N/A str log N/A N/A Milter CONTINUE N/A unknown N/A N/A self cmd N/A N/A N/A log N/A N/A N/A self uuid  Unknown Callback Received:  N/A str cmd N/A N/A N/A N/A self logger writeLog N/A syslog LOG_DEBUG N/A %s N/A str log N/A N/A Milter CONTINUE N/A hello N/A N/A self heloname N/A N/A N/A returnval N/A Milter CONTINUE N/A N/A N/A N/A N/A N/A self logger writeLog N/A syslog LOG_DEBUG N/A %s hello:%s client_addr:%s if_addr:%s N/A N/A self uuid N/A str heloname N/A str N/A N/A self _getClientAddr N/A str N/A N/A self _getIfAddr N/A N/A self CUSTOMHELO heloname N/A N/A N/A N/A log N/A N/A self uuid  Uncaught Exception in Hello N/A N/A N/A N/A self logger writeLog N/A syslog LOG_ERR N/A %s N/A str log N/A returnval N/A envfrom N/A N/A self f N/A str N/A N/A N/A N/A N/A N/A self CUSTOMFROM N/A N/A N/A N/A self __init__ N/A N/A self startTime N/A N/A time time N/A N/A self startTimeDT N/A N/A N/A datetime datetime now N/A N/A N/A N/A self milterConfig mode shutdown N/A N/A log N/A N/A N/A N/A self uuid  Milter in Maint mode, returning [Sender: N/A N/A join f ] N/A N/A N/A N/A self logger writeLog N/A syslog LOG_DEBUG N/A %s log N/A N/A N/A N/A self milterConfig dispositionModes N/A N/A N/A InMaintMode lower N/A log N/A N/A self uuid  envFrom:  N/A log N/A N/A join f N/A N/A N/A N/A self logger writeLog N/A syslog LOG_DEBUG N/A %s log N/A N/A self CUSTOMFROM f N/A N/A self CUSTOMFROM N/A N/A N/A self CUSTOMFROM replace < N/A N/A self CUSTOMFROM N/A N/A N/A self CUSTOMFROM replace > N/A N/A self sender N/A self CUSTOMFROM N/A N/A self fph N/A N/A StringIO StringIO N/A N/A self fpb N/A N/A StringIO StringIO N/A N/A N/A N/A log N/A N/A self uuid  Uncaught Exception in EnvFrom N/A N/A N/A N/A self logger writeLog N/A syslog LOG_ERR N/A %s N/A str log N/A N/A Milter CONTINUE N/A envrcpt N/A N/A self to N/A str N/A N/A N/A N/A N/A N/A N/A self CUSTOMORCPT append to N/A log N/A N/A self uuid  envRcpt:  N/A rcpt N/A N/A join N/A self CUSTOMORCPT N/A log rcpt N/A N/A N/A N/A self logger writeLog N/A syslog LOG_DEBUG N/A %s log N/A N/A self receiver rcpt N/A N/A self receiver N/A N/A N/A self receiver replace < N/A N/A self receiver N/A N/A N/A self receiver replace > N/A N/A N/A N/A log N/A N/A self uuid  Uncaught Exception in EnvRcpt N/A N/A N/A N/A self logger writeLog N/A syslog LOG_ERR N/A %s N/A str log N/A N/A Milter CONTINUE N/A header N/A N/A self name val N/A N/A N/A N/A N/A lname N/A N/A name lower N/A tname N/A N/A name strip N/A tval N/A N/A val strip N/A headerstring N/A %s: %s
 N/A name val N/A N/A N/A N/A self headers append headerstring N/A N/A N/A self _getSpecialHeaderLines lname val N/A N/A N/A N/A log N/A N/A self uuid  Uncaught Exception in Header N/A N/A N/A N/A self logger writeLog N/A syslog LOG_ERR N/A %s N/A str log N/A N/A Milter CONTINUE N/A eoh N/A N/A self N/A N/A N/A N/A N/A N/A N/A self _writeHeaderToFP N/A N/A N/A N/A log N/A N/A self uuid  Uncaught Exception in EOH N/A N/A N/A N/A self logger writeLog N/A syslog LOG_ERR N/A %s N/A str log N/A N/A Milter CONTINUE N/A body N/A N/A self chunk N/A N/A N/A N/A N/A N/A isinstance chunk str N/A N/A chunk N/A N/A chunk replace N/A N/A N/A N/A self fpb write chunk N/A N/A N/A N/A self fpb flush N/A N/A N/A N/A log N/A N/A self uuid  Uncaught Exception in Body N/A N/A N/A N/A self logger writeLog N/A syslog LOG_ERR N/A %s N/A str log N/A N/A Milter CONTINUE N/A eom N/A N/A self N/A N/A N/A N/A N/A N/A N/A self _getQID N/A checklist N/A %s_%s N/A N/A str N/A N/A self _getIfAddr N/A str N/A N/A self _getClientAddr N/A N/A checklist global_whitelist N/A N/A N/A N/A N/A self logger writeLog N/A syslog LOG_DEBUG N/A %s ACCEPT ON WHITELIST: qid:%s client_addr:%s if_addr:%s N/A N/A self uuid N/A str N/A self qid N/A str N/A N/A self _getClientAddr N/A str N/A N/A self _getIfAddr N/A N/A self rtnToMTA N/A Milter ACCEPT N/A N/A N/A N/A self alreadyScanned N/A N/A N/A N/A self _getBufferFromFP N/A N/A N/A self _generateArchiveFileName N/A N/A self rtnToMTA N/A N/A self _dispositionMessage N/A N/A N/A N/A self fph write N/A %s: %s
 N/A N/A N/A self milterConfig MailscanResultHeaderString N/A self disposition N/A N/A N/A N/A self fph write N/A %s: %s
 N/A X-Flags N/A self rulesMatched N/A N/A N/A self _getBufferFromFP N/A N/A N/A N/A self fph close N/A N/A N/A N/A self fpb close N/A N/A N/A self _writeFileToDisk N/A N/A N/A self _addHeaders N/A N/A N/A self _logDetails N/A N/A N/A self _logEachEnvelope N/A log N/A N/A N/A N/A N/A self uuid N/A self qid  response  N/A N/A N/A self milterConfig _unconvertDispositionMode N/A self rtnToMTA N/A N/A N/A N/A self logger writeLog N/A syslog LOG_DEBUG N/A %s N/A str log N/A N/A self alreadyScanned True N/A N/A log N/A N/A N/A N/A self uuid  File  N/A self archiveFileName  Already scanned N/A N/A N/A N/A self logger writeLog N/A syslog LOG_DEBUG N/A %s N/A str log N/A N/A N/A Exception N/A e N/A N/A N/A exc_type exc_value exc_traceback N/A N/A sys exc_info N/A ERROR_INFO N/A repr N/A N/A traceback format_exception exc_type exc_value exc_traceback N/A ERROR N/A %s ERROR EOM: RETURNING DEFAULT (%s)   %s N/A N/A self uuid N/A self rtnToMTA ERROR_INFO N/A ERROR N/A N/A N/A N/A self logger writeLog N/A syslog LOG_ERR N/A %s N/A str ERROR N/A N/A self rtnToMTA N/A _addHeader N/A N/A self name value N/A N/A N/A N/A N/A value N/A N/A N/A N/A self addheader name value N/A N/A N/A Exception N/A e N/A N/A N/A exc_type exc_value exc_traceback N/A N/A sys exc_info N/A log N/A %s Error adding header %s N/A N/A self uuid N/A repr N/A N/A traceback format_exception exc_type exc_value exc_traceback N/A N/A N/A N/A self logger writeLog N/A syslog LOG_ERR N/A %s N/A str log N/A log N/A %s: %s N/A name value N/A N/A N/A N/A self logger writeLog N/A syslog LOG_ERR N/A %s Tried to Add: %s N/A N/A self uuid N/A str log N/A _addHeaders N/A N/A self N/A N/A N/A N/A N/A self milterConfig ApplyMailscanResultHeader N/A N/A N/A N/A self _addHeader N/A N/A self milterConfig MailscanResultHeaderString N/A self disposition N/A N/A N/A self milterConfig ApplyCustomHeaders N/A N/A N/A N/A self _addHeader N/A X-%s-HELO N/A N/A self milterConfig CustomHeaderBase N/A self CUSTOMHELO N/A N/A N/A self _addHeader N/A X-%s-FROM N/A N/A self milterConfig CustomHeaderBase N/A self sender N/A N/A N/A self _addHeader N/A X-%s-ORCPT N/A N/A self milterConfig CustomHeaderBase N/A self receiver N/A _getMboxLine N/A N/A self N/A N/A N/A cleanSender N/A N/A N/A self sender replace < N/A cleanSender N/A N/A cleanSender replace > N/A POSIXtime N/A N/A time asctime N/A N/A N/A self startTimeDT timetuple N/A envelope_from_extra N/A mbox_from_line N/A N/A N/A N/A N/A From  cleanSender N/A str POSIXtime envelope_from_extra N/A mbox_from_line N/A _checkFilePath N/A N/A self path N/A N/A N/A N/A N/A N/A N/A N/A N/A os path exists path N/A N/A N/A N/A os makedirs path N/A N/A N/A OSError N/A N/A log N/A Could not create  path N/A N/A N/A N/A self logger writeLog N/A syslog LOG_ERR N/A %s N/A str log N/A _checkOKToContinueWithOpenFiles N/A N/A self N/A N/A N/A okToContinue True N/A N/A N/A pid N/A N/A os getpid N/A N/A N/A fd_dir N/A N/A N/A os path join /proc/ N/A str pid fd/ N/A N/A N/A N/A N/A N/A N/A self logger writeLog N/A syslog LOG_DEBUG N/A Open Files:  Problem With PID:  N/A str pid N/A numOpenFilesOutput 0 N/A file N/A N/A os listdir fd_dir N/A N/A numOpenFilesOutput 1 N/A N/A N/A int numOpenFilesOutput N/A int N/A N/A self milterConfig maxFiles N/A N/A N/A N/A N/A self logger writeLog N/A syslog LOG_ERR N/A N/A N/A N/A N/A Open Files:  N/A str numOpenFilesOutput , Returning  N/A str N/A N/A N/A self milterConfig dispositionModes N/A N/A N/A OverLimit lower  to avoid shutdown at  N/A str N/A N/A self milterConfig maxFiles N/A okToContinue False N/A N/A N/A N/A N/A self logger writeLog N/A syslog LOG_DEBUG N/A N/A N/A N/A N/A N/A self milterConfig milterInstance  Open Files:  N/A str numOpenFilesOutput  of  N/A str N/A N/A self milterConfig maxFiles N/A N/A N/A ValueError N/A N/A N/A N/A N/A self logger writeLog N/A syslog LOG_ERR Value Error in checkOpenFiles N/A N/A Exception N/A e N/A N/A N/A exc_type exc_value exc_traceback N/A N/A sys exc_info N/A N/A ERROR EOM  %s N/A repr N/A N/A traceback format_exception exc_type exc_value exc_traceback N/A N/A N/A N/A self logger writeLog N/A syslog LOG_ERR Error in checkOpenFiles N/A okToContinue N/A _dispositionMessage N/A N/A self N/A N/A N/A N/A self startTimeZMQ N/A N/A time time N/A N/A N/A N/A self _checkOKToContinueWithOpenFiles N/A N/A N/A self disposition Over Process File Handle Limit N/A N/A N/A N/A self logger writeLog N/A syslog LOG_ERR N/A Disposition: %s N/A str N/A self disposition N/A rtnToMTA N/A N/A N/A self milterConfig dispositionModes N/A N/A N/A OverLimit lower N/A N/A dispositioner N/A Dispositioner N/A self logger N/A success N/A N/A dispositioner zmqGetFlagswithRetry N/A N/A self milterConfig zmqMaxRetry self N/A N/A self disposition N/A dispositioner strScanResult N/A N/A self scanPerformedOn N/A dispositioner scanServerToUse N/A N/A self rulesMatched N/A N/A join N/A dispositioner match N/A N/A self warnings N/A dispositioner warnings N/A N/A self attachments N/A dispositioner attachements N/A N/A N/A self _dispositionMessage_AttachmentHelper N/A N/A self dispositions N/A dispositioner dispositions N/A N/A N/A N/A self logger writeLog N/A syslog LOG_DEBUG N/A %s Disposition: %s N/A N/A self uuid N/A str N/A dispositioner dispositions N/A rtnToMTA N/A N/A self _getReturnToMTAValue dispositioner N/A N/A N/A dispositioner close N/A N/A self endTimeZMQ N/A N/A time time N/A rtnToMTA N/A _dispositionMessage_AttachmentHelper N/A N/A self N/A N/A N/A N/A N/A len N/A self attachments 80 N/A N/A commaLoc N/A N/A N/A self attachments find , 80 300 N/A attachmentsReduced N/A N/A self attachments N/A commaLoc N/A N/A self attachments attachmentsReduced N/A N/A self attachments (truncated) N/A True N/A _generateArchiveFileName N/A N/A self N/A N/A N/A N/A N/A self milterConfig storeEmails N/A N/A N/A self archiveFileName N/A N/A self milterConfig storeDir N/A now N/A N/A N/A datetime datetime now N/A unixNow N/A N/A time time N/A strCustomDateFolderFormat N/A N/A now strftime N/A N/A self milterConfig customFolderDateFormat N/A randNum N/A str N/A N/A random random N/A uniqueNum N/A self qid N/A N/A uniqueNum N/A N/A uniqueNum randNum N/A ifAddr N/A N/A self _getIfAddr N/A clientAddr N/A N/A self _getClientAddr N/A N/A self archiveFileName strCustomDateFolderFormat N/A N/A N/A self _checkFilePath N/A self archiveFileName N/A N/A self archiveFileName N/A N/A N/A N/A N/A N/A N/A email. N/A str N/A int unixNow . uniqueNum . N/A str clientAddr . N/A str ifAddr N/A N/A N/A self archiveFileName N/A _getBufferFromFP N/A N/A self N/A N/A N/A N/A N/A N/A self fph flush N/A N/A N/A N/A self fpb flush N/A N/A self fileBuffer N/A N/A N/A self fph getvalue N/A N/A self fileBuffer N/A N/A N/A self fpb getvalue N/A _getClientAddr N/A N/A self N/A N/A N/A Addr N/A N/A self getsymval {client_addr} N/A Addr N/A _getIfAddr N/A N/A self N/A N/A N/A Addr N/A N/A self getsymval {if_addr} N/A Addr N/A _getQID N/A N/A self N/A N/A N/A N/A self qid N/A N/A self getsymval {i} N/A _getReturnToMTAValue N/A N/A self dispositioner N/A N/A N/A N/A N/A N/A N/A dispositioner strScanResult lower N/A N/A self milterConfig dispositionModes N/A N/A rtnToMTA N/A N/A N/A self milterConfig dispositionModes N/A N/A N/A N/A dispositioner strScanResult lower N/A N/A rtnToMTA N/A N/A N/A self milterConfig dispositionModes N/A default N/A N/A N/A N/A self logger writeLog N/A syslog LOG_ERR N/A Disposition: %s (lc) was not in available dispositions, using default (%s) N/A N/A str N/A N/A N/A dispositioner strScanResult lower N/A str N/A N/A N/A self milterConfig dispositionModes N/A default N/A rtnToMTA N/A _getSpecialHeaderLines N/A N/A self lname val N/A N/A N/A N/A lname subject N/A N/A N/A self subject val N/A N/A lname message-id N/A N/A N/A self messageID val N/A N/A self messageID N/A N/A N/A self messageID replace < N/A N/A self messageID N/A N/A N/A self messageID replace > N/A N/A lname date N/A N/A N/A N/A N/A self messageDate N/A formatdate N/A mktime_tz N/A parsedate_tz N/A N/A N/A val split N/A 0 True N/A N/A N/A N/A log N/A N/A N/A N/A self uuid  Error Parsing  N/A str val  to RFC822 Date N/A N/A N/A N/A self logger writeLog N/A syslog LOG_ERR N/A %s N/A str log N/A _logDetails N/A N/A self N/A N/A N/A log N/A N/A self uuid N/A  Flags: %s N/A self rulesMatched N/A N/A N/A N/A self logger writeLog N/A syslog LOG_DEBUG N/A %s N/A str log N/A _logEachEnvelope N/A N/A self N/A N/A N/A N/A N/A len N/A self CUSTOMORCPT 0 N/A N/A individualRCPT N/A N/A N/A self CUSTOMORCPT pop N/A individualRCPT N/A N/A individualRCPT replace < N/A individualRCPT N/A N/A individualRCPT replace > N/A N/A N/A self _logMail individualRCPT N/A _logMail N/A N/A self individualReceiver N/A N/A N/A N/A N/A self rulesMatched None N/A N/A N/A self rulesMatched N/A N/A self endTime N/A N/A time time N/A timeDiff N/A int N/A N/A N/A self endTime N/A self startTime 100000 N/A timeDiffZMQ N/A int N/A N/A N/A self endTimeZMQ N/A self startTimeZMQ 100000 N/A log N/A %s|%s|%s|%s|%s|%s|%s|%s|%s|%s|%s|%s|%s|%s|%s|%s N/A N/A N/A self _logMail_sanitize N/A self archiveFileName N/A N/A self _logMail_sanitize N/A self messageID N/A N/A self _logMail_sanitize N/A N/A self milterConfig milterInstance N/A N/A self _logMail_sanitize N/A self rulesMatched N/A N/A self _logMail_sanitize N/A self dispositions N/A N/A self _logMail_sanitize N/A self attachments N/A N/A self _logMail_sanitize N/A self sender N/A N/A self _logMail_sanitize N/A N/A self _getClientAddr N/A N/A self _logMail_sanitize individualReceiver N/A N/A self _logMail_sanitize N/A N/A self _getIfAddr N/A N/A self _logMail_sanitize N/A self messageDate N/A N/A self _logMail_sanitize N/A N/A N/A self milterConfig _unconvertDispositionMode N/A self rtnToMTA N/A N/A self _logMail_sanitize N/A self qid N/A N/A self _logMail_sanitize N/A N/A self _logMail_sanitize timeDiffZMQ N/A N/A self _logMail_sanitize N/A self subject N/A N/A N/A N/A self logger writeLog N/A syslog LOG_ALERT N/A %s N/A str log N/A _logMail_sanitize N/A N/A self inputString N/A N/A N/A strInputString N/A str inputString N/A log_delimiter | N/A log_delimiter_replacement _ N/A N/A N/A strInputString replace log_delimiter log_delimiter_replacement N/A _writeFileToDisk N/A N/A self N/A N/A N/A N/A self archiveFileName N/A N/A N/A N/A fp N/A open N/A self archiveFileName wb N/A N/A N/A fp write N/A self fileBuffer N/A N/A N/A fp flush N/A N/A N/A fp close N/A N/A N/A IOError N/A N/A log N/A N/A N/A N/A self uuid  Could not open  N/A self archiveFileName  for writing N/A N/A N/A N/A self logger writeLog N/A syslog LOG_ERR N/A %s N/A str log N/A _writeHeaderToFP N/A N/A self N/A N/A N/A N/A N/A N/A self fph write N/A N/A N/A self _getMboxLine N/A header N/A self headers N/A N/A N/A N/A N/A self fph write header N/A clientAddr N/A N/A self _getClientAddr N/A N/A N/A N/A self fph write N/A X-%s-HELO: %s [%s]
 N/A N/A N/A self milterConfig CustomHeaderBase N/A self CUSTOMHELO clientAddr N/A N/A N/A N/A self fph write N/A X-%s-FROM: %s
 N/A N/A N/A self milterConfig CustomHeaderBase N/A self sender N/A N/A N/A N/A self fph write N/A X-%s-ORCPT: %s
 N/A N/A N/A self milterConfig CustomHeaderBase N/A self receiver N/A N/A N/A N/A self fpb write N/A N/A Dispositioner N/A N/A N/A 
    Dispositioner: Class used to Dispostion (and with LaikaBOSS, determine response to MTA) input email
     __init__ N/A N/A self logger N/A N/A N/A N/A self altConfig None N/A N/A self client None N/A N/A N/A len N/A sys argv 2 N/A N/A N/A self altConfig N/A N/A sys argv N/A 1 N/A N/A self match N/A N/A N/A self strScanResult SCAN ERROR N/A N/A self dispositions SCAN ERROR N/A N/A self warnings N/A N/A self scanServerToUse None N/A N/A self numScanSigsMatched -1 N/A N/A self currentScanServerNum -1 N/A N/A self milterConfig N/A MilterConfig N/A N/A self altConfig N/A N/A N/A N/A self milterConfig configFileLoc N/A self altConfig N/A N/A N/A N/A self milterConfig loadAll N/A N/A self logger logger N/A N/A self attachements N/A close N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self client close N/A N/A N/A N/A N/A N/A N/A self logger writeLog N/A syslog LOG_ERR N/A N/A self uuid  ERROR attempting to close ZMQ context N/A zmqGetFlagswithRetry N/A N/A self numRetries milterContext N/A N/A N/A sendResponse N/A N/A self _zmqGetFlags numRetries milterContext N/A _getNextScanServer N/A N/A self N/A N/A N/A N/A N/A len N/A N/A self milterConfig servers 1 N/A N/A N/A self currentScanServerNum N/A N/A N/A self currentScanServerNum 1 N/A N/A len N/A N/A self milterConfig servers 1 N/A N/A self scanServerToUse N/A N/A N/A self milterConfig servers N/A N/A self currentScanServerNum N/A N/A N/A self scanServerToUse N/A N/A N/A self milterConfig servers N/A 0 N/A N/A self scanServerToUse N/A _getRandomScanServer N/A N/A self N/A N/A N/A randServer 0 N/A server N/A numServers N/A len N/A N/A self milterConfig servers N/A N/A numServers 1 N/A N/A randServer N/A N/A random randint 0 N/A numServers 1 N/A N/A self scanServerToUse N/A N/A N/A self milterConfig servers N/A randServer N/A N/A self scanServerToUse N/A _zmqGetFlags N/A N/A self numRetries milterContext N/A N/A N/A REQUEST_TIMEOUT N/A N/A milterContext milterConfig zmqTimeout N/A gotResponseFromScanner -1 N/A N/A N/A len N/A N/A self milterConfig servers 0 N/A N/A SERVER_ENDPOINT N/A N/A self _getNextScanServer N/A gotResponseFromScanner -1 N/A gotResponseFromScanner N/A N/A self _zmqSendBuffer milterContext numRetries REQUEST_TIMEOUT SERVER_ENDPOINT N/A N/A log No Scan Servers Defined N/A N/A N/A N/A self logger writeLog N/A syslog LOG_DEBUG N/A %s N/A str log N/A gotResponseFromScanner N/A _zmqSendBuffer N/A N/A self milterContext numRetries REQUEST_TIMEOUT SERVER_ENDPOINT N/A N/A N/A gotResponseFromScanner -1 N/A N/A self client N/A Client SERVER_ENDPOINT N/A log N/A N/A N/A N/A N/A milterContext uuid  Sending  N/A str N/A milterContext qid  to  SERVER_ENDPOINT N/A N/A N/A N/A self logger writeLog N/A syslog LOG_DEBUG N/A %s N/A str log N/A myhostname N/A N/A socket gethostname N/A externalObject N/A ExternalObject buffer N/A milterContext fileBuffer externalVars N/A ExternalVars filename N/A milterContext archiveFileName source N/A N/A N/A N/A milterContext milterConfig milterName - N/A str N/A myhostname N/A N/A N/A myhostname index . ephID N/A milterContext qid uniqID N/A milterContext messageID level level_metadata N/A result N/A N/A N/A self client send externalObject retry numRetries timeout REQUEST_TIMEOUT N/A result N/A N/A N/A self match N/A flagRollup result N/A N/A N/A self match N/A N/A N/A self match N/A N/A N/A self attachements N/A N/A , join N/A getAttachmentList result N/A strScanResult N/A finalDispositionFromResult result N/A strScanResults N/A N/A join N/A dispositionFromResult result N/A strScanResult N/A N/A N/A self strScanResult strScanResult N/A N/A N/A N/A self dispositions strScanResults N/A N/A N/A N/A N/A N/A N/A self logger writeLog N/A syslog LOG_ERR N/A N/A milterContext uuid  ERROR getting dispositions via client lib N/A gotResponseFromScanner 1 N/A N/A N/A N/A N/A self logger writeLog N/A syslog LOG_ERR N/A N/A N/A N/A milterContext uuid N/A str N/A milterContext qid | no result object from scanner, returning SCAN ERROR N/A gotResponseFromScanner N/A N/A log2syslog N/A N/A __init__ N/A N/A self name facility N/A N/A N/A N/A N/A syslog openlog name 0 facility N/A writeLog N/A N/A self logLevel stringToLog N/A N/A N/A N/A N/A syslog syslog logLevel N/A %s N/A str stringToLog N/A closeLog N/A N/A self N/A N/A N/A N/A N/A syslog closelog N/A N/A MilterConfig N/A N/A N/A 
    MilterConfig: Class used to load config file
    
    Start: 1) Instantiate with new MilterConfig()  
       2) Load config file
        2.1) loadAll: loads all sections (listed below) of the config file 
        2.2) loadConfig: loads COMMON section of the config file
        2.3) loadDispositionModes: loads DispositionMode section of the config file
        2.4) loadHeaderOptions: loads HeaderOptions section of the config file
        2.5) loadScanServers: loads ScanServers section of the config file
    
     __init__ N/A N/A self N/A N/A N/A N/A self milterName laikamilter N/A N/A self milterInstance laika N/A N/A self socketname inet:7226@localhost N/A N/A self servers N/A N/A N/A self mode run N/A N/A self zmqMaxRetry 1 N/A N/A self zmqTimeout 55000 N/A N/A self maxFiles 950 N/A N/A self heloWhitelist N/A N/A self configFileLoc /etc/laikamilter/laikamilter.conf N/A N/A self storeEmails False N/A N/A self storeDir /data/mail/ N/A N/A self customFolderDateFormat N/A N/A self ApplyCustomHeaders False N/A N/A self CustomHeaderBase LAIKA N/A N/A self ApplyMailscanResultHeader True N/A N/A self MailscanResultHeaderString X-Mailscan-Result N/A N/A self loadAttempt 0 N/A N/A self maxLoadAttempts 2 N/A N/A self loadError False N/A N/A self dispositionModes N/A N/A N/A N/A self dispositionModes N/A default N/A Milter CONTINUE N/A loadAll N/A N/A self N/A N/A N/A N/A self loadError False N/A N/A self loadAttempt 1 N/A N/A N/A self loadConfig N/A N/A N/A self loadScanServers N/A N/A N/A self loadDispositionModes N/A N/A N/A self loadHeaderOptions N/A N/A N/A self loadError N/A N/A self loadAttempt N/A self maxLoadAttempts N/A N/A log Error loading Config File from loadAll, trying again N/A logger N/A log2syslog N/A self milterName N/A syslog LOG_LOCAL0 N/A N/A N/A logger writeLog N/A syslog LOG_ERR N/A %s N/A str log N/A N/A N/A time sleep 1 N/A N/A N/A self loadAll N/A N/A N/A N/A self loadError N/A N/A self loadAttempt N/A self maxLoadAttempts N/A N/A log Error loading Config File from loadAll, using Defaults N/A logger N/A log2syslog N/A self milterName N/A syslog LOG_LOCAL0 N/A N/A N/A logger writeLog N/A syslog LOG_ERR N/A %s N/A str log N/A loadConfig N/A N/A self N/A N/A N/A Config N/A N/A ConfigParser ConfigParser N/A N/A N/A N/A N/A Config read N/A self configFileLoc N/A N/A self socketname N/A N/A Config get COMMON socketname N/A N/A self milterName N/A N/A Config get COMMON MilterName N/A N/A self milterInstance N/A N/A Config get COMMON MilterInstance N/A N/A self mode N/A N/A Config get COMMON mode N/A N/A self zmqMaxRetry N/A int N/A N/A Config get COMMON zmqMaxRetry N/A N/A self zmqTimeout N/A int N/A N/A Config get COMMON zmqTimeout N/A N/A self maxFiles N/A int N/A N/A Config get COMMON maxFiles N/A N/A self heloWhitelist N/A str N/A N/A Config get COMMON helowhitelist N/A N/A self storeEmails N/A N/A self _convertTrueFalse N/A N/A Config get ArchiveOptions storeEmails N/A N/A self storeDir N/A N/A Config get ArchiveOptions storeDir N/A N/A self customFolderDateFormat N/A N/A Config get ArchiveOptions customFolderDateFormat N/A N/A N/A N/A ConfigParser NoSectionError N/A N/A N/A N/A self loadAttempt N/A self maxLoadAttempts N/A N/A log Error loading Config File for COMMON config, USING DEFAULTS N/A logger N/A log2syslog N/A self milterName N/A syslog LOG_LOCAL0 N/A N/A N/A logger writeLog N/A syslog LOG_ERR N/A %s N/A str log N/A N/A N/A self loadError True N/A log Error loading Config File for COMMON config, should try again N/A logger N/A log2syslog N/A self milterName N/A syslog LOG_LOCAL0 N/A N/A N/A logger writeLog N/A syslog LOG_ERR N/A %s N/A str log N/A loadDispositionModes N/A N/A self N/A N/A N/A Config N/A N/A ConfigParser ConfigParser N/A N/A N/A N/A N/A Config read N/A self configFileLoc N/A DispositionModes N/A N/A Config items DispositionMode N/A DispositionMode DispositionModes N/A N/A N/A N/A self dispositionModes N/A N/A DispositionMode N/A 0 N/A N/A self _convertDispositionMode N/A DispositionMode N/A 1 N/A N/A N/A N/A ConfigParser NoSectionError N/A N/A N/A N/A self loadAttempt N/A self maxLoadAttempts N/A N/A log Error loading Config File for DispositionMode config, USING DEFAULTS N/A logger N/A log2syslog N/A self milterName N/A syslog LOG_LOCAL0 N/A N/A N/A logger writeLog N/A syslog LOG_ERR N/A %s N/A str log N/A N/A N/A self loadError True N/A log Error loading Config File for DispositionMode config, should try again N/A logger N/A log2syslog N/A self milterName N/A syslog LOG_LOCAL0 N/A N/A N/A logger writeLog N/A syslog LOG_ERR N/A %s N/A str log N/A loadHeaderOptions N/A N/A self N/A N/A N/A Config N/A N/A ConfigParser ConfigParser N/A N/A N/A N/A N/A Config read N/A self configFileLoc N/A N/A self ApplyCustomHeaders N/A N/A self _convertTrueFalse N/A N/A Config get HeaderOptions ApplyCustomHeaders N/A N/A self CustomHeaderBase N/A N/A Config get HeaderOptions CustomHeaderBase N/A N/A self ApplyMailscanResultHeader N/A N/A self _convertTrueFalse N/A N/A Config get HeaderOptions ApplyMailscanResultHeader N/A N/A self MailscanResultHeaderString N/A N/A Config get HeaderOptions MailscanResultHeaderString N/A N/A N/A N/A ConfigParser NoSectionError N/A N/A N/A N/A self loadAttempt N/A self maxLoadAttempts N/A N/A log Error loading Config File for HeaderOptions config, USING DEFAULTS N/A logger N/A log2syslog N/A self milterName N/A syslog LOG_LOCAL0 N/A N/A N/A logger writeLog N/A syslog LOG_ERR N/A %s N/A str log N/A N/A N/A self loadError True N/A log Error loading Config File for HeaderOptions config, should try again N/A logger N/A log2syslog N/A self milterName N/A syslog LOG_LOCAL0 N/A N/A N/A logger writeLog N/A syslog LOG_ERR N/A %s N/A str log N/A N/A N/A ConfigParser NoOptionError N/A N/A N/A N/A self loadAttempt N/A self maxLoadAttempts N/A N/A log Error loading Config File for HeaderOptions config, USING DEFAULTS N/A logger N/A log2syslog N/A self milterName N/A syslog LOG_LOCAL0 N/A N/A N/A logger writeLog N/A syslog LOG_ERR N/A %s N/A str log N/A N/A N/A self loadError True N/A log Error loading Config File for HeaderOptions config, should try again N/A logger N/A log2syslog N/A self milterName N/A syslog LOG_LOCAL0 N/A N/A N/A logger writeLog N/A syslog LOG_ERR N/A %s N/A str log N/A loadScanServers N/A N/A self N/A N/A N/A Config N/A N/A ConfigParser ConfigParser N/A N/A N/A N/A N/A Config read N/A self configFileLoc N/A servers N/A N/A Config items ScanServers N/A server servers N/A N/A N/A N/A N/A self servers append N/A server N/A 1 N/A N/A N/A N/A ConfigParser NoSectionError N/A N/A N/A N/A self loadAttempt N/A self maxLoadAttempts N/A N/A log Error loading Config File for ScanServers config, USING DEFAULTS N/A logger N/A log2syslog N/A self milterName N/A syslog LOG_LOCAL0 N/A N/A N/A logger writeLog N/A syslog LOG_ERR N/A %s N/A str log N/A N/A N/A self loadError True N/A log Error loading Config File for ScanServers config, should try again N/A logger N/A log2syslog N/A self milterName N/A syslog LOG_LOCAL0 N/A N/A N/A logger writeLog N/A syslog LOG_ERR N/A %s N/A str log N/A _convertDispositionMode N/A N/A self strMode N/A N/A N/A convertedMode N/A Milter CONTINUE N/A N/A strMode ACCEPT N/A N/A convertedMode N/A Milter ACCEPT N/A N/A N/A strMode CONTINUE N/A N/A convertedMode N/A Milter CONTINUE N/A N/A N/A strMode REJECT N/A N/A convertedMode N/A Milter REJECT N/A N/A N/A strMode DISCARD N/A N/A convertedMode N/A Milter DISCARD N/A N/A N/A strMode TEMPFAIL N/A N/A convertedMode N/A Milter TEMPFAIL N/A convertedMode N/A _unconvertDispositionMode N/A N/A self convertedMode N/A N/A N/A 
        convert integer value of rtnToMTA to back to string
         N/A strMode N/A N/A convertedMode N/A Milter ACCEPT N/A N/A strMode ACCEPT N/A N/A N/A convertedMode N/A Milter CONTINUE N/A N/A strMode CONTINUE N/A N/A N/A convertedMode N/A Milter REJECT N/A N/A strMode REJECT N/A N/A N/A convertedMode N/A Milter DISCARD N/A N/A strMode DISCARD N/A N/A N/A convertedMode N/A Milter TEMPFAIL N/A N/A strMode TEMPFAIL N/A strMode N/A _convertTrueFalse N/A N/A self input N/A N/A N/A convertedValue False N/A N/A N/A N/A input upper TRUE N/A N/A convertedValue True N/A N/A N/A N/A input upper FALSE N/A N/A convertedValue False N/A N/A covnertedValue Error N/A convertedValue N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A random seed N/A altConfig None N/A N/A N/A len N/A sys argv 2 N/A N/A altConfig N/A N/A sys argv N/A 1 N/A N/A Config:  altConfig N/A milterConfig N/A MilterConfig N/A altConfig N/A N/A N/A using alternative config path: %s altConfig N/A N/A N/A N/A N/A os path exists altConfig N/A N/A the provided config path is not valid, exiting N/A N/A N/A milterConfig configFileLoc altConfig N/A N/A N/A milterConfig loadConfig N/A logger N/A log2syslog N/A milterConfig milterName N/A syslog LOG_LOCAL0 N/A N/A N/A N/A open N/A milterConfig heloWhitelist rb f N/A N/A config N/A N/A json load f N/A N/A MTA_group exclusions_group N/A N/A N/A config N/A exclusions items N/A N/A MTA_address N/A N/A config N/A group N/A MTA_group N/A N/A exclusion exclusions_group N/A N/A exclusion_address N/A N/A config N/A group N/A exclusion N/A N/A N/A global_whitelist N/A N/A %s_%s N/A MTA_address exclusion_address None N/A N/A N/A IOError N/A N/A global_whitelist N/A N/A N/A N/A logger writeLog N/A syslog LOG_ERR N/A IOError: Unable to load whitelist from config file: %s N/A milterConfig heloWhitelist N/A N/A N/A global_whitelist N/A N/A N/A N/A logger writeLog N/A syslog LOG_ERR N/A Unknown error while loading whitelist: %s N/A milterConfig heloWhitelist N/A N/A N/A logger writeLog N/A syslog LOG_DEBUG N/A %s Starting N/A milterConfig milterInstance N/A myID N/A N/A os getuid N/A grID N/A N/A os getgid N/A log N/A N/A N/A str myID N/A str grID N/A N/A N/A logger writeLog N/A syslog LOG_DEBUG N/A %s running as uid:%i gid%i N/A N/A milterConfig milterInstance myID grID N/A maxNumOpenFiles N/A N/A resource getrlimit N/A resource RLIMIT_NOFILE N/A N/A N/A logger writeLog N/A syslog LOG_DEBUG N/A %s File Handle Limits (soft, hard): %s N/A N/A milterConfig milterInstance N/A str maxNumOpenFiles N/A N/A Milter factory LaikaMilter N/A N/A N/A Milter set_flags N/A N/A N/A Milter CHGBODY N/A Milter CHGHDRS N/A Milter ADDHDRS N/A N/A N/A N/A sys stdout flush N/A N/A N/A N/A N/A Milter runmilter N/A milterConfig milterName N/A milterConfig socketname 240 N/A N/A N/A N/A Milter error N/A N/A log N/A N/A Could not open port  N/A milterConfig socketname .  Another milter instance may be running. N/A N/A N/A logger writeLog N/A syslog LOG_ERR N/A %s N/A str log N/A N/A N/A logger writeLog N/A syslog LOG_DEBUG N/A %s Shutting Down N/A milterConfig milterInstance N/A N/A N/A logger closeLog