Factor trim format function out
[mmh] / h / mhparse.h
index 2d88127..782ab51 100644 (file)
@@ -94,6 +94,7 @@ struct Content {
        struct CTinfo c_ctinfo;      /* parsed elements of Content-Type   */
        int c_type;                  /* internal flag for content type    */
        int c_subtype;               /* internal flag for content subtype */
+       char *c_charset;             /* charset string                    */
 
        /* Content-Transfer-Encoding info (decoded contents) */
        CE c_cefile;                 /* structure holding decoded content */
@@ -109,11 +110,8 @@ struct Content {
        SizeCEFunc  c_cesizefnx;     /* size of decoded contents          */
 
        int c_umask;                 /* associated umask                  */
-       pid_t c_pid;                 /* process doing display             */
-       int c_rfc934;                /* rfc934 compatibility flag         */
 
        char *c_showproc;            /* default, if not in profile        */
-       char *c_termproc;            /* for charset madness...            */
        char *c_storeproc;           /* overrides profile entry, if any   */
 
        char *c_storage;             /* write contents (file)             */
@@ -253,3 +251,4 @@ int add_header(CT, char *, char *);
 int get_ctinfo(unsigned char *, CT, int);
 int open7Bit(CT, char **);
 void close_encoding(CT);
+char *extract_name_value(char *, char *);