Documentation ¶
Index ¶
- Constants
- func AddHeader(ctx uintptr, headerf, headerv string) int
- func AddRcpt(ctx uintptr, rcpt string) int
- func AddRcpt_Par(ctx uintptr, rcpt, args string) int
- func ChgFrom(ctx uintptr, mail, args string) int
- func ChgHeader(ctx uintptr, headerf string, hdridx int, headerv string) int
- func DelRcpt(ctx uintptr, rcpt string) int
- func GetPriv(ctx uintptr, privatedata interface{}) int
- func GetSymVal(ctx uintptr, symname string) string
- func Go_xxfi_abort(ctx *C.SMFICTX) C.sfsistat
- func Go_xxfi_body(ctx *C.SMFICTX, bodyp *C.uchar, bodylen C.size_t) C.sfsistat
- func Go_xxfi_close(ctx *C.SMFICTX) C.sfsistat
- func Go_xxfi_connect(ctx *C.SMFICTX, hostname *C.char, hostaddr *C._SOCK_ADDR) (sfsistat C.sfsistat)
- func Go_xxfi_envfrom(ctx *C.SMFICTX, argv **C.char) C.sfsistat
- func Go_xxfi_envrcpt(ctx *C.SMFICTX, argv **C.char) C.sfsistat
- func Go_xxfi_eoh(ctx *C.SMFICTX) C.sfsistat
- func Go_xxfi_eom(ctx *C.SMFICTX) C.sfsistat
- func Go_xxfi_header(ctx *C.SMFICTX, headerf, headerv *C.char) C.sfsistat
- func Go_xxfi_helo(ctx *C.SMFICTX, helohost *C.char) C.sfsistat
- func GobDecode(buf []byte, data interface{}) error
- func GobEncode(data interface{}) ([]byte, error)
- func InsHeader(ctx uintptr, hdridx int, headerf, headerv string) int
- func ReplaceBody(ctx uintptr, body []byte) int
- func Run(amilter Milter) int
- func SetMLReply(ctx uintptr, rcode, xcode string, message ...string) int
- func SetPriv(ctx uintptr, privatedata interface{}) int
- func SetReply(ctx uintptr, rcode, xcode, message string) int
- func Stop()
- type CtxPtr
- type Milter
- type MilterRaw
Constants ¶
View Source
const ( Continue = iota Reject Discard Accept Tempfail Noreply Skip )
Return values for Callback functions
View Source
const ( ADDHDRS = 0x00000001 // 000000001 CHGBODY = 0x00000002 // 000000010 ADDRCPT = 0x00000004 // 000000100 DELRCPT = 0x00000008 // 000001000 CHGHDRS = 0x00000010 // 000010000 QUARANTINE = 0x00000020 // 000100000 CHGFROM = 0x00000040 // 001000000 ADDRCPT_PAR = 0x00000080 // 010000000 SETSYMLIST = 0x00000100 // 100000000 )
flags
Variables ¶
This section is empty.
Functions ¶
func AddRcpt_Par ¶
func Go_xxfi_connect ¶
func ReplaceBody ¶
func SetPriv ¶
See also: http://bit.ly/1HVWA9I
Types ¶
type CtxPtr ¶
type CtxPtr *C.struct_smfi_str
type Milter ¶
type Milter interface { GetFilterName() string GetDebug() bool GetFlags() int GetSocket() string GetLogger() *log.Logger }
Interface that must be implemented in order to use gomilter
Click to show internal directories.
Click to hide internal directories.