File modules/mm/mm.h

  $Revision: 1.6 $

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: NOT COMPLETE, NOT REVUED, NOT TESTED
Design and implementation by: Daniele Arena
Included in: modules/mm/mm.c

Included Files


Preprocessor definitions

#define NO_DEBUG 0

#define DO_DEBUG 1

#define DEFAULT_DEBUG DO_DEBUG

#define TEMPDIR "/tmp"

#define FILENAMELEN 1024

#define GLOBALPREFIX "mime"

#define STR_S 63

#define STR_M 255

#define STR_L 1023

#define STR_XL 4095

#define STR_XXL 16383


Typedef sectptr

typedef struct MM_body_section* sectptr

Typedef MM_b_section

typedef struct MM_body_section MM_b_section
struct MM_body_section 
   { 
     char* number; 
     char* type; 
     unsigned long size; 
     char* mime_headers; 
     char* contents; 
     short supported; 
     sectptr next; 
   } 

Typedef MM_bs_list

typedef struct MM_body_section_list MM_bs_list
struct MM_body_section_list 
   { 
     int size; 
     MM_b_section* head; 
     MM_b_section* tail; 
   } 

Typedef partptr

typedef struct MM_extracted_mimepart* partptr

Typedef MM_xmp

typedef struct MM_extracted_mimepart MM_xmp
struct MM_extracted_mimepart 
   { 
     char* number; 
     char* type; 
     char* file; 
     short supported; 
     partptr next; 
   } 

Typedef MM_xmp_list

typedef struct MM_extracted_mimepart_list MM_xmp_list
struct MM_extracted_mimepart_list 
   { 
     int size; 
     MM_xmp* head; 
     MM_xmp* tail; 
   } 

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; 
   }