if (DisplayFilter && *DisplayFilter) {
fpfilterout = fpout;
fpout = NULL;
- /* mutt_endwin (NULL); */
filterpid = mutt_create_filter_fd (DisplayFilter, &fpout, NULL, NULL,
-1, fileno (fpfilterout), -1);
if (filterpid < 0) {
pid_t thepid;
FILE *fpout;
-/* mutt_endwin (NULL);
-
- is this really needed here ?
- it makes the screen flicker on pgp and s/mime messages,
- before asking for a passphrase...
- Oliver Ehli */
if (h) {
-
mutt_message_hook (Context, h, M_MESSAGEHOOK);
if (decode) {
pipe_msg (h, fpout, decode, print);
m_fclose(&fpout);
rc = mutt_wait_filter (thepid);
- }
- else { /* handle tagged messages */
-
+ } else { /* handle tagged messages */
if (decode) {
for (i = 0; i < Context->vcount; i++)
if (Context->hdrs[Context->v2r[i]]->tagged) {
rc = 1;
}
}
- }
- else {
+ } else {
mutt_endwin (NULL);
if ((thepid = mutt_create_filter (cmd, &fpout, NULL, NULL)) < 0) {
mutt_perror (_("Can't create filter process"));