3 #ifndef _POST_MAIL_H_INCLUDED_
4 #define _POST_MAIL_H_INCLUDED_
10 /* convenient mail posting interface
12 /* #include <post_mail.h>
25 #include <cleanup_user.h>
31 typedef void (*POST_MAIL_NOTIFY
)(VSTREAM
*, void *);
32 extern VSTREAM
*post_mail_fopen(const char *, const char *, int, int, VSTRING
*);
33 extern VSTREAM
*post_mail_fopen_nowait(const char *, const char *, int, int, VSTRING
*);
34 extern void post_mail_fopen_async(const char *, const char *, 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
*);
40 #define POST_MAIL_BUFFER(v, b) \
41 post_mail_buffer((v), vstring_str(b), VSTRING_LEN(b))
46 /* The Secure Mailer license must be distributed with this software.
49 /* IBM T.J. Watson Research
51 /* Yorktown Heights, NY 10598, USA