Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Wrapping FuelPHP around an email piping script
  • 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
  • You could create an oil task which works from the commandline. See http://docs.fuelphp.com/general/tasks.html for more info.
  • 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
  • Hmm... Looks like the cli input feature of oil eats up all input. I'll have to pass this on to Phil...
  • 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
  • That's what I tried here but I couldn't get that to work, stdin was empty...

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion