src/mime.h
branchENGINE-233
changeset 1984 06e6c0f1d8fc
parent 1513 e7f7e42385b5
child 1987 313073d93cd9
     1.1 --- a/src/mime.h	Tue Aug 22 09:08:15 2017 +0200
     1.2 +++ b/src/mime.h	Tue Aug 22 12:29:17 2017 +0200
     1.3 @@ -9,6 +9,18 @@
     1.4  extern "C" {
     1.5  #endif
     1.6  
     1.7 +typedef enum {
     1.8 +    PEP_CONTENT_DISP_ATTACHMENT = 0,
     1.9 +    PEP_CONTENT_DISP_INLINE = 1,
    1.10 +    PEP_CONTENT_DISP_EXTENSION = 2,
    1.11 +    PEP_CONTENT_DISP_NONE = -1      // must be affirmatively set
    1.12 +} content_disposition_type;
    1.13 +
    1.14 +DYNAMIC_API void set_blob_content_disposition(bloblist_t* blob, 
    1.15 +                                              content_disposition_type disposition,
    1.16 +                                              const char* extension_typename,
    1.17 +                                              stringpair_list_t dispo_params);
    1.18 +
    1.19  
    1.20  // is_PGP_message_text() - determine if text encodes a PGP message
    1.21  //
    1.22 @@ -78,4 +90,3 @@
    1.23  #ifdef __cplusplus
    1.24  }
    1.25  #endif
    1.26 -