[RELEASE] XBMCMail (E-mail Script for XBMC)

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
matthuisman Offline
Skilled Python Coder
Posts: 599
Joined: Sep 2006
Reputation: 5
Location: Chch, New Zealand
Thumbs Up  [RELEASE] XBMCMail (E-mail Script for XBMC)
Post: #1
#######################################
# #
# XBMCMail (SSS V.0.91) #
# By Stanley87 #
# #
# sample script from: #
# xbmcmail v0.3.1 - By burriko #
# #
# A pop3 email client for xbmc #
# #
#######################################

New Features:

**Fully customisable settings via GUI
**Master Password on start-up option
**Email notification sounds
**Better parsing of HTML emails - more updates to come
**Fully updated VISUAL FX's! - more updates to come

Features to come:
**Delete emails option
**Better attachments handling
**More VISUAL FX's (icons, backgrounds)
**support for showing current playing media, album art etc.
**support for mp3 email notification sounds
**Much better support for other skins and resolutions (720p & 1080i etc)
**SEND EMAILS??


Hi all,
This is my 2nd update for this scritp but calling it the first proper version of (SSS Mod) and starting with version "V0.91"
From now on burriko's "version" of his original XBMCMail script will be excluded from the script name as so much has changed I am moving away from it.

I think xbmcscripts.com is having some uploading issues as I can not update yet, but keep checking back and hope it is up in the next few days.

Please let me know what you all think of the scipt.

Cheers,

Stanley87
find quote
trignum5 Offline
Junior Member
Posts: 17
Joined: Aug 2006
Reputation: 0
Post: #2
You want temporary hosting? Nothing special but I can put it on my webserver until you manage to get it properly hosted..
find quote
sollie Offline
Fan
Posts: 354
Joined: Nov 2005
Reputation: 6
Post: #3
I cant wait, but i have to Smile

[Image: sollie.gif]
find quote
blittan Offline
Team-XBMC Handyman
Posts: 1,747
Joined: Jun 2004
Reputation: 11
Location: Sweden
Post: #4
good that someone picked this up.. was thinking about it myself, but have my hands full with emuLauncher and xbmcscripts.com installer..

Some feedback and thoughts.

1st: in the readme.txt change http://xbmc.org/forums -> http://xbmc.org/forum (no S on the end..)

2nd: skip the just using 2 mail accounts, make it a for account in accounts do: thingie..

3rd: you might want to look into using my xbmcClass for translations. uses xml parser for the languages, falls back to english if no other language is there or is incompletely translated.

sidenote: got your mail about the uploadproblem, hope you got it solved.
find quote
matthuisman Offline
Skilled Python Coder
Posts: 599
Joined: Sep 2006
Reputation: 5
Location: Chch, New Zealand
Thumbs Up  Hi Blittan
Post: #5
1) I will do straight away

2) Didn’t really understand this? Your meaning to rename the Email buttons? I could have it so instead of Email 1 and Email 2 it grabs the username of the account it checks?? Or make this an option.??

3) I will try to implement this, I used Emulauncher script as a guide to the Settings menu and see that there is multi-language support and skin support in it also, so will get on to this.

Thanks for feedback.

MERRY XMAS!! (I'm in NZ so it's 8am XMAS morning and quickly posting before heading off to xmas functions.)

Stanley87
find quote
matthuisman Offline
Skilled Python Coder
Posts: 599
Joined: Sep 2006
Reputation: 5
Location: Chch, New Zealand
Post: #6
Also, if there are children downloading this, the default email notification sound it comes with is the "Mail Mother Fu**ker" (Euro Trip) so turn down the sound when mummy is in the room (or included in the readme is how to change the sound (very easy to do)):-D
find quote
blittan Offline
Team-XBMC Handyman
Posts: 1,747
Joined: Jun 2004
Reputation: 11
Location: Sweden
Post: #7
Let me explain number two Tongue

Do somekind of loop, to allow multiple accounts (more than two)

suggested settings.xml
Code:
<settings>
    <general>
        <masterpassenable>-</masterpassenable>
        <masterpass>-</masterpass>
    </general>
    <server id="1">
        <name>Name for server ONE</name>
        <isp>-</isp>
        <user>-</user>
        <pass>-</pass>
    </server>
    <server id="2">
        <name>Name for server TWO</name>
        <isp>-</isp>
        <user>-</user>
        <pass>-</pass>
    </server>
    <server id="3">
        <name>Name for server THREE</name>
        <isp>-</isp>
        <user>-</user>
        <pass>-</pass>
    </server>
</settings>

Then in the script call this and read out every single server.

After that do a loop that checks every server instead of as now having first a check ISP1 then a check ISP2..

This will not only compress code, but also be more flexible as it allows to control 3, 4 or more accounts Big Grin

