Renamed the files.
lda-settings.c \
mail-deliver.c \
mail-send.c \
- smtp-client.c
+ smtp-submit.c
headers = \
duplicate.h \
lda-settings.h \
mail-deliver.h \
mail-send.h \
- smtp-client.h
+ smtp-submit.h
pkginc_libdir=$(pkgincludedir)
pkginc_lib_HEADERS = $(headers)
test_programs =
test_nocheck_programs = \
- test-smtp-client
+ test-smtp-submit
noinst_PROGRAMS = $(test_programs) $(test_nocheck_programs)
../lib-test/libtest.la \
../lib/liblib.la
-test_smtp_client_SOURCES = test-smtp-client.c
-test_smtp_client_LDFLAGS = -export-dynamic
-test_smtp_client_LDADD = $(test_libs)
-test_smtp_client_DEPENDENCIES = $(test_deps)
+test_smtp_submit_SOURCES = test-smtp-submit.c
+test_smtp_submit_LDFLAGS = -export-dynamic
+test_smtp_submit_LDADD = $(test_libs)
+test_smtp_submit_DEPENDENCIES = $(test_deps)
check: check-am check-test
check-test: all-am
#include "mail-storage-settings.h"
#include "lda-settings.h"
#include "mail-deliver.h"
-#include "smtp-client.h"
+#include "smtp-submit.h"
#include "mail-send.h"
#include <sys/wait.h>
-#ifndef SMTP_CLIENT_H
-#define SMTP_CLIENT_H
-
-struct smtp_client * ATTR_NULL(3)
-smtp_client_init(const struct lda_settings *set, const char *return_path);
-/* Add a new recipient */
-void smtp_client_add_rcpt(struct smtp_client *client, const char *address);
-/* Get an output stream where the message can be written to. The recipients
- must already be added before calling this. */
-struct ostream *smtp_client_send(struct smtp_client *client);
-void smtp_client_abort(struct smtp_client **client);
-/* Returns 1 on success, 0 on permanent failure (e.g. invalid destination),
- -1 on temporary failure. */
-int smtp_client_deinit(struct smtp_client *client, const char **error_r);
-/* Same as smtp_client_deinit(), but timeout after given number of seconds. */
-int smtp_client_deinit_timeout(struct smtp_client *client,
- unsigned int timeout_secs, const char **error_r);
-#endif
+#include "smtp-submit.h"
#include "lda-settings.h"
#include "mail-deliver.h"
#include "program-client.h"
-#include "smtp-client.h"
+#include "smtp-submit.h"
#include <unistd.h>
#include <sys/wait.h>
--- /dev/null
+#ifndef SMTP_CLIENT_H
+#define SMTP_CLIENT_H
+
+struct smtp_client * ATTR_NULL(3)
+smtp_client_init(const struct lda_settings *set, const char *return_path);
+/* Add a new recipient */
+void smtp_client_add_rcpt(struct smtp_client *client, const char *address);
+/* Get an output stream where the message can be written to. The recipients
+ must already be added before calling this. */
+struct ostream *smtp_client_send(struct smtp_client *client);
+void smtp_client_abort(struct smtp_client **client);
+/* Returns 1 on success, 0 on permanent failure (e.g. invalid destination),
+ -1 on temporary failure. */
+int smtp_client_deinit(struct smtp_client *client, const char **error_r);
+/* Same as smtp_client_deinit(), but timeout after given number of seconds. */
+int smtp_client_deinit_timeout(struct smtp_client *client,
+ unsigned int timeout_secs, const char **error_r);
+#endif
#include "istream-dot.h"
#include "test-common.h"
#include "lda-settings.h"
-#include "smtp-client.h"
+#include "smtp-submit.h"
#include <sys/types.h>
#include <sys/wait.h>