[ANSWERED]: On "Email Received" trigger, getting to the Subj

This forum is for questions about triggers and the events that can cause them to fire.
Empyreal
Posts: 12
Joined: Sat Dec 08, 2012 12:10 pm

[ANSWERED]: On "Email Received" trigger, getting to the Subj

Post by Empyreal »

I've written a small perl script (Mail Indigo Log File, or "milf" :mrgreen: ) that I want to invoke with a python script using the "Email Received" trigger.

Milf takes a couple of command line switches for # of days of logfiles, which lines to suppress, etc.

I was wondering if, in the python script in the "Email Received" trigger, I could get access to the contents of the Subject line, or the whole RFC-822 body?

I would like to pass the command line switches to my Perl program, redirect the output to a temp file, then mail the contents of that temp file back to the my email address.

Thanks!

ps -- more than happy to post my script here once I get the whole thing working with Indigo.
User avatar
matt (support)
Site Admin
Posts: 21476
Joined: Mon Jan 27, 2003 1:17 pm
Location: Texas
Contact:

Re: On "Email Received" trigger, getting to the Subject

Post by matt (support) »

Unfortunately, no. We don't have the plumbing in place yet to communicate Trigger information down to the Actions being executed. We really need that though – it would be quite useful in lots of scenarios.
Image
Empyreal
Posts: 12
Joined: Sat Dec 08, 2012 12:10 pm

Re: [ANSWERED]: On "Email Received" trigger, getting to the

Post by Empyreal »

Ah, it would kind of be nice to have params in the email. For now, then, I may switch gears and go with a Mail inbound rule, right from Mail.app.

Thanks for the quick reply. If you don't get tired of hearing it, I won't get tired of saying how phenomenal and knowledgable you guys are and how much it helps using a fairly complex program. Replying to a question from a user on a Friday night, when you live in a happening town like Austin? Now that's dedication!
Post Reply

Return to “Triggers and Triggering Events”