tin  2.6.1
About: TIN is a threaded NNTP and spool based UseNet newsreader.
  Fossies Dox: tin-2.6.1.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

rfc1524.c File Reference
#include "tin.h"
Include dependency graph for rfc1524.c:

Go to the source code of this file.

Macros

#define DEFAULT_MAILCAPS   "~/.mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap:/etc/mail/mailcap"
 
#define MAILCAPFIELDS   13
 
#define CHECK_SPACE(minlen)
 

Functions

static char * expand_mailcap_meta (const char *mailcap, t_part *part, t_bool escape_shell_meta_chars, const char *path)
 
static char * get_mailcap_field (char *mailcap)
 
static t_mailcapparse_mailcap_line (const char *mailcap, t_part *part, const char *path)
 
t_mailcapget_mailcap_entry (t_part *part, const char *path)
 
void free_mailcap (t_mailcap *tmailcap)
 

Macro Definition Documentation

◆ CHECK_SPACE

#define CHECK_SPACE (   minlen)
Value:
{ \
while (space <= (minlen)) { /* need more space? */ \
olen = strlen(line); \
space += linelen; \
linelen <<= 1; \
line = my_realloc(line, linelen); \
memset(line + olen, 0, linelen - olen); \
} \
}
#define my_realloc(ptr, size)
Definition: tin.h:2247

Definition at line 334 of file rfc1524.c.

◆ DEFAULT_MAILCAPS

#define DEFAULT_MAILCAPS   "~/.mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap:/etc/mail/mailcap"

Definition at line 49 of file rfc1524.c.

◆ MAILCAPFIELDS

#define MAILCAPFIELDS   13

Definition at line 52 of file rfc1524.c.

Function Documentation

◆ expand_mailcap_meta()

static char * expand_mailcap_meta ( const char *  mailcap,
t_part part,
t_bool  escape_shell_meta_chars,
const char *  path 
)
static

◆ free_mailcap()

◆ get_mailcap_entry()

t_mailcap * get_mailcap_entry ( t_part part,
const char *  path 
)

◆ get_mailcap_field()

static char * get_mailcap_field ( char *  mailcap)
static

Definition at line 293 of file rfc1524.c.

References bool_not, FALSE, and str_trim().

Referenced by parse_mailcap_line().

◆ parse_mailcap_line()