tSimplify code to filter email body - scribo - Email-based phlog generator
 (HTM) git clone git://git.z3bra.org/scribo.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit ed9476f27e11d476fd01773cfd1d3a5fc7d23879
 (DIR) parent 221ff7e7716ea3e1ae9fa803d51b4f6bd77e7c78
 (HTM) Author: Willy Goiffon <dev@z3bra.org>
       Date:   Sat, 19 Sep 2020 23:50:12 +0200
       
       Simplify code to filter email body
       
       Diffstat:
         M scribo.c                            |       9 ++++-----
       
       1 file changed, 4 insertions(+), 5 deletions(-)
       ---
 (DIR) diff --git a/scribo.c b/scribo.c
       t@@ -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))