1. noeticpenguin
  2. Baku

Commits

kpoo...@dev01.colo  committed d47fbd8

Renamed devmail daemon

  • Participants
  • Parent commits 20fb1f3
  • Branches default

Comments (0)

Files changed (3)

File bin/devmail

View file
+#!/usr/bin/env ruby
+
+require 'rubygems'
+require 'daemons'
+
+Daemons.run('lib/frontend.rb')

File bin/devmail.rb

-#!/usr/bin/env ruby
-
-require 'rubygems'
-require 'daemons'
-
-Daemons.run('lib/frontend.rb')

File lib/frontend.rb

View file
 get '/' do
   Ohm.connect
   Address.all.each {|x| x.emails.each {|y| puts y.inspect}}
-#  <% collection.each do |item| %>
-#3:57:58 <%= puts item.to_s %>
-#3:58:02 <% end %>
 
   erb '
+  <% Address.all.each do |address| %>
+    <% address.emails.each do |email| %>
+      <%= puts email.mail_from.to_s + " | " + email.rcpt_to.to_s + " | " email.subject.to_s  %>
+    <% end %>
+  <% end %>
       '
+
 end