Project

General

Profile

« Previous | Next » 

Revision 4153cce4

Added by Marc Dequènes about 15 years ago

  • ID 4153cce452781b6afb801451276ed6151581532a

[evol] new DNS class to manage zone files (only read zone file at the moment) + generate proper mail reply

View differences:

lib/cyborghood/mail.rb
@mail
end
def self.normalize_new_lines(text)
text.to_s.gsub(/\r\n?/, "\n")
end
def parse
sig_check = verify_pgp_signature()
if sig_check.status == 0
......
smtp_from = @mail.from_addrs.collect{|a| a.address}.join(", ")
smtp_to = @mail.to_addrs.collect{|a| a.address}
Net::SMTP.start(smtp_server, smtp_port) do |smtp|
smtp.send_message(@mail.to_s, smtp_from, smtp_to)
#smtp.send_message(@mail.to_s, smtp_from, smtp_to)
p @mail.to_s
end
end

Also available in: Unified diff