pub unsafe fn mailimf_fields_new_with_data_all(
    mut date: *mut mailimf_date_time,
    mut from: *mut mailimf_mailbox_list,
    mut sender: *mut mailimf_mailbox,
    mut reply_to: *mut mailimf_address_list,
    mut to: *mut mailimf_address_list,
    mut cc: *mut mailimf_address_list,
    mut bcc: *mut mailimf_address_list,
    mut message_id: *mut libc::c_char,
    mut in_reply_to: *mut clist,
    mut references: *mut clist,
    mut subject: *mut libc::c_char,
) -> *mut mailimf_fields {
    let mut fields: *mut mailimf_fields = 0 as *mut mailimf_fields;
    let mut r: libc::c_int = 0;
    fields = mailimf_fields_new_empty();
    if !fields.is_null() {
        r = mailimf_fields_add_data(
            fields,
            date,
            from,
            sender,
            reply_to,
            to,
            cc,
            bcc,
            message_id,
            in_reply_to,
            references,
            subject,
        );
        if r != MAILIMF_NO_ERROR as libc::c_int {
            mailimf_fields_free(fields);
        } else {
            return fields;
        }
    }
    return 0 as *mut mailimf_fields;
}
/*
  mailimf_fields_new_with_data_all creates a new mailimf_fields
  structure with a set of fields

  if you don't want a given field in the set to be added in the list
  of fields, you can give NULL as argument

  @param message_id sould be allocated with malloc()
  @param subject should be allocated with malloc()
  @param in_reply_to each elements of this list should be allocated
    with malloc()
  @param references each elements of this list should be allocated
    with malloc()

  @return MAILIMF_NO_ERROR will be returned on success,
  other code will be returned otherwise
*/
mailimf_fields_new_with_data_all creates a new mailimf_fields
structure with a set of fields

if you don't want a given field in the set to be added in the list
of fields, you can give NULL as argument
mailimf_fields_new_with_data_all creates a new mailimf_fields structure with a set of fields if you don ' t want a given field in the set to be added in the list of fields you can give NULL as argument
pub unsafe fn mailimf_fields_new_with_data_all(
    mut date: *mut mailimf_date_time,
    mut from: *mut mailimf_mailbox_list,
    mut sender: *mut mailimf_mailbox,
    mut reply_to: *mut mailimf_address_list,
    mut to: *mut mailimf_address_list,
    mut cc: *mut mailimf_address_list,
    mut bcc: *mut mailimf_address_list,
    mut message_id: *mut libc::c_char,
    mut in_reply_to: *mut clist,
    mut references: *mut clist,
    mut subject: *mut libc::c_char,
) -> *mut mailimf_fields {
    let mut fields: *mut mailimf_fields = 0 as *mut mailimf_fields;
    let mut r: libc::c_int = 0;
    fields = mailimf_fields_new_empty();
    if !fields.is_null() {
        r = mailimf_fields_add_data(
            fields,
            date,
            from,
            sender,
            reply_to,
            to,
            cc,
            bcc,
            message_id,
            in_reply_to,
            references,
            subject,
        );
        if r != MAILIMF_NO_ERROR as libc::c_int {
            mailimf_fields_free(fields);
        } else {
            return fields;
        }
    }
    return 0 as *mut mailimf_fields;
}
pub unsafe fn mailimf_fields_new_with_data_all ( mut date : * mut mailimf_date_time , mut from : * mut mailimf_mailbox_list , mut sender : * mut mailimf_mailbox , mut reply_to : * mut mailimf_address_list , mut to : * mut mailimf_address_list , mut cc : * mut mailimf_address_list , mut bcc : * mut mailimf_address_list , mut message_id : * mut libc :: c_char , mut in_reply_to : * mut clist , mut references : * mut clist , mut subject : * mut libc :: c_char , ) -> * mut mailimf_fields { let mut fields : * mut mailimf_fields = 0 as * mut mailimf_fields ; let mut r : libc :: c_int = 0 ; fields = mailimf_fields_new_empty ( ) ; if ! fields . is_null ( ) { r = mailimf_fields_add_data ( fields , date , from , sender , reply_to , to , cc , bcc , message_id , in_reply_to , references , subject , ) ; if r != MAILIMF_NO_ERROR as libc :: c_int { mailimf_fields_free ( fields ) ; } else { return fields ; } } return 0 as * mut mailimf_fields ; }
mailimf_fields_new_with_data_all creates a new mailimf_fields
structure with a set of fields
mailimf_fields_new_with_data_all creates a new mailimf_fields structure with a set of fields
date
*mut mailimf_date_time
from
*mut mailimf_mailbox_list
sender
*mut mailimf_mailbox
reply_to
*mut mailimf_address_list
to
*mut mailimf_address_list
cc
*mut mailimf_address_list
bcc
*mut mailimf_address_list
message_id
*mut libc::c_char
in_reply_to
*mut clist
references
*mut clist
subject
*mut libc::c_char
MAILIMF_NO_ERROR will be returned on success,
other code will be returned otherwise
MAILIMF_NO_ERROR will be returned on success other code will be returned otherwise
date
*mut mailimf_date_time
from
*mut mailimf_mailbox_list
sender
*mut mailimf_mailbox
reply_to
*mut mailimf_address_list
to
*mut mailimf_address_list
cc
*mut mailimf_address_list
bcc
*mut mailimf_address_list
message_id
*mut libc::c_char
sould be allocated with malloc()
sould be allocated with malloc ()
in_reply_to
*mut clist
each elements of this list should be allocated
with malloc()
each elements of this list should be allocated with malloc ()
references
*mut clist
each elements of this list should be allocated
with malloc()
each elements of this list should be allocated with malloc ()
subject
*mut libc::c_char
should be allocated with malloc()
should be allocated with malloc ()