Sha256: c9295848bea952d3ee7bb4be66f8eda045ec22945f22661353a3ceeb5e3ec592
Contents?: true
Size: 989 Bytes
Versions: 2
Compression:
Stored size: 989 Bytes
Contents
module Glue # Add support for incoming mail handling. # # You need to setup your MTA to support incoming email # handling. Here is an example for Postfix. Edit these files: # # /etc/postfix/master.cf: # mailman unix - n n - - pipe # flags= user=nobody argv=/path/to/ruby /path/to/app/script/runner.rb Mailer.receive(STDIN) # # /etc/postfix/main.cf: # transport_maps = hash:/etc/postfix/transport # virtual_mailbox_domains = lists.yourdomain.com # # /etc/postfix/transport: # lists.yourdomain.com mailman: # # Then run: # # sudo postmap transport # sudo postfix stop # sudo postfix start module IncomingMailer def self.included(base) base.extend ClassMethods end # You can overide this class for specialized handling. def receive(mail) end module ClassMethods def receive(encoded) mail = Glue::Mail.new_from_encoded(encoded) self.new.receive(mail) end end end end # * George Moschovitis <gm@navel.gr>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
glue-0.22.0 | lib/glue/mailer/incoming.rb |
glue-0.23.0 | lib/glue/mailer/incoming.rb |