Hi friends!
I am curious as to how to bootstrap fuel around an email piping script, or any script for that matter. Essentially I'd like to store the raw emails to the database and then from there I can have my own cron to parse through them at a later time. This way I'd still have access to all of the nice classes and framework. I don't necessarily need a route or controller since I am routing it. I am thinking it has to be with an oil task but I am not sure.
Currently, I have an email@domain.com piping its content to pipe.php
What is the next step from here? Any help would be appreciated!
Here's the gist. The forums are messing up the formatting of my code: https://gist.github.com/1427555
I tried setting it up as a task but how would I pipe the email to that specific task? Am I missing something or setting it up wrong?
In my email settings I set it to pipe all emails to: /path/to/oil refine pipe_email_task
Harro Verton wrote on Sunday 4th of December 2011:
Hmm... Looks like the cli input feature of oil eats up all input.
I'll have to pass this on to Phil...
I was able to get it working. But yeah, I came to the same conclusion that CLI was eating up the input. Here is what I ended up doing.
https://gist.github.com/1430615