Skip to content

Commit

Permalink
submssion: DATA command: Seek data stream to the beginning before exe…
Browse files Browse the repository at this point in the history
…cuting backends.
  • Loading branch information
stephanbosch authored and sirainen committed Jan 17, 2019
1 parent 002e983 commit 007bbe1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/submission/submission-backend.c
Expand Up @@ -388,6 +388,10 @@ int submission_backends_cmd_data(struct client *client,

i_assert(array_count(&client->rcpt_backends) > 0);

/* Make sure data input stream is at the beginning (plugins may have
messed with it. */
i_stream_seek(data_input, 0);

/* create the data_input streams first */
array_foreach_modifiable(&client->rcpt_backends, bkp) {
struct submission_backend *backend = *bkp;
Expand Down

0 comments on commit 007bbe1

Please sign in to comment.