summaryrefslogtreecommitdiff
path: root/mailbox/mutil.c
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 /mailbox/mutil.c
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 'mailbox/mutil.c')
-rw-r--r--mailbox/mutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mailbox/mutil.c b/mailbox/mutil.c
index ce53794e5..19dbcc1c8 100644
--- a/mailbox/mutil.c
+++ b/mailbox/mutil.c
@@ -75,10 +75,10 @@ mu_hex2ul (char hex)
return hex - '0';
if (hex >= 'a' && hex <= 'z')
- return hex - 'a';
+ return hex - 'a' + 10;
if (hex >= 'A' && hex <= 'Z')
- return hex - 'A';
+ return hex - 'A' + 10;
return -1;
}

Return to:

Send suggestions and report system problems to the System administrator.