Skip to content

Commit

Permalink
mail-filter: tabescape args, this is required by script client 4
Browse files Browse the repository at this point in the history
  • Loading branch information
cmouse authored and villesavolainen committed May 31, 2017
1 parent 626d661 commit 281eeeb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/plugins/mail-filter/istream-ext-filter.c
Expand Up @@ -2,6 +2,7 @@

#include "lib.h"
#include "str.h"
#include "strescape.h"
#include "net.h"
#include "eacces-error.h"
#include "fd-set-nonblock.h"
Expand Down Expand Up @@ -175,8 +176,8 @@ static int filter_connect(struct mail_filter_istream *mstream,
str = t_str_new(256);
str_append(str, "VERSION\tscript\t4\t0\nnoreply\n");
for (; *argv != NULL; argv++) {
str_append(str, *argv);
str_append_c(str, '\n');
str_append_tabescaped(str, *argv);
str_append_c(str, '\t');
}
str_append_c(str, '\n');

Expand Down
5 changes: 3 additions & 2 deletions src/plugins/mail-filter/ostream-ext-filter.c
Expand Up @@ -2,6 +2,7 @@

#include "lib.h"
#include "str.h"
#include "strescape.h"
#include "net.h"
#include "eacces-error.h"
#include "istream.h"
Expand Down Expand Up @@ -148,8 +149,8 @@ static int filter_connect(struct mail_filter_ostream *mstream,
str = t_str_new(256);
str_append(str, "VERSION\tscript\t4\t0\nnoreply\n");
for (; *argv != NULL; argv++) {
str_append(str, *argv);
str_append_c(str, '\n');
str_append_tabescaped(str, *argv);
str_append_c(str, '\t');
}
str_append_c(str, '\n');

Expand Down

0 comments on commit 281eeeb

Please sign in to comment.