Page 1 of 1

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

Posted: Mon Feb 04, 2013 5:34 am
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.

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

Posted: Mon Feb 04, 2013 9:08 am
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 3054 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 3054 times
Pako

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

Posted: Mon Feb 04, 2013 11:18 am
by steven.smith
Thanks Pako for your help. It now works like a charm. Thanks again for the help.

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

Posted: Tue Feb 05, 2013 8:40 am
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

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

Posted: Wed Feb 06, 2013 6:10 am
by kalia
I believe they are talking about this:

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

kalia

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

Posted: Wed Feb 06, 2013 12:06 pm
by piert
Thank you, Kalia

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

Posted: Thu Feb 07, 2013 1:27 am
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.