E-mail

Questions and comments specific to a particular plugin should go here.

Re: E-mail

Postby Pako » Thu Feb 12, 2009 8:59 am

I have yet to find out why not run the client for you.
Please change the code from line 337 as follows:
Code: Select all
def RunEmailClient():
    def GetDefaultEmailClient():
        """Get the path of default email client through querying the
            Windows registry. """
        try:
            em_reg = _winreg.OpenKey(
                _winreg.HKEY_CLASSES_ROOT,
                "\\mailto\\shell\\open\\commandX"
            )
            EmPath =_winreg.QueryValue(em_reg, None)
            _winreg.CloseKey(em_reg)
            EmPath=EmPath.split('"')[1]
        except:
            raise
            EmPath = None
        return EmPath
Then try to run the client using the ALT + Double-click.
Red error message, please give here.
Pako
User avatar
Pako
Plugin Developer
 
Posts: 1283
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic

Re: E-mail

Postby krambriw » Thu Feb 12, 2009 1:59 pm

Here is the log from the test,
Best regards, Walter

14:54:03 ---> Welcome to EventGhost <---
14:54:03 Autostart
14:54:03 Plugin: E-mail
14:54:03 Plugin: TellStick
14:54:07 E-mail: test
14:54:07 Observation "test" starts
14:57:21 Traceback (most recent call last):
14:57:21 File "C:\Program Files\EventGhost\plugins\E-mail\__init__.py", line 974, in OnDoubleClick
14:57:21 RunEmailClient()
14:57:21 File "C:\Program Files\EventGhost\plugins\E-mail\__init__.py", line 345, in RunEmailClient
14:57:21 head, tail = os.path.split(GetDefaultEmailClient())
14:57:21 File "C:\Program Files\EventGhost\plugins\E-mail\__init__.py", line 336, in GetDefaultEmailClient
14:57:21 "\\mailto\\shell\\open\\commandX"
14:57:21 WindowsError: [Error 2] Det går inte att hitta filen

The last line in Swedish says "Cant find the file"
krambriw
Plugin Developer
 
Posts: 1163
Joined: Sat Jun 30, 2007 2:51 pm

Re: E-mail

Postby krambriw » Thu Feb 12, 2009 2:25 pm

Also, how to get the notification window back on screen once you have hidden it???

If I right-click on it, it disappears. But how can I restore it?

BestR Walter
krambriw
Plugin Developer
 
Posts: 1163
Joined: Sat Jun 30, 2007 2:51 pm

Re: E-mail

Postby Pako » Thu Feb 12, 2009 6:03 pm

So, you know how it works Replay? :)

Ways to return the notification window on the screen are two:
1) Restart observation
2) Wait, until the pending new e-mail

I apologize, but "commandX" is my typo. It is there to be only "command". Please try yet again!

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

Re: E-mail

Postby krambriw » Thu Feb 12, 2009 7:17 pm

Dear Pako, now I get another error message [Error 13] Felaktig data which means "Wrong data". Could it be that the string "%ProgramFiles%\Windows Mail\WinMail.exe" /mailurl:"%1"
has too many invalid chars???

No, I have not understood the replay yet, sorry....

Also, I think it should be possible to toggle the view of the notification window...

BestR Walter

Code: Select all
20:11:26   ---> Welcome to EventGhost <---
20:11:26   Autostart
20:11:26   Plugin: E-mail
20:11:26   Plugin: TellStick
20:11:53   Start observation
20:11:53   E-mail: test
20:11:53   Observation "test" starts
20:12:05   Traceback (most recent call last):
20:12:05     File "C:\Program Files\EventGhost\plugins\E-mail\__init__.py", line 974, in OnDoubleClick
20:12:05       RunEmailClient()
20:12:05     File "C:\Program Files\EventGhost\plugins\E-mail\__init__.py", line 345, in RunEmailClient
20:12:05       head, tail = os.path.split(GetDefaultEmailClient())
20:12:05     File "C:\Program Files\EventGhost\plugins\E-mail\__init__.py", line 338, in GetDefaultEmailClient
20:12:05       EmPath =_winreg.QueryValue(em_reg, None)
20:12:05   WindowsError: [Error 13] Felaktig data
krambriw
Plugin Developer
 
Posts: 1163
Joined: Sat Jun 30, 2007 2:51 pm

Re: E-mail

Postby Pako » Thu Feb 12, 2009 9:34 pm

krambriw wrote:Dear Pako, now I get another error message [Error 13] Felaktig data which means "Wrong data". Could it be that the string "%ProgramFiles%\Windows Mail\WinMail.exe" /mailurl:"%1"
has too many invalid chars???
So I do not know. I am afraid that this way I probably fail to find. I have to borrow a computer with Windows Vista.
But something we still can try - use _winreg.EnumValue place _winreg.QueryValue. Try using this code:
Code: Select all
def RunEmailClient():
    def GetDefaultEmailClient():
        """Get the path of default email client through querying the
            Windows registry. """
        try:
            em_reg = _winreg.OpenKey(
                _winreg.HKEY_CLASSES_ROOT,
                "\\mailto\\shell\\open\\command"
            )
            EmPath = _winreg.EnumValue(em_reg,0)[1]
            _winreg.CloseKey(em_reg)
            EmPath=EmPath.split('"')[1]
        except:
            raise
            EmPath = None
        return EmPath
