diff options
author | Erich Eckner <git@eckner.net> | 2020-03-09 09:21:03 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-03-09 10:42:16 +0100 |
commit | 6f51edb373f77ce56611aecc9f2efa406501ec2a (patch) | |
tree | 9cea9845856faaf9c701741c9a61e4d4bf547514 | |
parent | d7838fd7545719029474fea04a51332a542e978a (diff) | |
download | alpine-default-pipe.tar.xz |
add default pipe command in case of empty historydefault-pipe
-rw-r--r-- | alpine/mailpart.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/alpine/mailpart.c b/alpine/mailpart.c index df1de5d6..c19e44a6 100644 --- a/alpine/mailpart.c +++ b/alpine/mailpart.c @@ -3883,6 +3883,10 @@ pipe_attachment(long int msgno, ATTACH_S *a) capture = (flagsforhist & 0x1) ? 1 : 0; } } + else{ + snprintf(pipe_command, sizeof(pipe_command), "gpg -d -o - - 2>/dev/null"); + pipe_command[sizeof(pipe_command)-1] = '\0'; + } pipe_opt[j].ch = 0; pipe_opt[j].rval = 0; |