summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2010-04-06 21:55:15 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2010-04-06 22:28:34 +0300
commitb2c1b1ff400a604fa41c168351630bac3238177e (patch)
treedf6ac2049b2fccc2f7526009c2edd3c7298fecf6 /examples
parentd5ae81e503facb6b39cebd5dbf6697dfa429ef07 (diff)
downloadmailutils-b2c1b1ff400a604fa41c168351630bac3238177e.tar.gz
mailutils-b2c1b1ff400a604fa41c168351630bac3238177e.tar.bz2
Improve compatibility with RFC 2231 and RFC 2047.
* mailbox/mimehdr.c: New file. * mailbox/Makefile.am (libmailutils_la_SOURCES): Add mailbox/mimehdr.c. * mailbox/attachment.c (_header_get_param) (_get_attachment_name, mu_message_aget_attachment_name) (mu_message_get_attachment_name: Move to mailbox/mimehdr.c (with edits). (mu_message_save_attachment): Add a FIXME comment. * include/mailutils/message.h (MU_MIMEHDR_MULTILINE) (MU_MIMEHDR_CSINFO): New defines. (mu_mimehdr_get_disp,mu_mimehdr_aget_disp) (mu_mimehdr_get_param,mu_mimehdr_aget_param) (mu_mimehdr_decode_param) (mu_mimehdr_aget_decoded_param): New prototypes. (mu_message_aget_attachment_name): Change signature. (mu_message_aget_decoded_attachment_name): New prototype. * mailbox/mutil.c (mu_hex2ul): Fix a silly bug (have anybody ever tried to use that function?!?) * mailbox/testsuite/Urls: Update. * examples/mimetest.c (message_display_parts): Add a FIXME comment. * libmu_cpp/message.cc (Message::get_attachment_name): Likewise. * mh/mhn.c (store_handler): Likewise. * python/libmu_py/message.c (api_message_get_attachment_name): Likewise.
Diffstat (limited to 'examples')
-rw-r--r--examples/mimetest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/mimetest.c b/examples/mimetest.c
index 90a00a02e..c42dc4449 100644
--- a/examples/mimetest.c
+++ b/examples/mimetest.c
@@ -242,7 +242,8 @@ message_display_parts (mu_message_t msg, int indent)
{
/* Save the attachements. */
char *fname = NULL;
- mu_message_aget_attachment_name (part, &fname);
+ /* FIXME: CS/Lang info is ignored */
+ mu_message_aget_attachment_name (part, &fname, NULL);
if (fname == NULL)
fname = mu_tempname (NULL);

Return to:

Send suggestions and report system problems to the System administrator.