mailer.texi
1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
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 Open/Close
@deftypefun int mailer_open (mailer_t @var{mailer}, int @var{flag})
On mailer program, it is a @code{stat(2)} or ping a server for smtp.
@end deftypefun
@deftypefun int mailer_close (mailer_t @var{mailer})
Noop on most mailers.
@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_send (mailer_t @var{mailer}, message_t @var{msg}, int destroy)
@var{msg} is delivered
@end deftypefun
@section Notification
@deftypefun int mailer_set_delivery_cb (mailer_t @var{mailer}, message_t @var{msg}, int *@var{notification}(mailer_t @var{mailer}, int @var{status}, size_t @var{msgno}, void *@var{arg})
On delivery @code{notification (mailer, status, msgno, arg)} is
executed.
@end deftypefun
@section SMTP
@cindex SMTP
TODO: describe protocol, url, mailto url etc ..
@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.