class Object
Constants
- CRLF
- LOG
get setup and open the log
- LocalLMTPPort
- S3DB
Open the sqlite3 database for rubymta use
Public Instance Methods
deepclone()
click to toggle source
deepclone not only clones the target object, but all objects inside of it, i.e., if you clone a hash of other objects, those other objects will also be cloned.
# File lib/rubymta/deepclone.rb, line 5 def deepclone case when self.class==Hash hash = {} self.each { |k,v| hash[k] = v.deepclone } hash when self.class==Array array = [] self.each { |v| array << v.deepclone } array else if defined?(self.class.new) self.class.new(self) else self end end end
manually_run_queue_runner()
click to toggle source
# File lib/rubymta/queue_runner.rb, line 9 def manually_run_queue_runner exit unless File::open(LockFilePath,"w").flock(File::LOCK_NB | File::LOCK_EX) QueueRunner.new.run_queue end
send_local_alert(from, to, subject, text)
click to toggle source
# File lib/rubymta/queue_runner.rb, line 449 def send_local_alert(from, to, subject, text) QueueRunner::new.send_local_email(from, to, subject, text) end