Exemplo n.º 1
0
func (milter *Mymilter) EnvRcpt(ctx uintptr, myargv []string) (sfsistat int8) {
	fmt.Println("mymilter.EnvRcpt was called")
	fmt.Printf("myargv: %s\n", myargv)
	// Show the value of a symbol
	fmt.Printf("{rcpt_addr}: %v\n", m.GetSymVal(ctx, "{rcpt_addr}"))
	return
}
Exemplo n.º 2
0
func (milter *Mymilter) EnvFrom(ctx uintptr, myargv []string) (sfsistat int8) {
	logger.Println("mymilter.EnvFrom was called")
	logger.Printf("myargv: %s\n", myargv)
	// Show the value of a symbol
	logger.Printf("{mail_addr}: %v\n", m.GetSymVal(ctx, "{mail_addr}"))
	return
}