jbe@444: --[[-- jbe@444: net.configure_mail{ jbe@444: command = command, -- table with binary name and static command line arguments jbe@444: envelope_from_option = envelope_from_option -- command line option to select "envelope from", e.g. "-f" jbe@444: } jbe@444: jbe@444: Configures the mail delivery system. jbe@529: Default: net.configure_mail{ command={"/usr/sbin/sendmail", "-t", "-i"}, envelope_from_option="-f" } jbe@444: jbe@444: --]]-- jbe@444: jbe@444: function net.configure_mail(args) jbe@444: local mail_config = { jbe@444: command = table.new(args.command), jbe@444: envelope_from_option = envelope_from_option jbe@444: } jbe@444: request.configure(function() jbe@444: net._mail_config = mail_config jbe@444: end) jbe@444: end