Mimetype discreate typo APPLICATION should be AUDIO
Simon Banks <[email protected]> Thu, 11 Oct 2007 10:30:00 +0100
| Newsgroups | gmane.mail.libetpan.user |
|---|---|
| Organization | Alcatel Lucent |
| Message-ID | <[email protected]> |
I've was wondering why audio mime types have been reported as
application/<type> for a while so looking at the libetpan method in
src/driver/implementation/imap/imapdriver_tools.c
static int imap_body_media_basic_to_content_type()
Is see the switch/case
case MAILIMAP_MEDIA_BASIC_AUDIO:
mime_type_type = MAILMIME_TYPE_DISCRETE_TYPE;
discrete_type_type = MAILMIME_DISCRETE_TYPE_APPLICATION;
break;
Should be
case MAILIMAP_MEDIA_BASIC_AUDIO:
mime_type_type = MAILMIME_TYPE_DISCRETE_TYPE;
discrete_type_type = MAILMIME_DISCRETE_TYPE_AUDIO;
break;
I've made the code change for my current release using libetpan0.52 and
include a diff file for your convenience.
Regards
Simon
--
Knowledge is a process of piling up facts; wisdom lies in their simplification.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Libetpan-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libetpan-users
imapdriver_tools.c.diff
(text/plain, 132 B)
396c396 < discrete_type_type = MAILMIME_DISCRETE_TYPE_AUDIO; --- > discrete_type_type = MAILMIME_DISCRETE_TYPE_APPLICATION;
sbanks.vcf
(text/x-vcard, 732 B)
begin:vcard fn:Simon Banks n:Banks;Simon org:Lucent Technologies ltd;Professional Services adr:Broad Lane;;Sterling Court;Bracknell;Berkshire;RG12 9GU;UK email;internet:[email protected] title:Staff Software Engineer tel;work:+44-(0)-1344-827565 note:Unless otherwise agreed expressly in writing by the sender (Simon Banks), this communication is to be treated as confidential and the information in it may not be used or disclosed except for the purpose for which it has been sent. If you have reason to believe that you are not the intended recipient of this communication, please contact the sender immediately. x-mozilla-html:TRUE url:http://www.alcatel-lucent.com version:2.1 end:vcard
smime.p7s
(application/x-pkcs7-signature, 3.9 KB) - not displayed