Actually, perhaps it was a quirk of how my /etc/aliases works. In any event, I created the script /root/usr/local/scripts/tracksms
#!/usr/bin/env bash /usr/local/ruby/bin/ruby /var/www/tracks/script/runner -e production 'MessageGateway.receive(STDIN.read)' chmod +x /root/usr/local/scripts/tracksms And then created the alias tracks: "|/root/usr/local/scripts/tracksms" I sent the email from my gmail with the subject: Testing @ Home >project testing and body: Testing @ Home >project testing Test test test It created a todo with a description Testing, context Home, and project None (oops) and body ibid. At least it's working. Something about having a space in the alias did go well. -Benjamin On Mon, May 4, 2009 at 8:37 AM, Benjamin Fleischer <[email protected]>wrote: > I'm not sure that I understand your question. > > I tried sending an email which failed (below) and, later, also a text which > failed which an (obviously) truncated error in the sms text. > > I'm hosting on WestHost and a forum there says > "At WestHost sendmail is the MTA (Mail Transfer Agent) and procmail is the > LDA (Local Delivery Agent)." > > FWIW, I edited my /etc/aliases file manually because their online site > manager wouldn't let me create a command alias with parentheses in it. > > -Benjamin > > > On Thu, Apr 30, 2009 at 5:16 PM, Eric Allen <[email protected]> wrote: > >> What mail delivery agent are you using for the alias? >> On Apr 30, 2009, at 12:48 PM, Benjamin Fleischer wrote: >> >> testing sms from my regular email. I am writing from my gmail address and >> set it up in preferences with my gmail address as my from sms address. I set >> the default context at home. >> >> I set up the alias >> tracks: "|/usr/local/ruby/bin/ruby /var/www/tracks/script/runner -e >> production 'MessageGateway.receive(STDIN.read)'" >> >> I sent the email >> Subject: >> Testing @ Home >project testing >> Message: >> testing this note >> >> And got back this error message. Any ideas? >> The original message was received at Thu, 30 Apr 2009 10:35:09 -0600 >> from mail-gx0-f205.google.com [209.85.217.205] >> >> ----- The following addresses had permanent fatal errors ----- >> "|/usr/local/ruby/bin/ruby" >> (reason: 1) >> (expanded from: <[email protected]> ) >> >> ----- Transcript of session follows ----- >> -:1: warning: parenthesize argument(s) for future version >> -:1: warning: parenthesize argument(s) for future version >> -:1: warning: parenthesize argument(s) for future version >> -:1: warning: parenthesize argument(s) for future version >> -:1: syntax error, unexpected tINTEGER, expecting $end >> >From [email protected] Thu Apr 30 10:35:10 2009 >> ^ >> 554 5.3.0 unknown mailer error 1 >> >> Final-Recipient: RFC822; [email protected] >> X-Actual-Recipient: X-Unix; |/usr/local/ruby/bin/ruby >> Action: failed >> Status: 5.0.0 >> Diagnostic-Code: X-Unix; 1 >> Last-Attempt-Date: Thu, 30 Apr 2009 10:35:10 -0600 >> >> >> >> _______________________________________________ >> 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
