When sending mms' via Telia in Sweden images doesn't have their filename in Content-Disposition or Content-Type but instead in Content-Location. This doesn't work.
If I add the attached patch it works but it's not in any way a solution, more a proof of bug.

CommentFileSizeAuthor
#1 mms.info31.81 KBHeManHedman
mailsave.diff291 bytesHeManHedman

Comments

HeManHedman’s picture

StatusFileSize
new31.81 KB

Added the MMS (made it some what anonymous)

Stuart Greenfield’s picture

Thanks for the post - I'll try to get on this sometime soon but I am struggling for quality Drupal time at the moment!

Could you send an mms to my system at mailsave@stuartandnicola.com. That way I can run the Telia message through my dev version to see debug/update the code. It sounds like it shouldn't be too hard to update...

HeManHedman’s picture

I think you now should have got a MMS from the same sender that i got my MMS from.

Stuart Greenfield’s picture

I think you now should have got a MMS from the same sender that i got my MMS from.

Nothing has arrived at my mailsave inbox - can you double check it was sent to the right address, and re-send. Thanks!

HeManHedman’s picture

My friend had failed sending a MMS for debuging so I sent one from my wifes phone.

Stuart Greenfield’s picture

Assigned: Unassigned » Stuart Greenfield
Status: Active » Fixed

This was an interesting one!

I have modified mailsave itself so it can retrieve attachments for which there is no filename, and added a new cleanup filter for Telia that retrieves the filename from the Content-Location header.

The Telia way of sending messages without the filename in parameters or dparameters seems a little odd, and it confused my webmail client which also displayed the file without any filename!

I have committed the updates against HEAD, so when the package rebuilds if you want to try downloading them, and activating the Telia filter under Site configuration > Mailsave, you should be able to retrieve MMS messages complete with original filenames.

Let me know if it works!

HeManHedman’s picture

The updated version worked fine, thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.