dovecot-2.2: lib-lda: Removed unused mail_send_forward()
dovecot at dovecot.org
dovecot at dovecot.org
Fri Apr 25 12:46:47 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/560793d4bf88
changeset: 17263:560793d4bf88
user: Timo Sirainen <tss at iki.fi>
date: Fri Apr 25 15:31:08 2014 +0300
description:
lib-lda: Removed unused mail_send_forward()
diffstat:
src/lib-lda/mail-send.c | 33 ---------------------------------
src/lib-lda/mail-send.h | 1 -
2 files changed, 0 insertions(+), 34 deletions(-)
diffs (50 lines):
diff -r 8575e8f01380 -r 560793d4bf88 src/lib-lda/mail-send.c
--- a/src/lib-lda/mail-send.c Fri Apr 25 10:49:45 2014 +0300
+++ b/src/lib-lda/mail-send.c Fri Apr 25 15:31:08 2014 +0300
@@ -182,36 +182,3 @@
o_stream_nsend(output, str_data(str), str_len(str));
return smtp_client_close(smtp_client);
}
-
-int mail_send_forward(struct mail_deliver_context *ctx, const char *forwardto)
-{
- static const char *hide_headers[] = {
- "Return-Path"
- };
- struct istream *input;
- struct ostream *output;
- struct smtp_client *smtp_client;
- const char *return_path;
-
- if (mail_get_stream(ctx->src_mail, NULL, NULL, &input) < 0)
- return -1;
-
- return_path = mail_deliver_get_return_address(ctx);
- if (mailbox_get_settings(ctx->src_mail->box)->mail_debug) {
- i_debug("Sending a forward to <%s> with return path <%s>",
- forwardto, return_path);
- }
-
- smtp_client = smtp_client_open(ctx->set, forwardto, return_path, &output);
-
- input = i_stream_create_header_filter(input, HEADER_FILTER_EXCLUDE |
- HEADER_FILTER_NO_CR, hide_headers,
- N_ELEMENTS(hide_headers),
- *null_header_filter_callback,
- (void *)NULL);
-
- (void)o_stream_send_istream(output, input);
- i_stream_unref(&input);
-
- return smtp_client_close(smtp_client);
-}
diff -r 8575e8f01380 -r 560793d4bf88 src/lib-lda/mail-send.h
--- a/src/lib-lda/mail-send.h Fri Apr 25 10:49:45 2014 +0300
+++ b/src/lib-lda/mail-send.h Fri Apr 25 15:31:08 2014 +0300
@@ -6,6 +6,5 @@
int mail_send_rejection(struct mail_deliver_context *ctx, const char *recipient,
const char *reason);
-int mail_send_forward(struct mail_deliver_context *ctx, const char *forwardto);
#endif
More information about the dovecot-cvs
mailing list