This is just a basic quick draft when looking at your code of checking emails. Would sure need some more structure/thinking of layouts etc..

But this should get you started in that direction Nod

If anything is unclear, please ask and I'll try and collaborate my ideas..

---------

Also another suggestion is to use password inputs that masks the password as typed and also use some sort of encryption for the stored passwords (just to make it a little harder to get them) I mean, since the .py is not protected it wont be 100% secure, but those wannabe hackers might get confused Wink
find quote
matthuisman Offline
Skilled Python Coder
Posts: 599
Joined: Sep 2006
Reputation: 5
Location: Chch, New Zealand
Big Grin  Yup
Post: #8
Ok got ya, Yeh, so far I have just got the script "on paper" as such. It’s very messy and there is allot of cleaning up to do. I just wanted to get a first proper release out there to get a "BUZZ" going.

:-)

Encryption - very good idea, At the moment the password is not stored any where in the .py file. It’s purely in the XML settings file. But I could have it encrypt it when writing to the XML. But there is still always the ability to be able to open the .py and see the encryption method. But still - this would make it quite abit harder to "hack".


Also, maybe you can help with this, I want to be able to write into the script the ability to send SSL to pop email accounts as (GMAIL and some others require this) The SSL required for Gmail is 995. (In outlook express etc this can be enabled) I hope i can find a way to do this in this script to allow GMAIL users the pleasure of using this script.

Also, I had an idea that i will also introduce in the future. PRESET MAJOR Email providers "settings" EG: You go into settings and select "GMAIL ACCOUNT" and then it proceeds to ask for your Gmail username etc and automatically enables the SSL (995) that is required. Also with GMail, the username has to be entered not only as eg. Monkeyman2000 but must also contain "@ gmail.com" and the preset "template" will do this for you or something like that.

Thanks,
Watch this space.
Stanley87
find quote
blittan Offline
Team-XBMC Handyman
Posts: 1,747
Joined: Jun 2004
Reputation: 11
Location: Sweden
Post: #9
http://docs.python.org/lib/module-poplib.html

you might want to check that out for SSL ..

http://www.holovaty.com/blog/archive/2004/06/18/1751
https://sourceforge.net/projects/gotmail/


might be something for other webbased mails
find quote
matthuisman Offline
Skilled Python Coder
Posts: 599
Joined: Sep 2006
Reputation: 5
Location: Chch, New Zealand
Big Grin  I Got Ssl!!!
Post: #10
SSL is now all go and my "Gmail TEST" account is working all ok :-D. So, in the future release, SSL ENABLE will be an option in the settings as well as the desired SSL port (default = 995 (Gmail etc uses this)

Due to python, which is incorporated in XBMC, is an older version than the latest, a command line has been added to poplib module, which allows SSL with pop commands. So my script now contains a new folder "lib" which contains the latest poplib module which is now loaded via default.py rather than the old poplib contained in xbmc.

Can you see any problems with this method??

It works find at present.
find quote
blittan Offline
Team-XBMC Handyman
Posts: 1,747
Joined: Jun 2004
Reputation: 11
Location: Sweden
Post: #11
Suggestion: make ssl port a per account setting eg: have it saved with every account you add..

I cant see any reason its not going to work, maybe can occur a conflict, but not sure since I am not that experienced in python programming.
find quote
matthuisman Offline
Skilled Python Coder
Posts: 599
Joined: Sep 2006
Reputation: 5
Location: Chch, New Zealand
Thumbs Up   
Post: #12
blittan Wrote:Suggestion: make ssl port a per account setting eg: have it saved with every account you add..

I cant see any reason its not going to work, maybe can occur a conflict, but not sure since I am not that experienced in python programming.

DONE!!

This has to be the case as if SSL is enabled on a pop account that does not use it, it will not work.

At present, i am working on the delete email function and have it 90% working, when an email has been selected and "X" is pressed, you are given a yes/no dialog to delete the email.
find quote
sollie Offline
Fan
Posts: 354
Joined: Nov 2005
Reputation: 6
Post: #13
This is cool,

Ps: what about running in background with popup possibility Rofl
Learn from msnx (popup and background modus).

Sollie.

[Image: sollie.gif]
find quote
matthuisman Offline
Skilled Python Coder
Posts: 599
Joined: Sep 2006
Reputation: 5
Location: Chch, New Zealand
Smile  hi
Post: #14
Didnt know this was possible. I will get that script right away and get on to it!!

Cheers for the info

Stanley87
find quote
matthuisman Offline
Skilled Python Coder
Posts: 599
Joined: Sep 2006
Reputation: 5
Location: Chch, New Zealand
Post: #15
Cant find MSNX anywhere?

Where can i find this script?
find quote
Post Reply