Postfix3.3.1
post_mail.h
[詳解]
1 #ifndef _POST_MAIL_H_INCLUDED_
2 #define _POST_MAIL_H_INCLUDED_
3 
4 /*++
5 /* NAME
6 /* post_mail 3h
7 /* SUMMARY
8 /* convenient mail posting interface
9 /* SYNOPSIS
10 /* #include <post_mail.h>
11 /* DESCRIPTION
12 /* .nf
13 
14  /*
15  * Utility library.
16  */
17 #include <vstream.h>
18 #include <vstring.h>
19 
20  /*
21  * Global library.
22  */
23 #include <cleanup_user.h>
24 #include <mail_proto.h>
25 #include <smtputf8.h>
26 #include <int_filt.h>
27 
28  /*
29  * External interface.
30  */
31 typedef void (*POST_MAIL_NOTIFY) (VSTREAM *, void *);
32 extern VSTREAM *post_mail_fopen(const char *, const char *, int, int, int, VSTRING *);
33 extern VSTREAM *post_mail_fopen_nowait(const char *, const char *, int, int, int, VSTRING *);
34 extern void post_mail_fopen_async(const char *, const char *, int, int, int, VSTRING *, POST_MAIL_NOTIFY, void *);
35 extern int PRINTFLIKE(2, 3) post_mail_fprintf(VSTREAM *, const char *,...);
36 extern int post_mail_fputs(VSTREAM *, const char *);
37 extern int post_mail_buffer(VSTREAM *, const char *, int);
38 extern int post_mail_fclose(VSTREAM *);
39 typedef void (*POST_MAIL_FCLOSE_NOTIFY) (int, void *);
40 extern void post_mail_fclose_async(VSTREAM *, POST_MAIL_FCLOSE_NOTIFY, void *);
41 
42 #define POST_MAIL_BUFFER(v, b) \
43  post_mail_buffer((v), vstring_str(b), VSTRING_LEN(b))
44 
45 /* LICENSE
46 /* .ad
47 /* .fi
48 /* The Secure Mailer license must be distributed with this software.
49 /* AUTHOR(S)
50 /* Wietse Venema
51 /* IBM T.J. Watson Research
52 /* P.O. Box 704
53 /* Yorktown Heights, NY 10598, USA
54 /*
55 /* Wietse Venema
56 /* Google, Inc.
57 /* 111 8th Avenue
58 /* New York, NY 10011, USA
59 /*--*/
60 
61 #endif
int post_mail_fprintf(VSTREAM *cleanup, const char *format,...)
Definition: post_mail.c:418
int post_mail_fclose(VSTREAM *)
Definition: post_mail.c:449
VSTREAM * post_mail_fopen(const char *, const char *, int, int, int, VSTRING *)
Definition: post_mail.c:279
void post_mail_fopen_async(const char *, const char *, int, int, int, VSTRING *, POST_MAIL_NOTIFY, void *)
Definition: post_mail.c:381
VSTREAM * post_mail_fopen_nowait(const char *, const char *, int, int, int, VSTRING *)
Definition: post_mail.c:293
void(* POST_MAIL_FCLOSE_NOTIFY)(int, void *)
Definition: post_mail.h:39
void post_mail_fclose_async(VSTREAM *, POST_MAIL_FCLOSE_NOTIFY, void *)
int PRINTFLIKE(2, 3) post_mail_fprintf(VSTREAM *
int const char int post_mail_fputs(VSTREAM *, const char *)
Definition: post_mail.c:439
void(* POST_MAIL_NOTIFY)(VSTREAM *, void *)
Definition: post_mail.h:31
int post_mail_buffer(VSTREAM *, const char *, int)
Definition: post_mail.c:431