| View previous topic :: View next topic |
| Author |
Message |
foyleman
Joined: 19 Feb 2008 Posts: 11
|
Posted: Tue Feb 19, 2008 2:38 pm Post subject: emails - inline images and datetime |
|
|
I have CamPermanent setup to email me an image when motion is detected. The program does email me an attached image. However, even after selecting to place the image "inline" I still can't see the image. The image shows up as missing in the email body (small box with X in the middle).
I can view the attached image but I cannot view the inline image.
Also, the time of day the email was sent always reads 12:00 am therefore I can't tell when the motion was detected based on the email.
I am using Mozilla Thunderbird. There is no option to view images for these received emails so that is not the problem.
I am using CamPermanent version 2.3.01 and it is registered even though it states it is not the registered full version (I don't know why it states that).
Below is what I thought to be the pertinent source code from the email.
| Code: | --#SEPERATOR1#
Content-Type: multipart/related; boundary="#SEPERATOR2#"
Content-Transfer-Encoding: quoted-printable
--#SEPERATOR2#
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Here comes a picture ...<br><img src=3D"cid:motion"><br>
--#SEPERATOR2#--
--#SEPERATOR1#
Content-Type: application/octet-stream; name=motion.jpg
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=motion.jpg
Content-ID: motion
(REMOVED BASE64 IMAGE CODE - IT WAS TESTED AND VALID)
--#SEPERATOR1#-- |
* sorry for the wide post. I couldn't figure out how to wrap it without breaking the working code. Admin: feel free to edit and delete the length after it's usefulness is done.
Last edited by foyleman on Tue Feb 19, 2008 2:54 pm; edited 1 time in total |
|
| Back to top |
|
 |
foyleman
Joined: 19 Feb 2008 Posts: 11
|
Posted: Tue Feb 19, 2008 2:48 pm Post subject: |
|
|
Some more information as I am comparing source code of emails. The date provided by CamPermanent in the email is formated as:
DATE: Tuesday, February 19, 2008
All my other received emails from various locations are formated as:
Date: Wed, 13 Feb 2008 20:22:45 GMT
Date: Mon, 18 Feb 2008 17:35:23 -0500
As you can see, the timestamp is missing which is why all my emails are listed as having been received at 12:00 am
|
|
| Back to top |
|
 |
foyleman
Joined: 19 Feb 2008 Posts: 11
|
Posted: Tue Feb 19, 2008 2:53 pm Post subject: |
|
|
I ran a base64_decode() on the inline image and it is valid. An image does appear.
Based on that, I will attempt to edit my first post to reduce the length.
** However, I still need a fix to view the image inline in my email client. That doesn't work for me.
|
|
| Back to top |
|
 |
foyleman
Joined: 19 Feb 2008 Posts: 11
|
Posted: Fri Feb 22, 2008 1:31 pm Post subject: |
|
|
bump
|
|
| Back to top |
|
 |
foyleman
Joined: 19 Feb 2008 Posts: 11
|
Posted: Sat Feb 23, 2008 3:21 pm Post subject: |
|
|
So, maybe these issues are being addressed in the next version of CamPermanent?
|
|
| Back to top |
|
 |
m4rk
Joined: 23 Aug 2007 Posts: 47 Location: Austria
|
Posted: Sun Feb 24, 2008 4:23 pm Post subject: |
|
|
Just a guess but the x instead of an image could due antivirus/security settings for your email.
Are inline images normally OK? Maybe you could test it by sending an email with a inline image to yourself. _________________ www.markandlinda.net
CamUniversal 3.3 , Win XP Pro
4 USB Logitech webcams
QC Pro 4000 + Notebook Pro. Both on same PC and driver qc858enu.
QC Pro 5000 + Fusion. Both on same PC and driver qc1150enu.
See Homepage for QC Pro 5000 pictures.
|
|
| Back to top |
|
 |
Marc Site Admin
Joined: 22 Aug 2007 Posts: 97 Location: Berlin/Germany
|
Posted: Sun Feb 24, 2008 4:56 pm Post subject: |
|
|
Hello,
thank you for your postings!
| Quote: | | Also, the time of day the email was sent always reads 12:00 am therefore I can't tell when the motion was detected based on the email. | I have fixed this for Thunderbird, Outlook was already ok!
| Quote: | | I am using CamPermanent version 2.3.01 and it is registered even though it states it is not the registered full version (I don't know why it states that). | Please go from the menu to info/register and follow the steps.
Send me the key_info file and will send you your key!
| Quote: | | I am using Mozilla Thunderbird. There is no option to view images for these received emails so that is not the problem. | Yes! I have tried once more to receive the emails from CamPermanent with inline images!
- in Thunderbird you see only the missing box and the images are attached.
- Outlook Express 6 works well
- Outlook 2003 works well
I don't know the difference in the email format which Thunderbird needs to display the inline images. I have searched the web but nothing special found!
I'm glad if someone have an idea!  _________________ Marc Schneider
CrazyPixels - Berlin / Germany
|
|
| Back to top |
|
 |
foyleman
Joined: 19 Feb 2008 Posts: 11
|
Posted: Sun Feb 24, 2008 10:49 pm Post subject: |
|
|
Thanks. And in return, I have the answer to why inline images don't work on Thunderbird. Two issues:
- Your Content-Type for the image must be an image content type.
Content-Type: image/jpeg; name=motion3.jpg
- Your separators are not quite correctly inserted.
--#SEPERATOR1#
describe email and boundary
--#SEPERATOR2#
insert html
--#SEPERATOR2#
define inline image
--#SEPERATOR2#-- (close separator 2)
--#SEPERATOR1#-- (close separator 1)
Your message:
| Code: | This is a multi-part message.
--#SEPERATOR1#
Content-Type: multipart/related; boundary="#SEPERATOR2#"
Content-Transfer-Encoding: quoted-printable
--#SEPERATOR2#
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Here comes a picture ...<br><img src="cid:motion3"><br>
--#SEPERATOR2#--
--#SEPERATOR1#
Content-Type: application/octet-stream; name=motion3.jpg
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=motion3.jpg
Content-ID: motion3
INSERT-IMAGE-CODE-HERE
--#SEPERATOR1#-- |
Corrected:
| Code: | This is a multi-part message.
--#SEPERATOR1#
Content-Type: multipart/related; boundary="#SEPERATOR2#"
Content-Transfer-Encoding: quoted-printable
--#SEPERATOR2#
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
Here comes a picture ...<br><img src="cid:motion3"><br>
</body>
</html>
--#SEPERATOR2#
Content-Type: image/jpeg; name=motion3.jpg
Content-Transfer-Encoding: base64
Content-ID: motion3
Content-Disposition: inline; filename=motion3.jpg
INSERT-IMAGE-CODE-HERE
--#SEPERATOR2#--
--#SEPERATOR1#-- |
As for the license, I must have gotten side tracked or something. I didn't realize that step 6 of the license procedure was necessary. I don't know why. lol.
|
|
| Back to top |
|
 |
Marc Site Admin
Joined: 22 Aug 2007 Posts: 97 Location: Berlin/Germany
|
Posted: Tue Feb 26, 2008 3:41 pm Post subject: |
|
|
Hello,
I have tried this in Mozilla Thunderbird 1.0.6 and it doesn't work.
Please could you send me via email a *.eml file which works for you
and which I can open in Thunderbird (File/File open ...). _________________ Marc Schneider
CrazyPixels - Berlin / Germany
|
|
| Back to top |
|
 |
foyleman
Joined: 19 Feb 2008 Posts: 11
|
Posted: Tue Feb 26, 2008 3:52 pm Post subject: |
|
|
I sent it to you via email. Two versions.... the original and the fixed versions.
|
|
| Back to top |
|
 |
Marc Site Admin
Joined: 22 Aug 2007 Posts: 97 Location: Berlin/Germany
|
Posted: Fri Feb 29, 2008 6:08 pm Post subject: |
|
|
I haven't got this email yet.
Please could you resend it! _________________ Marc Schneider
CrazyPixels - Berlin / Germany
|
|
| Back to top |
|
 |
foyleman
Joined: 19 Feb 2008 Posts: 11
|
Posted: Fri Feb 29, 2008 9:10 pm Post subject: |
|
|
Perhaps it got filtered... all that email header code could trigger a spam alert.
To avoid the lost email... you can download the two files here.
I don't mind helping since it only means a better product for me in the end.
|
|
| Back to top |
|
 |
Marc Site Admin
Joined: 22 Aug 2007 Posts: 97 Location: Berlin/Germany
|
Posted: Mon Mar 03, 2008 7:41 pm Post subject: |
|
|
Thank you, I will try it in the next days! _________________ Marc Schneider
CrazyPixels - Berlin / Germany
|
|
| Back to top |
|
 |
Marc Site Admin
Joined: 22 Aug 2007 Posts: 97 Location: Berlin/Germany
|
Posted: Wed Mar 05, 2008 11:32 am Post subject: |
|
|
Now it works for the Thunderbird too!
The next update will include this improvement. _________________ Marc Schneider
CrazyPixels - Berlin / Germany
|
|
| Back to top |
|
 |
foyleman
Joined: 19 Feb 2008 Posts: 11
|
Posted: Wed Mar 05, 2008 2:05 pm Post subject: |
|
|
Awesome!!!
|
|
| Back to top |
|
 |
|