From 8ebcddeff4268b4e3d93512a31f9fcd6d48d6ac9 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Thu, 4 May 2006 17:42:19 +0200 Subject: [PATCH] Some day in the future ELinks will handle copiousoutput without external pagers. Only a small step for now --- src/mime/backend/mailcap.c | 1 + src/mime/mime.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/mime/backend/mailcap.c b/src/mime/backend/mailcap.c index 136cc0ee..2f8d21b2 100644 --- a/src/mime/backend/mailcap.c +++ b/src/mime/backend/mailcap.c @@ -658,6 +658,7 @@ get_mime_handler_mailcap(unsigned char *type, int options) handler = init_mime_handler(program, entry->description, mailcap_mime_module.name, get_mailcap_ask(), block); + if (handler) handler->copiousoutput = entry->copiousoutput; mem_free(program); return handler; diff --git a/src/mime/mime.h b/src/mime/mime.h index 779ed3b8..01524fdd 100644 --- a/src/mime/mime.h +++ b/src/mime/mime.h @@ -11,6 +11,7 @@ struct mime_handler { unsigned char *backend_name; unsigned int ask:1; unsigned int block:1; + unsigned int copiousoutput:1; unsigned char program[1]; /* XXX: Keep last! */ };