Пример #1
0
func main() {
	mymilter := new(Mymilter)
	mymilter.FilterName = "TestFilter"
	mymilter.Debug = true
	mymilter.Flags = m.ADDHDRS | m.ADDRCPT | m.CHGFROM | m.CHGBODY
	mymilter.Socket = "unix:/var/milterattachcheck/socket"

	// Start Milter
	m.Run(mymilter)
}
Пример #2
0
func main() {
	mymilter := new(Mymilter)
	mymilter.FilterName = "TestFilter"

	logger = log.New(os.Stdout, "", log.LstdFlags)
	mymilter.Logger = logger
	mymilter.Debug = true

	mymilter.Flags = m.ADDHDRS | m.ADDRCPT | m.CHGFROM | m.CHGBODY
	mymilter.Socket = "unix:/var/milterattachcheck/socket"

	// Start Milter
	m.Run(mymilter)
}