Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | mms.info | 31.81 KB | HeManHedman |
mailsave.diff | 291 bytes | HeManHedman |
Comments
Comment #1
HeManHedman CreditAttribution: HeManHedman commentedAdded the MMS (made it some what anonymous)
Comment #2
Stuart Greenfield CreditAttribution: Stuart Greenfield commentedThanks 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...
Comment #3
HeManHedman CreditAttribution: HeManHedman commentedI think you now should have got a MMS from the same sender that i got my MMS from.
Comment #4
Stuart Greenfield CreditAttribution: Stuart Greenfield commentedNothing has arrived at my mailsave inbox - can you double check it was sent to the right address, and re-send. Thanks!
Comment #5
HeManHedman CreditAttribution: HeManHedman commentedMy friend had failed sending a MMS for debuging so I sent one from my wifes phone.
Comment #6
Stuart Greenfield CreditAttribution: Stuart Greenfield commentedThis 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!
Comment #7
HeManHedman CreditAttribution: HeManHedman commentedThe updated version worked fine, thanks!
Comment #8
(not verified) CreditAttribution: commentedAutomatically closed -- issue fixed for two weeks with no activity.