|
SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
STV Import: Simple Email Checker for POP3, IMAP and WEBMAIL (v 0.2, 27/May/2006)
I've created a simple email checker in Java which can read the email headers from email accounts and displays the header info in a list on screen.
The internal screen called MailCheck can be linked into a menu easily by using for instance Nielm's Dynamic Menu import. Selecting the Refresh button on the screen will poll the email accounts for messages and update the display. You configure the email accounts in a file named mailaccounts.xml located in the root folder of the SageTV installation. For each message the following is shown: <displayname> <from-address> <subject> <sent-date>. secure connections From version 0.2 onwards secure connections are supported for both POP3 and IMAP accounts. You have to run Java 1.5 or higher for this to work. For secure POP3 you have to specify the protocol element with value pop3s in the mailaccounts.xml. Inside yor Mailaccount element create a protocol element like this: Code:
<object class="nl.cmkprojects.sage.mail.MailAccount"> <void property="displayName"> <string>2nd pop account</string> </void> <void property="host"> <string>pop.zonnet.nl</string> </void> <void property="protocol"> <string>pop3s</string> </void> <void property="password"> <string>secret</string> </void> <void property="username"> <string>janedoe</string> </void> </object> The first time you use a secure connection you may be prompted to accept a server certificate that was not trusted, because a lot of mail servers use a self signed security certificate that can not be validated down to a trusted Certificate Authority. If you accept the shown certificate, then it will be added to a local certificates storage and the next time you refresh the message header fetching will succeed. webmail For checking webmail accounts like hotmail, gmail,.. you have to install a webmail POP3 converter program like MrPostman. This great free program can be downloaded from here http://mrpostman.sourceforge.net/ Using MrPostman extends the usability of MailCheck to include webmail from Hotmail , mail.com, Yahoo, gmail (Google mail), indiatimes.com, juno, rediffmail, Gossamer mail, Outlook Web Access (Exchange 5.5) , Outlook Web Access 2003, Caramail, Lycos.fr, SquirrelMail and others. After installing MrPostman, you create a pop3 account with host set to localhost (if you run MrPostman on same machine as SageTV), port to 11110. That's the default port MrPostman is listening on. For username you specify your email address, e.g. johndoe@hotmail.com. Once in a while you might have run the update function in MrPostman to get script update (typically when they update the website hosting your webmail). Code:
<object class="nl.cmkprojects.sage.mail.MailAccount"> <void property="displayName"> <string>My hotmail</string> </void> <void property="host"> <string>localhost</string> </void> <void property="protocol"> <string>pop3</string> </void> <void property="portl"> <string>1110</string> </void> <void property="host"> <string>localhost</string> </void> <void property="password"> <string>secret</string> </void> <void property="username"> <string>johndoe@hotmail.com</string> </void> </object> The STVI and supporting files can be downloaded from here (also some screenshorts): http://forums.sagetv.com/forums/down...?do=file&id=83 Installation
History v 0.1 - 05-19-2006
note !!!: If you downloaded the zip file between 27-05-2006 and before 07-06-2006, you might have downloaded v0.1 because I made a mistake with uploading. have fun !! Last edited by koelec; 06-07-2006 at 12:25 PM. Reason: clarifications |
#2
|
|||
|
|||
Awesome!!
I was just thinking about it would be great to have this feature in sage!
Any chance of being able to read the emails in sage? My wish list fantasy would be able to record an audio/video reply or have voice recognition replies. When I was thinking about this, I was wondering if we could somehow skim the info out of another program such as outlook or mozilla thunderbird... Only problem I have is while I can think of features, I have no coding skills... Thanks again for this feature!! |
#3
|
|||
|
|||
Quote:
but other MIME types would require special rendering that goes beyond the capabilities of builtin SageTV STV widgets I guess. Anyway I will experiment with adding reading the email to this plugin, and see if it is usable. Quote:
|
#4
|
||||
|
||||
help
I have it all installed, used Nielm's Dynamic Menu to link it up. I can see the screen "Email Check" but nothing shows up..
I think that i am setting up my mailaccounts.xml settings wrong. I should just have to set the 4 bold underlined area's? <?xml version="1.0" encoding="UTF-8" ?> - <java version="1.4.2_04" class="java.beans.XMLDecoder"> - <object class="nl.cmkprojects.sage.mail.MailAccount"> - <void property="displayName"> - <!-- text you want to be shown as first line in each message header --> <string>My pop account</string> </void> - <!-- pop3 host, e.g. pop.zonnet.nl --> - <void property="host"> <string>pop.zonnet.nl</string> </void> - <void property="password"> <string>secret</string> </void> - <void property="username"> <string>johndoe</string> </void> </object> My email pop is pop.cogeco.ca could you help me out as to what/where to fill in. Thanx Last edited by BruenerXII; 05-22-2006 at 01:55 AM. |
#5
|
|||
|
|||
Yes, the four bold items that's what you need to specify.
Only the host, username and password fields are relevant for connecting to the mailserver. In your case use pop.cogeco.ca for the host address. Be sure you leave the xml format in tact. You can check this by loading the mailaccounts.xml file into the Internet Explorer. It will give an error if not formatted correctly. Also check the mailcheck.log file located in the same folder the mailaccount.xml file resides. There may be an exception being logged revealing the cause you don't see any messages. Finally, it may seem trivial, but be sure you actually have messages on the mail account that were not fetched already by f.i. Outlook express. |
#6
|
||||
|
||||
GOT IT!
Thanx koelec I got it working now
I must have screwed up the xml format like u said. I just copied over a fresh mailaccounts.xml out of the zip file, started over again and now it works great. BTW KICK ASS JOB!! This is exactly what i have been looking for. Something to check and see wether or not i have any email before i go and pull out the keyboard and mouse to look! |
#7
|
||||
|
||||
Great work!
Can you confirm if this will do multiple email accounts .. or does this do that already if I ad to it? Is that what the "My email" field is for...to differenciate between email accounts? EDIT: Just tried adding another account to the XML and when I open in IE..says format is incorrect. Guess I will wait for your response :-)
__________________
Server: Dual Tuner: PVR-150MCE/PVR-250MCE/SageTV v5.02/Asus Pundit-R 2.4GHZ/512MB DDR RAM/250 GB Maxtor HD (8MB Buffer) External Seagate 400GB HD via USB 2.0/Onboard ATI 9100 using SVIDEO TV-Out/Nvidia DVD decoder/Actisys 200L IR Blaster (Dish receiver) USBUIRT (DirectTV receiver)/Lite-On 4X DVD-R/RW/Windows XP Pro SP2/Adesso Mini IR Keyboard w/integrated mouse/Tivo "Peanut" Remote via USBUIRT/Dish Network Model 301/DirectTV subscriber/Webserver Plugin v2.8 Last edited by cmaffia; 05-22-2006 at 10:56 AM. |
#8
|
|||
|
|||
koelec,
will this work with secure connections (Gmail ?) Thanks, Dirk |
#9
|
|||
|
|||
Quote:
and insert it just before the </java> end tag and specify different values for displayname, host, password and username. Quote:
|
#10
|
|||
|
|||
Quote:
Dirk |
#11
|
||||
|
||||
This doesn't seem to work with my POP3 account with my ISP which requires me to authenticate to the mail server (it is an option in my Outlook setup) :-(
__________________
Server: Dual Tuner: PVR-150MCE/PVR-250MCE/SageTV v5.02/Asus Pundit-R 2.4GHZ/512MB DDR RAM/250 GB Maxtor HD (8MB Buffer) External Seagate 400GB HD via USB 2.0/Onboard ATI 9100 using SVIDEO TV-Out/Nvidia DVD decoder/Actisys 200L IR Blaster (Dish receiver) USBUIRT (DirectTV receiver)/Lite-On 4X DVD-R/RW/Windows XP Pro SP2/Adesso Mini IR Keyboard w/integrated mouse/Tivo "Peanut" Remote via USBUIRT/Dish Network Model 301/DirectTV subscriber/Webserver Plugin v2.8 |
#12
|
|||
|
|||
(
Quote:
|
#13
|
||||
|
||||
Any update as to when the new version will be released?
Quote:
__________________
Server: Dual Tuner: PVR-150MCE/PVR-250MCE/SageTV v5.02/Asus Pundit-R 2.4GHZ/512MB DDR RAM/250 GB Maxtor HD (8MB Buffer) External Seagate 400GB HD via USB 2.0/Onboard ATI 9100 using SVIDEO TV-Out/Nvidia DVD decoder/Actisys 200L IR Blaster (Dish receiver) USBUIRT (DirectTV receiver)/Lite-On 4X DVD-R/RW/Windows XP Pro SP2/Adesso Mini IR Keyboard w/integrated mouse/Tivo "Peanut" Remote via USBUIRT/Dish Network Model 301/DirectTV subscriber/Webserver Plugin v2.8 |
#14
|
|||
|
|||
Quote:
I just downloaded it, two questions ...
Once I find out about the protocol element, I'll give it a try ... Dirk |
#15
|
|||
|
|||
Quote:
It was released on may 27th, see head of this thread. |
#16
|
||||
|
||||
Any chance we could see a couple of screenshots?
Tbanks!
__________________
Upgraded to Comcast X1 + Netflix/Amazon Video streaming ***RIP SageTV*** |
#17
|
|||
|
|||
Quote:
Quote:
|
#18
|
|||
|
|||
Quote:
I'm rather busy at the moment, but somewhere this week there must be time for this. |
#19
|
||||
|
||||
Are there any screen shots somebody could post please??
__________________
Upgraded to Comcast X1 + Netflix/Amazon Video streaming ***RIP SageTV*** |
#20
|
|||
|
|||
Quote:
It seems the download does not contain the latest file, I get Code:
Wed 6/7 11:47:46.258 setUI(sage.bz@1dce7a9[MailCheck]) histIdx=2 uiHistory=[sage.bz@162f2fe[Main Menu], sage.bz@1f1a90a[Dynamic Menu by nielm], sage.bz@1dce7a9[MailCheck]] java.lang.NoSuchMethodException: <unbound>=MailAccount.setProtocol("pop3s"); Wed 6/7 11:47:46.422 Continuing ... java.lang.NoSuchMethodException: <unbound>=MailAccount.setPort("995"); Wed 6/7 11:47:46.422 Continuing ... Dirk |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|