ELinks 0.19.1
mailcap.c File Reference
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "elinks.h"
#include "config/options.h"
#include "cookies/cookies.h"
#include "intl/libintl.h"
#include "mime/backend/common.h"
#include "network/connection.h"
#include "network/progress.h"
#include "network/socket.h"
#include "osdep/osdep.h"
#include "osdep/sysname.h"
#include "protocol/common.h"
#include "protocol/file/mailcap.h"
#include "protocol/http/http.h"
#include "protocol/uri.h"
#include "terminal/terminal.h"
#include "util/conv.h"
#include "util/env.h"
#include "util/string.h"
Include dependency graph for mailcap.c:

Functions

static void mailcap_protocol_handler_common (struct connection *conn, int html)
void mailcap_protocol_handler (struct connection *conn)
void mailcap_html_protocol_handler (struct connection *conn)

Variables

static union option_info mailcap_options []
struct module mailcap_protocol_module
struct module mailcap_html_protocol_module

Function Documentation

◆ mailcap_html_protocol_handler()

void mailcap_html_protocol_handler ( struct connection * conn)

◆ mailcap_protocol_handler()

void mailcap_protocol_handler ( struct connection * conn)

◆ mailcap_protocol_handler_common()

void mailcap_protocol_handler_common ( struct connection * conn,
int html )
static

Variable Documentation

◆ mailcap_html_protocol_module

struct module mailcap_html_protocol_module
Initial value:
N_("Mailcap html"),
)
#define NULL
Definition explodename.c:35
#define N_(msg)
Definition libintl.h:25
#define struct_module(name, options, hooks, submods, data, init, done, getname)
Definition module.h:47

◆ mailcap_options

union option_info mailcap_options[]
static
Initial value:
= {
INIT_OPT_TREE("protocol", N_("Mailcap"),
"mailcap", OPT_ZERO,
N_("Options specific to mailcap.")),
INIT_OPT_BOOL("protocol.mailcap", N_("Allow empty referrer"),
"allow_empty_referrer", OPT_ZERO, 0,
N_("Whether to allow empty referrer for mailcap protocol. "
"It can be helpful for restoring sessions, but it is a bit dangerous. "
"When allowed you can execute any command in goto url dialog. "
"For example mailcap:ls")),
NULL_OPTION_INFO,
}
@ OPT_ZERO
Definition options.h:23

◆ mailcap_protocol_module

struct module mailcap_protocol_module
Initial value:
N_("Mailcap"),
)
static union option_info mailcap_options[]
Definition mailcap.c:93