sendMail URL attachment - set extension

Hi,

I’ve just been using this functionality to send me an email with a photo attached when certain events happen but the attachment has a strange extension. I’ve had a look at the two pull requests relating to this (here and here) but I’m still having an issue. The URL I get the image from is

http://[internal ip address]/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=[USR]n&pwd=[PWD]

and the file comes through with the name ‘CGIProxy.fcgi’ which means it doesn’t automatically open in an image editor.

Is there any way we can define what the attachment is called and override the current logic? It would also be nice if we could append a timestamp to the attachment filename.

Many thanks,

Ben