Pipe to a program issues
I have a script that receives email, takes attachment from it and saves it to folder. I have a global filter that pipes to a program every email sent to specific address. Everything works great if i manually send email to to that address. But if it is sent by camera it does not work.
I have a game camera that takes pictures and sends to email address. It works great and i'm receiving these pictures in my email box, but when i try to make a filter for camera pictures directly go to php, nothing happens.
When i was testing my php program i was sending emails from my Mac and if errors, i was getting back "Mail delivery failed: returning message to sender" emails with some errors and i fixed everything.
The question is how to see those errors if emails is sent by camera and i can't get them? And why everything works great if i sent email from Mac, but does not work if email is sent from camera?
-
i found the problem! When i sent email manually, picture comes like "image/jpeg" mime type, but when it comes from camera, it is "application/octet-stream". I didn't put that mime type in allowed mime types, that's why it was dropped. 0 -
Hi @Arnas I'm happy to see you were able to resolve the issue you were having, thanks for letting us know what the cause was and how you resolved it! Thanks! 0
Please sign in to leave a comment.
Comments
2 comments