scribo

Email-based phlog generator
git clone git://git.z3bra.org/scribo.git
Log | Files | Refs | README | LICENSE

commit ed9476f27e11d476fd01773cfd1d3a5fc7d23879
parent 221ff7e7716ea3e1ae9fa803d51b4f6bd77e7c78
Author: Willy Goiffon <dev@z3bra.org>
Date:   Sat, 19 Sep 2020 23:50:12 +0200

Simplify code to filter email body

Diffstat:
Mscribo.c | 9++++-----
1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/scribo.c b/scribo.c @@ -299,11 +299,10 @@ writeentry(FILE *in, const char *cmd, char *dir, struct headers *head) fprintf(out, titlefmt, subject); - if (cmd) { - if (!(out = pipeout(cmd, out))) { - perror(cmd); - return -1; - } + /* pipe email body through the given command, if any */ + if (cmd && !(out = pipeout(cmd, out))) { + perror(cmd); + return -1; } if (transfer && !strncmp(transfer, "base64", 6))