File mm/mm.h

  $Revision: 2.17 $

mm - MIME Parser module. Functions to parse a mail message, find if it is MIME-encapsulated, and return the parts of the message which are supported by the UP module.
Status: COMPLETE, NOT REVUED, TESTED
Design and implementation by: daniele@ripe.net

Included Files


Preprocessor definitions

#define _MM_H

#define STR_S 63

#define STR_M 255

#define STR_L 1023

#define STR_XL 4095

#define STR_XXL 16383

#define LINELENGTH 80

#define MAXBUFSIZE 102400

#define NO_DEBUG 0

#define DO_DEBUG 1

#define DEFAULT_DEBUG NO_DEBUG

#define TEMPDIR "/tmp"

#define FILENAMELEN STR_L

#define GLOBALPREFIX "mime"

#define MAXSUPPTYPES 50

#define MM_get_headers( mail_file, mail_descr, custom_debug )

#define parse_application_pgp( stream, body, part_number, mailnode )

#define parse_unknown_unknown( stream, body, part_number, mailnode )

#define parse_multipart_mixed( stream, body, part_number, mailnode )

#define parse_multipart_digest( stream, body, part_number, mailnode )


Typedef MM_header

typedef struct MM_mail_header MM_header
struct MM_mail_header 
   { 
     char* from; 
     char* subject; 
     char* date; 
     char* message_id; 
     char* reply_to; 
     char* cc; 
     char* content_type; 
   } 

Local Function asctime_r()

static char* asctime_r ( const struct tm* __tm, char* __buf )
Included from: /usr/include/time.h
Calls: __posix_asctime_r()

Local Function ctime_r()

static char* ctime_r ( const time_t* __time, char* __buf )
Included from: /usr/include/time.h
Calls: __posix_ctime_r()

Local Function getlogin_r()

static int getlogin_r ( char* __name, int __len )
Included from: /usr/include/unistd.h
Calls: __posix_getlogin_r()

Local Function readdir_r()

static int readdir_r ( DIR* __dp, struct dirent* __ent, struct dirent** __res )
Included from: /usr/include/dirent.h
Calls: __posix_readdir_r()

Local Function ttyname_r()

static int ttyname_r ( int __fildes, char* __buf, size_t __size )
Included from: /usr/include/unistd.h
Calls: __posix_ttyname_r()