mailer.texi 2.31 KB

Mail Delivery is done here. Nothing is implemented and the API is still shaky.

@section Init/Destroy

Initialize the mailer object.

@deftypefun int mailer_init (mailer_t *@var{mailer}, const char *@var{name}, int @var{flag})
Not Implemented.

@defmac MU_ML_PROGRAM
Program like sendmail, mail, mailx to deliver the mail
@end defmac

@defmac MU_ML_SMTP
Contact the host directly with SMTP.
@end defmac

@defmac MU_ML_MPP
Use MPP protocol.
@end defmac

@end deftypefun

@deftypefun int mailer_destroy (mailer_r *@var{mailer})
Not Implemented.
@end deftypefun


@section User/Passwd

On some mailer like MMP you need to identify.

@deftypefun int mailer_user (mailer_t @var{mailer}, const char *@var{user})
Not Implemented.
@end deftypefun

@deftypefun int mailer_passwd (mailer_t @var{mailer}, const char *@var{passwd})
Not Implemented.
@end deftypefun

@section Open/Close
The mailer is spawn, if it is a program, or the host is contacted.

@deftypefun int mailer_open (mailer_t @var{mailer}, int @var{flag})
Not Implemented.
@end deftypefun

@deftypefun int mailer_close (mailer_t @var{mailer})
Not Implemented.
@end deftypefun

@section Sending

Sending a message.

@deftypefun int mailer_new_message (mailer_t @var{mailer}, size_t *)
Not Implemented.
@end deftypefun

@deftypefun int mailer_set_content (mailer_t @var{mailer}, char *, size_t)
Not Implemented.
@end deftypefun

@deftypefun int mailer_set_header (mailer_t @var{mailer}, char *, size_t)
Not Implemented.
@end deftypefun

@deftypefun int mailbox_add_attachment (mailer_t, size_t msgno, const char *boundary, const char *header, FILE *file, int encoding)
@end deftypefun

@deftypefun int mailer_send_message (mailer_t @var{mailer}, size_t)
Not Implemented.
@end deftypefun

@section Timeout
@deftypefun int mailer_set_timeout (mailer_t @var{mailer}, size_t)
Not Implemented.
@end deftypefun

@deftypefun int mailer_get_timeout (mailer_t @var{mailer}, size_t)
Not Implemented.
@end deftypefun

@section SMTP
@cindex SMTP

TODO: todo

@section UUCP
@cindex UUCP

Yeurk ! It this to old ? Is it worth it ?

@section Program
@cindex Sendmail
@cindex mailx
@cindex mail

This is not a protocol, but on must site the delivery of mail is done via
a program, @command{/usr/lib/sendmail}, @command{/bin/mailx},
@command{/bin/mail}, @dots{}

@section MPP
@cindex MPP

Mail Posting Protocol.  Not Implemented.