E-mail

Questions and comments specific to a particular plugin should go here.
Post Reply
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

E-mail

Post by Pako » Wed Dec 24, 2008 6:37 pm

I just release the beta version of the new plugin "E-mail".
Yes, from now on you can use even a e-mail to remote control your computer :) !
You always find the latest version here:
http://eventghost.svn.sourceforge.net/v ... _init__.py

The creation of the plugin realy gave me a lot of work.
Hours that I spent on it is not even count.
They were certainly more than 100, but this is the fact that a lot of things I don't know and takes me a long time before I can do is functioning.
Real programmer would have finished much earlier and probably would it also be much better.
Plugin is quite complex and even though I tried it carefully tested, certainly I failed to recognize many errors.
If you find any, report it to me please, in this topic.

I have many ideas, both could be improved plugin. Here are a few of them:
1.) Optional confirmation of an intent to delete a e-mail
2.) In the table of waiting messages indicate the size of the message
3.) In the table of waiting messages indicate the date and time of sending a message
4.) In the table of waiting messages give the possibility to sort messages by column
5.) To the windows with table of waiting messages and with content of messages add the button "Reply"
6.) Give the possibility to export message to file "email.eml"
7.) Give the possibility to use the path to the file "email.eml" as a payload of event
8.) Giving the possibility of automatically respond to certain messages
9.) Correct display messages that are in html format

Some of these options to improve I will certainly add to the plugin, some not.
That depends on what the response from users.
Certainly I would like to incorporate download messages by protocol TLS,
but meantime it is not functioning to me. However, the send messages is working well with this protocol.
I attach screenshots of all the windows and dialogues, which includes a plugin.
Pako
Attachments
PluginDialog.png
SMTPserversDialog.png
SMTPserversDialog.png (9.98 KiB) Viewed 17999 times
ObservationViewer.png
ObservationViewer.png (5.63 KiB) Viewed 17994 times

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: E-mail

Post by Pako » Wed Dec 24, 2008 6:40 pm

Screenshots - part 2.
Attachments
GroupsDialog.png
GroupsDialog.png (10.36 KiB) Viewed 17987 times
TemplatesDialog.png
TemplatesDialog.png (9.36 KiB) Viewed 17992 times
StartObservation.png
You know flattr ? You can Image

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: E-mail

Post by Pako » Wed Dec 24, 2008 6:42 pm

Screenshots - part 3.
Attachments
AbortObservation.png
AbortObservation.png (8.63 KiB) Viewed 17982 times
SendEmail.png
SendEmail.png (11.33 KiB) Viewed 17984 times
Notification window.png
Notification window.png (2.55 KiB) Viewed 17987 times
Last edited by Pako on Wed Dec 24, 2008 6:44 pm, edited 1 time in total.
You know flattr ? You can Image

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: E-mail

Post by Pako » Wed Dec 24, 2008 6:44 pm

Screenshots - part 4.
Attachments
TableWaitingMessages.png
MessageContent.png
MessageContent.png (8.36 KiB) Viewed 17986 times
You know flattr ? You can Image

User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: E-mail

Post by Livin » Sat Dec 27, 2008 4:58 am

sweet... I'll try this out tomorrow.

Please tell me you will be working on an IM version next? Pretty Please :D
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: E-mail

Post by krambriw » Wed Jan 21, 2009 8:40 pm

Dear Pako,
I have tested a bit the email plugin. Generally it works very good what I have been able to verify.

Additionally I would like to give some feedback to what I have noticed/experienced:

- it seems that multiple events are generated when a matching email is in the inbox (in my case I received one event per minute during 20 minutes (total 20 events for one email)

- I think this should be configurable (the minute setting is there but you should have a setting for "number of events per detected email")

- I think of a very useful application for this plug-in; as a monitoring tool that other stuff is running as expected.

Lets assume I have a very important plug-in running and I always want it to be alive. I could make this plug-in generate events at defined time-interval lets say every minute. But I don't want an email for each event, only if the events do not appear any anymore once they have started (like a watchdog). I think the payload could hold the interval so that the email plugin can know when the next event should be expected. If it doesnt come within the time interval x2 an email shall be sent...

Hope I was somehow clear,

Kind regards, Walter

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: E-mail

Post by Pako » Sat Jan 24, 2009 7:49 pm

Hello Walter !
Very Thank you for your time, devoted to testing a plugin and for your report on the outcome.
krambriw wrote:- it seems that multiple events are generated when a matching email is in the inbox (in my case I received one event per minute during 20 minutes (total 20 events for one email)
Yes, this was the bug, which I found not, although the plugin using daily for several weeks. It was, that I had active the notification window too. In this case, to avoid error. Download is corrected version.
krambriw wrote:- I think this should be configurable (the minute setting is there but you should have a setting for "number of events per detected email")
I think, that now (maybe meantime) I will not change it. Each newly discovered e-mail generates only one event (if not aborted run of observation).

Best regards, Pako

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: E-mail

Post by krambriw » Sun Jan 25, 2009 4:38 pm

Dear Pako,
Now it works OK as intended, very good.

Best Regards, Walter

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: E-mail

Post by Pako » Mon Feb 09, 2009 1:39 pm

First improvements is made: added replay feature.
Pako

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: E-mail

Post by krambriw » Wed Feb 11, 2009 5:43 pm

Hi Pako,
I cant find the replay feature....

BestR Walter

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: E-mail

Post by Pako » Wed Feb 11, 2009 7:19 pm

Hi Walter !
You must enable "Show notification window" ...

Pako
Attachments
Replay.png

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: E-mail

Post by krambriw » Wed Feb 11, 2009 7:59 pm

Hello Pako,
I got an error when I double clicked on the little email notification window that came up

See the picture...latest version of your plugin and eg, running on Vista, Windows Live Mail as std mail client

Best regards, Walter
email.jpg

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: E-mail

Post by Pako » Wed Feb 11, 2009 9:22 pm

Yes, I see it. But I not understand one thing. You write "Double-click", but it looks like the "CTRL + double-click" ???
However, it is a bug. I have a problem: I now has neither Vista nor Windows Live Mail. I will have to find another way to find a default e-mail client. I maybe I will need help from you. I got the first question: What do you see in the registers here: "HKEY_CLASSES_ROOT\mailto\shell\open\command" ?
Pako

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: E-mail

Post by krambriw » Thu Feb 12, 2009 6:59 am

In the registry it looks like this for "HKEY_CLASSES_ROOT\mailto\shell\open\command"

Code: Select all

"%ProgramFiles%\Windows Mail\WinMail.exe" /mailurl:"%1"

Sorry, should be Ctrl-double-click or double-click, then open email client from button in detail view is causing the error message...

I'm still puzzled to find the "replay" function...help? And what is it for?


Best regards, Walter

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: E-mail

Post by Pako » Thu Feb 12, 2009 8:31 am

krambriw wrote:Sorry, should be Ctrl-double-click or double-click, then open email client from button in detail view is causing the error message...
This is special. I do not know, whether is it Windows Vista feature or only strange behavior of your PC. We could try in your case instead of CTRL key to use the ALT key. Open in editor __init__.py file (in the directory E-mail). Find line number 996 and replace the code

Code: Select all

if evt.ControlDown(): #with CTRL
with this code

Code: Select all

if evt.AltDown(): #with ALT
Then, please try again (with restart of EventGhost). I hope, that now it will not try to run the client.
Pako

Post Reply