mess822x 1.23
mess822x
Loading...
Searching...
No Matches
Macros | Functions | Variables
822mimeparts.c File Reference
#include <unistd.h>
#include "buffer.h"
#include "logmsg.h"
#include "getln.h"
#include "mess822.h"
#include "exit.h"
#include "case.h"
#include "str.h"
#include "open.h"
#include "fmt.h"
#include "getoptb.h"
#include "byte.h"
Include dependency graph for 822mimeparts.c:

Go to the source code of this file.

Macros

#define WHO   "822mimeparts"
 
#define LINELEN   1000
 

Functions

char * mime_type (int type)
 
void msg_bodyproc (int mimetype, int start, int end)
 
void mime_partproc (stralloc *bound, int mimetype, int start, int end)
 
int decode_name (stralloc *name)
 
int b64name (stralloc *name)
 
int attachment_name (stralloc *name, stralloc *in)
 
int main (int argc, char **argv)
 

Variables

int match
 
int flag
 
int slink = 0
 
int verbose = 0
 
stralloc line = {0}
 
stralloc valuem = {0}
 
stralloc valuet = {0}
 
stralloc valuec = {0}
 
stralloc boundary = {0}
 
stralloc mname = {0}
 
stralloc bodybuf = {0}
 
stralloc partbuf = {0}
 
stralloc partname = {0}
 
stralloc alias = {0}
 
char name [11] = { '0', '0', '0', 'u', 'n', 'k', 'n', 'o', 'w', 'n', '\0' }
 
char pname [7] = { '0', '0', '0', '0', '0', '0', '\0' }
 
char outbuf [LINELEN]
 
buffer bo
 
mess822_header msid = MESS822_HEADER
 
mess822_action hm []
 
mess822_header type = MESS822_HEADER
 
mess822_action ht []
 
mess822_header enco = MESS822_HEADER
 
mess822_action hc []
 

Macro Definition Documentation

◆ LINELEN

#define LINELEN   1000

Definition at line 16 of file 822mimeparts.c.

◆ WHO

#define WHO   "822mimeparts"

Definition at line 14 of file 822mimeparts.c.

Function Documentation

◆ attachment_name()

int attachment_name ( stralloc *  name,
stralloc *  in 
)

Definition at line 334 of file 822mimeparts.c.

Here is the caller graph for this function:

◆ b64name()

int b64name ( stralloc *  name)

Definition at line 304 of file 822mimeparts.c.

Here is the call graph for this function:

◆ decode_name()

int decode_name ( stralloc *  name)

Definition at line 235 of file 822mimeparts.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 393 of file 822mimeparts.c.

Here is the call graph for this function:

◆ mime_partproc()

void mime_partproc ( stralloc *  bound,
int  mimetype,
int  start,
int  end 
)

Definition at line 185 of file 822mimeparts.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mime_type()

char * mime_type ( int  type)

Definition at line 90 of file 822mimeparts.c.

◆ msg_bodyproc()

void msg_bodyproc ( int  mimetype,
int  start,
int  end 
)

Definition at line 155 of file 822mimeparts.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ alias

stralloc alias = {0}

Definition at line 31 of file 822mimeparts.c.

◆ bo

buffer bo

Definition at line 88 of file 822mimeparts.c.

◆ bodybuf

stralloc bodybuf = {0}

Definition at line 28 of file 822mimeparts.c.

◆ boundary

stralloc boundary = {0}

Definition at line 26 of file 822mimeparts.c.

◆ enco

Definition at line 150 of file 822mimeparts.c.

◆ flag

int flag

Definition at line 19 of file 822mimeparts.c.

◆ hc

Initial value:
= {
{ "Content-Transfer-Encoding", &flag, 0, &valuec, 0, 0, 0 } , { 0, 0, 0, 0, 0, 0, 0 }
}
stralloc valuec
Definition: 822mimeparts.c:25
int flag
Definition: 822mimeparts.c:19

Definition at line 151 of file 822mimeparts.c.

◆ hm

Initial value:
= {
{ "Message-ID", &flag, 0, &valuem, 0, 0, 0 } , { 0, 0, 0, 0, 0, 0, 0 }
}
stralloc valuem
Definition: 822mimeparts.c:23

Definition at line 143 of file 822mimeparts.c.

◆ ht

Initial value:
= {
{ "Content-Type", &flag, 0, &valuet, 0, 0, 0 } , { 0, 0, 0, 0, 0, 0, 0 }
}
stralloc valuet
Definition: 822mimeparts.c:24

Definition at line 147 of file 822mimeparts.c.

◆ line

stralloc line = {0}

Definition at line 22 of file 822mimeparts.c.

◆ match

int match

Definition at line 18 of file 822mimeparts.c.

◆ mname

stralloc mname = {0}

Definition at line 27 of file 822mimeparts.c.

◆ msid

Definition at line 142 of file 822mimeparts.c.

◆ name

char name[11] = { '0', '0', '0', 'u', 'n', 'k', 'n', 'o', 'w', 'n', '\0' }

Definition at line 52 of file 822mimeparts.c.

◆ outbuf

char outbuf[LINELEN]

Definition at line 87 of file 822mimeparts.c.

◆ partbuf

stralloc partbuf = {0}

Definition at line 29 of file 822mimeparts.c.

◆ partname

stralloc partname = {0}

Definition at line 30 of file 822mimeparts.c.

◆ pname

char pname[7] = { '0', '0', '0', '0', '0', '0', '\0' }

Definition at line 53 of file 822mimeparts.c.

◆ slink

int slink = 0

Definition at line 20 of file 822mimeparts.c.

◆ type

Definition at line 146 of file 822mimeparts.c.

◆ valuec

stralloc valuec = {0}

Definition at line 25 of file 822mimeparts.c.

◆ valuem

stralloc valuem = {0}

Definition at line 23 of file 822mimeparts.c.

◆ valuet

stralloc valuet = {0}

Definition at line 24 of file 822mimeparts.c.

◆ verbose

int verbose = 0

Definition at line 21 of file 822mimeparts.c.