X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=commands.c;h=4a40dc96973dbb7d8065dc0889cc10bc5af8a20c;hp=e0dfe2e079652e4a55d3e7d25bb88a03433c7b34;hb=1d0ce70b85c36973b50e5783fe7b72941c81c0a9;hpb=3766db5f849cea008b1cd3d532c712aeb17aa062 diff --git a/commands.c b/commands.c index e0dfe2e..4a40dc9 100644 --- a/commands.c +++ b/commands.c @@ -134,16 +134,6 @@ int mutt_display_message (HEADER * cur) mutt_wait_filter (filterpid); m_fclose(&fpfilterout); } -#if 0 - /* this is maybe just plain wrong but it makes the pager display - * what we have; i.e. for the crypto stuff we only get - * 'Could not copy message' for invalid passphrases, no PGP output - * not nothing; so just display what we have... - * - pdmef - */ - mutt_unlink (tempfile); - return 0; -#endif } if (fpfilterout != NULL && mutt_wait_filter (filterpid) != 0) @@ -356,7 +346,7 @@ static int _mutt_pipe_message(HEADER * h, char *cmd, int decode, int print, } pipe_msg (h, fpout, decode, print); - fclose (fpout); + m_fclose(&fpout); rc = mutt_wait_filter (thepid); } else { /* handle tagged messages */ @@ -441,7 +431,7 @@ void mutt_pipe_message (HEADER * h) void mutt_print_message (HEADER * h) { - if (quadoption (OPT_PRINT) && (!PrintCmd || !*PrintCmd)) { + if (quadoption (OPT_PRINT) && m_strisempty(PrintCmd)) { mutt_message (_("No printing command has been defined.")); return; }