Mercurial > hg > mlmmj
changeset 173:c91c37f083a6
New mlmmj-send takes a char * and the size of the mail to send instead
of the mail file descriptor.
author | mmj |
---|---|
date | Sat, 05 Jun 2004 23:48:07 +1000 |
parents | 8abdd3534b9f |
children | 8a565328fa73 |
files | include/mail-functions.h include/mlmmj-send.h |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/include/mail-functions.h Fri Jun 04 20:46:33 2004 +1000 +++ b/include/mail-functions.h Sat Jun 05 23:48:07 2004 +1000 @@ -17,7 +17,7 @@ int write_mail_from(int sockfd, const char *from_addr); int write_rcpt_to(int sockfd, const char *rcpt_addr); int write_custom_line(int sockfd, const char *line); -int write_mailbody_from_fd(int sockfd, int fd); +int write_mailbody_from_map(int sockfd, char *mailmap, size_t mailsize); int write_replyto(int sockfd, const char *replyaddr); int write_dot(int sockfd); int write_quit(int sockfd);
--- a/include/mlmmj-send.h Fri Jun 04 20:46:33 2004 +1000 +++ b/include/mlmmj-send.h Sat Jun 05 23:48:07 2004 +1000 @@ -10,12 +10,12 @@ #define MMJML_SEND_H int send_mail(int sockfd, const char *from, const char *to, - const char *replyto, int mailfd, + const char *replyto, char *mailmap, size_t mailsize, const char *listdir, const char *mlmmjbounce); int send_mail_many(int sockfd, const char *from, const char *replyto, - int mailfd, int subfd, const char *listaddr, - const char *archivefilename, const char *listdir, - const char *mlmmjbounce); + char *mailmap, size_t mailsize, int subfd, + const char *listaddr, const char *archivefilename, + const char *listdir, const char *mlmmjbounce); int initsmtp(int *sockfd, const char *relayhost); int endsmtp(int *sockfd);