Module z_email_receive_server

SMTP server for handling bounced messages.

Copyright 2010-2013 Maximonster Interactive Things

Behaviours: gen_smtp_server_session.

Authors: Atilla Erdodi (atilla@maximonster.com).

Description

SMTP server for handling bounced messages. Code based on the example callback module supplied with gen_smtp. Original author: Andrew Thompson (andrew@hijacked.us)

Function Index

code_change/3
handle_DATA/4
handle_EHLO/3
handle_HELO/2
handle_MAIL/2
handle_MAIL_extension/2
handle_RCPT/2
handle_RCPT_extension/2
handle_RSET/1
handle_VRFY/2
handle_other/3
init/4
start_link/0
terminate/2

Function Details

code_change/3

code_change(OldVsn::any(), State::#state{}, Extra::any()) -> {ok, #state{}}

handle_DATA/4

handle_DATA(From::binary(), To::[binary(), ...], Data::binary(), State::#state{}) -> {ok, string(), #state{}} | {error, string(), #state{}}

handle_EHLO/3

handle_EHLO(Hostname::binary(), Extensions::list(), State::#state{}) -> {error, string(), #state{}} | {ok, list(), #state{}}

handle_HELO/2

handle_HELO(Hostname::binary(), State::#state{}) -> {error, string(), #state{}} | {ok, pos_integer(), #state{}} | {ok, #state{}}

handle_MAIL/2

handle_MAIL(From::binary(), State::#state{}) -> {ok, #state{}} | {error, string(), #state{}}

handle_MAIL_extension/2

handle_MAIL_extension(Extension::binary(), State::#state{}) -> {ok, #state{}} | error

handle_RCPT/2

handle_RCPT(To::binary(), State::#state{}) -> {ok, #state{}} | {error, string(), #state{}}

handle_RCPT_extension/2

handle_RCPT_extension(Extension::binary(), State::#state{}) -> {ok, #state{}} | error

handle_RSET/1

handle_RSET(State::#state{}) -> #state{}

handle_VRFY/2

handle_VRFY(Address::binary(), State::#state{}) -> {ok, string(), #state{}} | {error, string(), #state{}}

handle_other/3

handle_other(Verb::binary(), Args::binary(), State::#state{}) -> {string(), #state{}}

init/4

init(Hostname::binary(), SessionCount::non_neg_integer(), PeerName::tuple(), Options::list()) -> {ok, string(), #state{}} | {stop, any(), string()}

start_link/0

start_link() -> any()

terminate/2

terminate(Reason::any(), State::#state{}) -> {ok, any(), #state{}}


Generated by EDoc, Oct 26 2014, 02:50:49.