From: Eric Hodel Date: 2006-11-15T17:45:12+09:00 Subject: hoe send_email task (Was: Re: directory_watcher 0.1.1) On Nov 14, 2006, at 2:02 PM, ara.t.howard@noaa.gov wrote: > On Wed, 15 Nov 2006, Eric Hodel wrote: >> On Nov 13, 2006, at 4:53 PM, ara.t.howard@noaa.gov wrote: >>> On Tue, 14 Nov 2006, Eric Hodel wrote: >>>> Or just use Hoe and run rake release. Drops an email.txt ready >>>> for pasting into your email client of choice. >>> okay - __that__ is cool! >>> can you specify stdout? >>> rake release |mail -s traits ruby-talk@ruby-lang.org >> >> No. Also, the first line of email.txt is the subject. >> >>> that would make those of us that are truely lazy release like >>> wildfire. >> >> A send_email task wouldn't work cross-platform. Not everybody's >> machines are correctly set up to send email. > > sure, but > > cmd = "rake release|mail -s #{ the_subject } ruby-talk@ruby- > lang.org" > > system cmd or warn "you system is wonky" Well, it might just send mail into the bit-bucket: $ mail drbrain@segment7.net Subject: test test EOT $ echo $? 0 $ mail Mail version 8.1 6/6/93. Type ? for help. "/var/mail/drbrain": 1 message 1 new >N 1 MAILER-DAEMON@pride- Wed Nov 15 00:43 69/2492 "Undelivered Mail Retu" & > might be ok ;-) If you can fix that, we await your patch at: http://rubyforge.org/tracker/?func=add&group_id=1513&atid=5923 ;) -- Eric Hodel - drbrain@segment7.net - http://blog.segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com