dovecot-2.2: istream-attachment-connector: Add base64 parameters...

dovecot at dovecot.org dovecot at dovecot.org
Sun Sep 22 07:20:25 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/be1d8dd8be94
changeset: 16818:be1d8dd8be94
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Sep 22 07:20:12 2013 +0300
description:
istream-attachment-connector: Add base64 parameters to stream name for error messages.

diffstat:

 src/lib-mail/istream-attachment-connector.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r 5b1aac85eb17 -r be1d8dd8be94 src/lib-mail/istream-attachment-connector.c
--- a/src/lib-mail/istream-attachment-connector.c	Sun Sep 22 07:19:39 2013 +0300
+++ b/src/lib-mail/istream-attachment-connector.c	Sun Sep 22 07:20:12 2013 +0300
@@ -81,6 +81,10 @@
 		input = i_stream_create_base64_encoder(decoded_input,
 						       base64_blocks_per_line*4,
 						       base64_have_crlf);
+		i_stream_set_name(input, t_strdup_printf("%s[base64:%u b/l%s]",
+				  i_stream_get_name(decoded_input),
+				  base64_blocks_per_line,
+				  base64_have_crlf ? ",crlf" : ""));
 	}
 	input2 = i_stream_create_sized(input, encoded_size);
 	array_append(&conn->streams, &input2, 1);


More information about the dovecot-cvs mailing list