pub unsafe fn mailimf_field_new_custom(
    mut name: *mut libc::c_char,
    mut value: *mut libc::c_char,
) -> *mut mailimf_field {
    let mut opt_field: *mut mailimf_optional_field = 0 as *mut mailimf_optional_field;
    let mut field: *mut mailimf_field = 0 as *mut mailimf_field;
    opt_field = mailimf_optional_field_new(name, value);
    if !opt_field.is_null() {
        field = mailimf_field_new(
            MAILIMF_FIELD_OPTIONAL_FIELD as libc::c_int,
            0 as *mut mailimf_return,
            0 as *mut mailimf_orig_date,
            0 as *mut mailimf_from,
            0 as *mut mailimf_sender,
            0 as *mut mailimf_to,
            0 as *mut mailimf_cc,
            0 as *mut mailimf_bcc,
            0 as *mut mailimf_message_id,
            0 as *mut mailimf_orig_date,
            0 as *mut mailimf_from,
            0 as *mut mailimf_sender,
            0 as *mut mailimf_reply_to,
            0 as *mut mailimf_to,
            0 as *mut mailimf_cc,
            0 as *mut mailimf_bcc,
            0 as *mut mailimf_message_id,
            0 as *mut mailimf_in_reply_to,
            0 as *mut mailimf_references,
            0 as *mut mailimf_subject,
            0 as *mut mailimf_comments,
            0 as *mut mailimf_keywords,
            opt_field,
        );
        if field.is_null() {
            mailimf_optional_field_free(opt_field);
        } else {
            return field;
        }
    }
    return 0 as *mut mailimf_field;
}
/*
  mailimf_field_new_custom creates a new field of type optional

  @param name should be allocated with malloc()
  @param value should be allocated with malloc()
*/
mailimf_field_new_custom creates a new field of type optional
mailimf_field_new_custom creates a new field of type optional
pub unsafe fn mailimf_field_new_custom(
    mut name: *mut libc::c_char,
    mut value: *mut libc::c_char,
) -> *mut mailimf_field {
    let mut opt_field: *mut mailimf_optional_field = 0 as *mut mailimf_optional_field;
    let mut field: *mut mailimf_field = 0 as *mut mailimf_field;
    opt_field = mailimf_optional_field_new(name, value);
    if !opt_field.is_null() {
        field = mailimf_field_new(
            MAILIMF_FIELD_OPTIONAL_FIELD as libc::c_int,
            0 as *mut mailimf_return,
            0 as *mut mailimf_orig_date,
            0 as *mut mailimf_from,
            0 as *mut mailimf_sender,
            0 as *mut mailimf_to,
            0 as *mut mailimf_cc,
            0 as *mut mailimf_bcc,
            0 as *mut mailimf_message_id,
            0 as *mut mailimf_orig_date,
            0 as *mut mailimf_from,
            0 as *mut mailimf_sender,
            0 as *mut mailimf_reply_to,
            0 as *mut mailimf_to,
            0 as *mut mailimf_cc,
            0 as *mut mailimf_bcc,
            0 as *mut mailimf_message_id,
            0 as *mut mailimf_in_reply_to,
            0 as *mut mailimf_references,
            0 as *mut mailimf_subject,
            0 as *mut mailimf_comments,
            0 as *mut mailimf_keywords,
            opt_field,
        );
        if field.is_null() {
            mailimf_optional_field_free(opt_field);
        } else {
            return field;
        }
    }
    return 0 as *mut mailimf_field;
}
pub unsafe fn mailimf_field_new_custom ( mut name : * mut libc :: c_char , mut value : * mut libc :: c_char , ) -> * mut mailimf_field { let mut opt_field : * mut mailimf_optional_field = 0 as * mut mailimf_optional_field ; let mut field : * mut mailimf_field = 0 as * mut mailimf_field ; opt_field = mailimf_optional_field_new ( name , value ) ; if ! opt_field . is_null ( ) { field = mailimf_field_new ( MAILIMF_FIELD_OPTIONAL_FIELD as libc :: c_int , 0 as * mut mailimf_return , 0 as * mut mailimf_orig_date , 0 as * mut mailimf_from , 0 as * mut mailimf_sender , 0 as * mut mailimf_to , 0 as * mut mailimf_cc , 0 as * mut mailimf_bcc , 0 as * mut mailimf_message_id , 0 as * mut mailimf_orig_date , 0 as * mut mailimf_from , 0 as * mut mailimf_sender , 0 as * mut mailimf_reply_to , 0 as * mut mailimf_to , 0 as * mut mailimf_cc , 0 as * mut mailimf_bcc , 0 as * mut mailimf_message_id , 0 as * mut mailimf_in_reply_to , 0 as * mut mailimf_references , 0 as * mut mailimf_subject , 0 as * mut mailimf_comments , 0 as * mut mailimf_keywords , opt_field , ) ; if field . is_null ( ) { mailimf_optional_field_free ( opt_field ) ; } else { return field ; } } return 0 as * mut mailimf_field ; }
mailimf_field_new_custom creates a new field of type optional
mailimf_field_new_custom creates a new field of type optional
name
*mut libc::c_char
value
*mut libc::c_char
name
*mut libc::c_char
should be allocated with malloc()
should be allocated with malloc ()
value
*mut libc::c_char
should be allocated with malloc()
should be allocated with malloc ()