Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Email Plugin - Full Event name won't recognize. please help

Questions and comments specific to a particular plugin should go here.
Post Reply
steven.smith
Posts: 5
Joined: Mon Feb 04, 2013 5:07 am

Email Plugin - Full Event name won't recognize. please help

Post by steven.smith »

So first off let me start off saying that EG is one of the best pc automation tools I have ever seen. I'm only now starting to understand all of the possibilities that can be done with EG and a good setup. My problem however comes with the Email plugin designed by Pako. It works perfectly in regards to checking the email and filtering out the results. The problem is that I cannot run a command when an email event arrives.
What I want to do is be able to receive an email from different people, then run a different command based on the user. I have everything down so far. I ended up simply typing "received" into event name (under "trigger total event") and selected the "subject" payload. So for example, if I received an email from [email protected], an Event in EG shows up saying "Email.Received "[email protected]". So I simply dragged that Event and put it with a command. This is where my problem occurs. EG won't activate any command based on the Event name "Email.Received '[email protected]'". After testing different things (such as using wildcards) I couldn't get it to work. The only thing that worked was "Email.Received". But this defeats the purpose of the entire setup because I want a different command run for each defined user.

So what do I do? i really want to get this to work and it is only the very last step that is stopping me from achieving this. I don't know much (or anything at all) about scripting in Python. This is not really so much a problem with the plugin as it is an issue recognizing the full name of the Event. So please, any help in solving this would be very much appreciated.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Email Plugin - Full Event name won't recognize. please h

Post by Pako »

There are many possible solutions.
Perhaps the simplest is this:
1. Create a filter that transmits all e-mails
E-mail_filter.png
E-mail_filter.png (9.71 KiB) Viewed 3049 times
2. Use Python script (Python command is enough), that from the event payload creates event suffix
E-mail_script.png
E-mail_script.png (4.8 KiB) Viewed 3049 times
Pako
steven.smith
Posts: 5
Joined: Mon Feb 04, 2013 5:07 am

Re: Email Plugin - Full Event name won't recognize. please h

Post by steven.smith »

Thanks Pako for your help. It now works like a charm. Thanks again for the help.
piert
Experienced User
Posts: 321
Joined: Tue Jun 14, 2011 2:53 pm

Re: Email Plugin - Full Event name won't recognize. please h

Post by piert »

When I look in the list of plugins for Eventghost, I do not see the 'Email Plugin'. Which one are we talking about here? Could you provide us with a link, please?

Thanks,
Perry
kalia
Experienced User
Posts: 109
Joined: Wed Aug 12, 2009 1:10 am

Re: Email Plugin - Full Event name won't recognize. please h

Post by kalia »

I believe they are talking about this:

viewtopic.php?f=9&t=1168&hilit=email

kalia
piert
Experienced User
Posts: 321
Joined: Tue Jun 14, 2011 2:53 pm

Re: Email Plugin - Full Event name won't recognize. please h

Post by piert »

Thank you, Kalia
steven.smith
Posts: 5
Joined: Mon Feb 04, 2013 5:07 am

Re: Email Plugin - Full Event name won't recognize. please h

Post by steven.smith »

Kalia is correct. The E-mail plugin made by Pako is found at viewtopic.php?f=9&t=1168 . You have to download it and put it into your plugins folder, then restart EG. Then you can see it in EG.
Post Reply