diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-04-06 21:55:15 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-04-06 22:28:34 +0300 |
commit | b2c1b1ff400a604fa41c168351630bac3238177e (patch) | |
tree | df6ac2049b2fccc2f7526009c2edd3c7298fecf6 /libmu_cpp/message.cc | |
parent | d5ae81e503facb6b39cebd5dbf6697dfa429ef07 (diff) | |
download | mailutils-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 'libmu_cpp/message.cc')
-rw-r--r-- | libmu_cpp/message.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libmu_cpp/message.cc b/libmu_cpp/message.cc index 55fdd380e..21f3ec6d1 100644 --- a/libmu_cpp/message.cc +++ b/libmu_cpp/message.cc @@ -224,7 +224,8 @@ Message :: get_attachment_name () char *c_name; std::string name; - int status = mu_message_aget_attachment_name (msg, &c_name); + /* FIXME: CS/Lang info is ignored */ + int status = mu_message_aget_attachment_name (msg, &c_name, NULL); if (status) throw Exception ("Message::get_attachment_name", status); if (c_name) { |