Zero external dependencies! ActionMailer actually comes with TMail, which is a cute little library for parsing email messages. It can do attachments, header fields, encodings, etc. I definitely want to make this the best superset I can of what people have hacked together, so thank you Reinier for the suggestions!
Oh, yeah, I do kind of need to document how to get mail into it. I wasn't sure where to put the documentation for it, so I punted. For those of you who want to try it out, all you need to do is get emails to forward into the command $TRACKS_HOME/script/runner -e production 'SMSGateway.receive(STDIN.read)' On Jun 19, 2008, at 8:23 PM, Luke Melia wrote: > From looks glancing through the commit, it looks pretty cool, Eric. > Keep us posted on how it's going. > > One thing I'm curious about is what obstacles there might be to > shipping it as a standard part of Tracks. What sort of external > dependencies (if any), would the features you're working on introduce? > > Cheers from NYC, > Luke > > On Jun 19, 2008, at 12:23 PM, Eric Allen wrote: > >> I've got a very powerful email->Tracks gateway in the works you can >> check out at my github. This doesn't answer the question of how to >> handle other scripts, but for emailing tasks in I'm trying to make >> this the best thing out there. I'd love feedback! >> >> On Jun 19, 2008, at 8:02 AM, James Kebinger wrote: >> >>> I think tracks can probably do without having CSRF protection >>> turned on. The worst someone can do is secretly add a todo telling >>> that you owe them some money! >>> That said, it seems that an instance where the user name and >>> password are provided with the request is one of the cases where >>> the CSRF protection shouldn't be invoked (i.e CSRF should only >>> happen when implicit session based auth is used) so there may be >>> something wonky in the plumbing in tracks >>> >>> On Wed, Jun 18, 2008 at 5:52 PM, Simon Rozet <[EMAIL PROTECTED]> >>> wrote: >>> On Wed, Jun 18, 2008 at 11:18 PM, <[EMAIL PROTECTED]> >>> wrote: >>> > [Forgot to send to the list] >>> > >>> > On 18 Jun 2008, at 14:58, James Carruth wrote: >>> > >>> >> I have a very simple email to next action script that creates >>> next >>> >> actions in Tracks using curl. It stopped working after I moved >>> to the >>> >> newest version from github (I had previously been using the svn >>> trunk >>> >> version). Tracks works fine from the web, but I get an error >>> when I >>> >> try to add new next actions following the instructions on the >>> >> Integrations page. >>> >> >>> >> Here is what I type at the command prompt (relevant details >>> have been >>> >> changed to protect the innocent) >>> >> >>> >> $curl -u username:password -d "todo[description]=Test out this >>> new >>> >> installation&todo[context_id]=8" http://example.com:8000/todos.xml >>> -i >>> > >>> > I tried your example (with details changed for my installation, >>> > obviously), and also got an error. Running under development, I >>> got a >>> > more detailed error message, which suggested problems with the >>> > AuthenticityToken: >>> > >>> > ActionController::InvalidAuthenticityToken >>> > >>> > in TodosController#create >>> > >>> > </h1> >>> > <pre>ActionController::InvalidAuthenticityToken</pre> >>> > >>> > ActionPack's request_forgery_protection.rb seemed to be involved. >>> >>> Actually, this is not a bug. It's due to Rails' CSRF protection. >>> (which is was AFAIK >>> introduced in Rails 2.0.1 or something) >>> >>> -- >>> Simon Rozet -- <[EMAIL PROTECTED]> >>> _______________________________________________ >>> Tracks-discuss mailing list >>> [email protected] >>> http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss >>> >>> _______________________________________________ >>> Tracks-discuss mailing list >>> [email protected] >>> http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss >> >> _______________________________________________ >> Tracks-discuss mailing list >> [email protected] >> http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss > > -- > Luke Melia > [EMAIL PROTECTED] > http://www.lukemelia.com/ > _______________________________________________ Tracks-discuss mailing list [email protected] http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss
