mronge/MailCore — Issue #6: Problem with fetching audio attachments
Author: rehabaam
Created: 2011-11-08 17:10:29+00:00
State: open

I'm tried to fetch an audio file with extension "amr" using attachments method in CTCoreMessage but in vein. When I debug the code, I see it's reading "Content-Type: audio/amr" from the mail but when it reaches this block:
if (singlePart.attached) {
CTBareAttachment *attach = [[CTBareAttachment alloc]
initWithMIMESinglePart:singlePart];
[attachments addObject:attach];
[attach release];
}

It evaluates "singlePart.attached" as false, then returns 0 objects for attachments. Do you think it's related to audio encoding? what is the proper case to handle audio extensions?