Note - this project is still in its infacy and probably not quite ready for production use. Check back soon...
class Person < ActiveRecord::Base
is_dl :all # results in a dl for [email protected]
is_dl :guys # results in a dl for [email protected]
is_dl :girls # results in a dl for [email protected]
is_dl :peeps # results in a dl for [email protected]
named_scope :guys, :conditions => {:gender => 'M'}
named_scope :girls, :conditions => {:gender => 'F'}
def peeps
# return an enumerable containing your peeps
end
end
class Person < ActiveRecord::Base
is_dl
def dl_missing(name)
Group.find_by_name(name).people
end
end
class Person < ActiveRecord::Base
is_dl :all, :allow => [:members] # allow emails from anyone included in the distribution list.
is_dl :peeps, :allow => ['[email protected]', '[email protected]', '[email protected]']
end
class Person < ActiveRecord::Base
is_dl :all, :reply_to => :list # replies will be sent to [email protected]
end
class Person < ActiveRecord::Base
is_dl :all, :from => '[email protected]' # emails to group will come from [email protected] rather than original sender.
end
class Person < ActiveRecord::Base
is_dl :all, :subject_prefix => 'info' # Will prefix subjects with "[info]"
is_dl :peeps, :subject_prefix => :list_name # Will prefix subjects with "[peeps]"
end
Copyright (c) 2009 Robin Curry. See LICENSE for details.