krambriw wrote:No, I have not understood the replay yet, sorry....
I don't comprehen that. Have you downloaded the latest version of plugin? Do you see there button "Replay"? You try to press him?
krambriw wrote:Also, I think it should be possible to toggle the view of the notification window...
Well, we think about that. How do I open the window but that has no control element? What if I need five such windows. How do I identify which is to be open? I think the behavior is logical. This is the notification window. It appears alone, when a new message is waiting. When I accidentally close this window, just repeat the action that starts observation.
Pako
User avatar
Pako
Plugin Developer
 
Posts: 1283
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic

Re: E-mail

Postby krambriw » Fri Feb 13, 2009 12:15 pm

Dear Pako,

Good news, it works fine now!!! My mail client opens up when I do Ctrl-double click

I do not think this has to do with Vista. I'm using Windows Live Mail which is a newer MS product than Outlook. You can download it and run it in XP too.

I have the latest version from you but I cannot find the "Replay" button, I feel stupid, sorry...

Give me a hint where to find it


Best regards, Walter
krambriw
Plugin Developer
 
Posts: 1163
Joined: Sat Jun 30, 2007 2:51 pm

Re: E-mail

Postby Pako » Fri Feb 13, 2009 1:08 pm

Hi Walter !
I am really pleased! I can upload a modified version to the SVN repositary, but I need something to confirm:
If you use only "Double-click" (without CTRL or ALT) still opens e-mail client, or is it now okay? Practically you now do not use "ALT+Double-click", but "CTRL+Double-click"? If so, is not at all clear to me, but mainly that it works!

Best regards,
Pako
User avatar
Pako
Plugin Developer
 
Posts: 1283
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic

Re: E-mail

Postby krambriw » Fri Feb 13, 2009 4:23 pm

Dear Pako,

Yes, I use since yesterday only "CTRL+Double-click". Using "Alt" was just a quick test yesterday? I changed then back to "Ctrl"

Double click works fine (gives the details view). Here I can again open my mail client correctly, works fine

Right click hides the window as expected

BestR Walter

Also found the "Replay" button now...I know why I did not understand in first play. It should be "Reply" and not "Replay"....
krambriw
Plugin Developer
 
Posts: 1163
Joined: Sat Jun 30, 2007 2:51 pm

Re: E-mail

Postby Pako » Fri Feb 13, 2009 5:24 pm

Hi Walter !
krambriw wrote:Using "Alt" was just a quick test yesterday?
Yes, it was only a test, correctly is just CTRL.
krambriw wrote:Also found the "Replay" button now...I know why I did not understand in first play. It should be "Reply" and not "Replay"....
Yes it is. I also found and I have prepared a corrected version. I waited only for the confirmation. Now it is available. You can download and test.

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

Re: E-mail

Postby krambriw » Sat Feb 14, 2009 6:32 am

Hi Pako,
It works fine now, thanks!
Best regards, Walter
krambriw
Plugin Developer
 
Posts: 1163
Joined: Sat Jun 30, 2007 2:51 pm

Re: E-mail

Postby Pako » Sat Feb 14, 2009 7:19 am

Hi Walter,
I thank you for testing under Windows Vista !

Best regards,
Pako
User avatar
Pako
Plugin Developer
 
Posts: 1283
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic

Re: E-mail

Postby Pako » Thu Feb 19, 2009 8:36 pm

Again some improvements are released:
+after a successful send e-mail is now triggered an event like confirmation
+dialog "Send e-mail" is now resizable

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

Re: E-mail

Postby ELV-developer » Wed Jan 06, 2010 1:51 pm

Hi!

I like your plugin very much - good work.
Why isn't this plugin a part of Eventghost?

Greetings.
ELV-developer
 
Posts: 7
Joined: Thu Jul 02, 2009 9:00 am
Location: Leer - Germany

Re: E-mail

Postby Pako » Wed Jan 06, 2010 5:24 pm

ELV-developer wrote:I like your plugin very much - good work.
Why isn't this plugin a part of Eventghost?
Thank you for your compliment, I'm glad of it.
Your question best fits this quote:
Bitmonster wrote: 1. I will implement a kind of "EventGhost Plugin Installer Format", that will help users to install plugins that are not part of the basic installer. It will basically be a ZIP file with a special file extension, so EventGhost can handle the installation if the user opens it through EventGhost and everything can stay bundled in a single file (including DLLs and other stuff).
2. Plugin developers can then upload their plugins to the wiki. This way plugin developers won't need any special privileges to publish/update their plugins and have a basic version control system. The wiki will be extended to extract some informations from the uploaded plugins to generate an index of all plugins available. So users can search for plugins that might be interesting for them.
3. EventGhost possibly then also gets a function to find missing plugins if a configuration XML is opened and download them automatically to complete the setup (for example after a complete new install).
4. Once this is implemented, I will move many plugins out of the basic installer. Including many plugins that are written by me.
For more information, check out this topic.
Pako
User avatar
Pako
Plugin Developer
 
Posts: 1283
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic

PreviousNext

Return to Plugin Support

Who is online

Users browsing this forum: blaher and 2 guests