[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

protocol.rb (1.6) doesn't like VERP style addressing

culley harrelson

12/2/2003 4:55:00 PM

I am using NET::SMPT to send messages with VERP style addressing:

my-newsletter+me=example.com@example.com

And I get:

/usr/local/lib/ruby/1.6/net/protocol.rb:221:in `error!': 501 "501 Bad
address syntax" (Net::ProtoSyntaxError)
from /usr/local/lib/ruby/1.6/net/protocol.rb:385:in `reply_must'
from /usr/local/lib/ruby/1.6/net/protocol.rb:376:in `check_reply'
from /usr/local/lib/ruby/1.6/net/protocol.rb:390:in `getok'
from /usr/local/lib/ruby/1.6/net/smtp.rb:357:in `mailfrom'
from /usr/local/lib/ruby/1.6/net/smtp.rb:357:in `atomic'
from /usr/local/lib/ruby/1.6/net/smtp.rb:357:in `mailfrom'
from /usr/local/lib/ruby/1.6/net/smtp.rb:298:in `do_ready'
from /usr/local/lib/ruby/1.6/net/smtp.rb:281:in `send_mail'

I have ruby 1.8 on my development machine (os x) and it seems to be
fixed in 1.8. My production machine is FreeBSD and upgrading ruby to
1.8 on freeBSD was a convolluted process last time I tried (anyone have
suggestions for this?). Is it possible to just Upgrade protocol.rb?

culley




2 Answers

Minero Aoki

12/2/2003 5:26:00 PM

0

culley harrelson

12/3/2003 12:45:00 AM

0

> Impossible.
> Please edit your protocol.rb directly.
>
> Regards,
> Minero Aoki

Hi Minero,

I upgraded my FreeBSD machine to 1.8 and now I am getting this:

/usr/local/lib/ruby/1.8/net/smtp.rb:619:in `check_response': 501 Bad
address syntax (Net::SMTPSyntaxError)


Locally I have: smtp.rb,v 1.64
and in production I have: smtp.rb,v 1.69

So it looks like that was a change between 1.64 and 1.69 that flags VERP
addressing as invalid.

culley