smtp.rb,v 1.69 doesn't accept VERP style addressing



  • 1. RMagick and SVG
    Hello, I try to edit a .svg file with RMagick, but the result of just importing the file and then saving it as a .jpg is a black&white image (the shapes are still there but the colors are not). Here is the code require 'RMagick' include Magick canvas ='d:\test.svg').first canvas.write('d:\test.jpg') Any pointers will be greatly appreciated. If you know any other way (another image library maybe) I can edit a svg file from ruby please let me know. Thanks, Mihai
  • 2. find all possible container nodes of a given text
    hi, I've been using ruby for a few weeks and been messing with DOM-like programming using hpricot. I'm looking for an efficient (rubyiish) way to find the set of Node Elements that have a text_element child containing a given string for instance given the html code <html><body><table><tr><td>harr is a dog</td><td>fuu is a cat</td><td>jii is a dog</td></tr></table></body></html> I would like to set this query getNodesContaining("dog") that would return an Array with the xpath of the first and third td (since they contain the text dog) thanks in advance Sylvain Rien ne peut jamais marcher si l'on songe ?tout ce qu'il faut pour que marche. -- Daniel Pennac
  • 3. EXCEL Ruby not working
    I get a file name in the directory and modify the cells with making bold etc. when excel.visible=TRUE it works. However, when excel.visible=FALSE nothing happens. Why? newdir=Dir.getwd x=1 excel = WIN32OLE::new("excel.application") excel.visible=FALSE Dir["*.xls"].each { |file| book = excel.Workbooks.Open("#{newdir}\\#{file}") sheetname=File.basename("#{file.upcase}",".XLS") excel.Worksheets("#{sheetname}").Name="Sheet1" excel.Worksheets("Sheet1").Range("A:A").NumberFormat = ("yyyy-mm-dd hh:mm:ss") excel.Worksheets("Sheet1").Range("a1:g1").Font.Bold = 1 excel.Worksheets("Sheet1").Range("a1:g1").Interior.ColorIndex = 6 excel.Worksheets("Sheet1").Columns.AutoFit excel.Worksheets("Sheet1").Select excel.Worksheets("Sheet1").Rows("2:2").Select excel.ActiveWindow.FreezePanes =1 excel.DisplayAlerts = 0 book.SaveAs("#{file}") excel.DisplayAlerts = 1 book.close true } excel.quit()

smtp.rb,v 1.69 doesn't accept VERP style addressing

Postby culley harrelson » Thu, 04 Dec 2003 09:45:21 GMT

> Impossible.

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.


Re: smtp.rb,v 1.69 doesn't accept VERP style addressing

Postby culley harrelson » Thu, 04 Dec 2003 22:54:20 GMT

Oops!  This was my bug-- sorry to bother you.


Similar Threads:

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

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

my-newsletter+me= XXXX@XXXXX.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?


2.Linux protocol.rb and smtp.rb problem

I am moving my ruby program file from my winbox to my linux( redhat 9 ) box.
I've got ruby 1.8.1 installed on my linux box. However when I run my script
the following lines error out:

smtp = Net::SMTP::new( server )
smtp.start( domain , username , password , "cram_md5" )

It complains about:

/usr/local/lib/ruby/1.8/net/protocol.rb:83:in 'initialize': getaddrinfo:
Name or service not known( SocketError )
	from /usr/local/lib/ruby/1.8/net/protocol.rb:83:in 'new'
	from /usr/local/lib/ruby/1.8/net/protocol.rb:83:in 'connect'
	from /usr/local/lib/ruby/1.8/net/protocol.rb:82:in 'timeout'

It works beautifully on my Windows box. Any ideas?


3.Linux protocol.rb and smtp.rb problem[FIXED]

The problem had to due to line endings. On a Windows machine it appears that
the protocol.rb file allows you to pass in parameters with a CRLF on the
end. It works! On a Linux machine it didn't.

Solution: I 'chomp'ed the line endings off.


4.Binding to a local address in Net::SMTP

For TCPSocket, I know it's possible to specify the local IP address if
you want to:

socket =, remote_port, local_addr, local_port)

BTW I found this by looking in the source code, since every document I
was referencing only showed the first two arguments.

I am mailing from a host with multiple IP addresses, and I'd like to
be able to specify the local address when I open a connection with
Net::SMTP. Looking at the source, I don't see any way to do this. I'm
thinking about modifying (1.8.2) or
old_open (1.8.4) so that it calls with the four
arguments, rather than two.

Has anyone had this same issue and created such a workaround? Thanks
for any help.


5."ruby myscript.rb" Works, "./myscript.rb" Doesn't

6. why this website address doesn't change

7. Fix for rational.rb (accepting Rationals as num/den)

8. [BUG] 1.8.previews smtp.rb auth

Return to ruby


Who is online

Users browsing this forum: No registered users and 46 guest