Page 1 of 1

Email notifier

Posted: Wed Jun 01, 2011 2:28 pm
by jw1001
This is a Windows application that will send email messages to a Samsung TV's Message function. It was developed for a B650 TV, but should also work on other high-end B-series, including B750 and B7000 series. It may also work on C-series with "AllShare".

The Message function was designed for use with a few Samsung cell-phones. The message format and protocols were revealed by this project (member doodlecz in particular, http://forum.samygo.tv/viewtopic.php?f= ... t=40#p5245), and I thought it would be good to have it do something more useful. Since then, a few other applications have appeared, and maybe more are in development.

My idea was to use the service to view incoming e-mail. I am not much of a programmer, but I was inspired by member moras86's Remote Control application to learn how to use the Windows "AutoIt" scripting language, and chose this application as a learning project. It's been developed to the point where it's working reasonably well on my own mailboxes, but it needs wider testing, so I've uploaded it in the hope that others will try it out and provide some feedback.

The download "readme" file describes what the app does and how to set it up. In summary, the app is designed to run on a (networked) Windows system, periodically checking a POP3 mail-box for new messages and sending plain-text details to a Samsung TV with Message function enabled. The TV will then notify the viewer a new "SMS" message has arrived and prompt for its display.

Run the app once to set up the basic parameters. It's advisable to use a PC with a working mail client, to ensure there's no networking issue, but the latest version has a test mode that will carry out a communications check for the POP server. The TV Message function can also be checked using this mode.

Issues that may be seen will include the "Unique ID" (UID) and the formatting of messages (causing problems in sending). The debug file, if enabled, should provide some help for feedback. UID is used to track messages and the format varies from server to server, so the regular string expression used to parse the sequence number might need to change - post back the UID lines from the debug file if you're not sure how to do this. Alternatively, you can set the parameter "Non-sequential UID" to "1" - this doesn't look for the sequence number, but instead stores the full UID in a separate file for tracking, but it hasn't been as well tested and may not be as reliable.

Other issues may relate to the formatting of messages. Emails have many different headers and an almost infinite variety of combinations, but I have managed to get a reasonable representation of plain-text (including multipart and conversion of quoted-printable characters). I have also put in some filters for garbage in Subject and Address headers (sourceforge.com is the worst for these, though other subscription or unsolicited sources do it as well). Please let me have details of any problems.

Edit: for latest download links, see post http://forum.samygo.tv/viewtopic.php?f= ... 322#p29544

Re: Email notifier

Posted: Tue Jun 07, 2011 6:16 pm
by jw1001
Here are some TV screen pictures, using the built-in test mode.
Notification.jpg
Message 1.jpg
Start 2.jpg
Finish 2.jpg

Re: Email notifier

Posted: Thu Jul 14, 2011 2:48 pm
by moras86
Hi jw1001

Really like you app. Try it for my Gmail account and work good.
You should work on GUI for easy set all options from one place.


PS: Can you upload source code. ;)

Re: Email notifier

Posted: Fri Jul 15, 2011 5:41 pm
by jw1001
Source is not really a problem, just that it needed a lot of tidying to make it presentable. It was the first AutoIt3 script I started writing and some early parts look a bit strange now :oops:

I recently upgraded the SCITE editor and found lots of new tools I could have used in development, including the forms editor, so I may add the GUI once I learn how to use that. For now, I have just cleaned up the last version to make it a bit more readable.

There's a few new bits I don't think are documented. I added a BlackList section to the config.ini file, but I haven't really tested it. It should work on partial matches of sender names. It wouldn't be hard to add a word filter for subject line or message body.

Edit: latest download link below File name: SamyGo email notifier source v0.7c.zip File size: 21.74 KB

Re: Email notifier

Posted: Fri Apr 06, 2012 10:00 am
by Lorand
Could you please reupload this app? Thank you.

Re: Email notifier

Posted: Fri Apr 06, 2012 11:42 am
by jw1001
Still seems available from original links, though there's now some more hoops to jump through for free use e.g. 10 minutes between downloads. What problem are you having?

Re: Email notifier

Posted: Fri Apr 06, 2012 11:51 am
by Lorand
The problem is this: "FileServe can only be used to download and retrieve files that you have uploaded personally." :)
That's why I ask you to upload the app to a "real" filesharing server.

Re: Email notifier

Posted: Fri Apr 06, 2012 12:38 pm
by jw1001
I didn't realise it had changed. The files have been downloaded around 250 times by other users but no-one mentioned it before now.

I only used that site because this forum wouldn't accept the files last year, but it seems to have done it now.

Edit: NB does NOT work with Gmail or other SSL-authenticated servers.

Re: Email notifier

Posted: Fri Apr 06, 2012 9:20 pm
by Lorand
Thanks for the files.
Unfortunately I can't use it with my gmail account because the SSL authentification... :(

Re: Email notifier

Posted: Sat Apr 07, 2012 10:25 am
by jw1001
moras86 wrote:Hi jw1001
Really like you app. Try it for my Gmail account and work good.
You should work on GUI for easy set all options from one place.

PS: Can you upload source code. ;)
I'm afraid moras86's post above was untrue. The program will NOT work with Gmail as I couldn't find an Autoit library script for SSL. I think the difficulty is maybe handling the certificates.

I did add the GUI, but haven't compiled the later version. I'll post it if anyone asks.