Differences

This shows you the differences between two versions of the page.

mime [2009/07/02 16:03]
admin
mime [2009/07/02 16:17] (current)
admin
Line 4: Line 4:
#include <mailutils/mime.h> #include <mailutils/mime.h>
 +int mu_mime_add_part(mu_mime_t mime, mu_message_t msg);
int mu_mime_create(mu_mime_t *mime,mu_message_t msg, int flags); int mu_mime_create(mu_mime_t *mime,mu_message_t msg, int flags);
void mu_mime_destroy(mu_mime_t *mime); void mu_mime_destroy(mu_mime_t *mime);
 +int mu_mime_get_message(mu_mime_t mime, mu_message_t *msg);
int mu_mime_get_num_parts(mu_mime_t *mime,size_t *nparts); int mu_mime_get_num_parts(mu_mime_t *mime,size_t *nparts);
 +int mu_mime_get_part(mu_mime_t mime, size_t part, mu_message_t *msg);
int mu_mime_is_multipart(mu_mime_t *mime); int mu_mime_is_multipart(mu_mime_t *mime);
</code> </code>
Line 16: Line 19:
This is an opaque data structure. None of the fields should be accessed by a user program. This is an opaque data structure. None of the fields should be accessed by a user program.
 +
 +===== mu_mime_add_part =====
 +
 +<code>
 +int mu_mime_add_part(mu_mime_t mime, mu_message_t msg);
 +</code>
 +
 +Appends //msg// to the end of the mime message. The function returns 0 if successful or an error code.
===== mu_mime_create ===== ===== mu_mime_create =====
Line 34: Line 45:
Releases all the resources associates with the message. Releases all the resources associates with the message.
 +
 +===== mu_mime_get_message =====
 +
 +<code>
 +int mu_mime_get_message(mu_mime_t mime, mu_message_t *msg);
 +</code>
 +
 +Converts the mime message into a message which can be manipulated by the mu_message_* functions.
 +The function returns 0 if successful or an error code.
===== mu_mime_get_num_parts ===== ===== mu_mime_get_num_parts =====
Line 42: Line 62:
Returns the number of parts in the mime message. The function returns 0 if successful or an error code. Returns the number of parts in the mime message. The function returns 0 if successful or an error code.
 +
 +===== mu_mime_get_part =====
 +
 +<code>
 +int mu_mime_get_part(mu_mime_t mime, size_t part, mu_message_t *msg);
 +</code>
 +
 +Returns the //part//'th part of the message.
 +Numbering starts at 1.
 +The function returns 0 if successful or an error code.
===== mu_mime_is_multipart ===== ===== mu_mime_is_multipart =====
 
mime.txt · Last modified: 2009/07/02 16:17 by admin
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki