ref: master
app/models/mail_conf.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
class MailConf class << self def default_webmail_url 'http://webmail.example.com' end def enabled? NOOSFERO_CONF['mail_enabled'] || false end def webmail_url(username, domain) (NOOSFERO_CONF['webmail_url'] || default_webmail_url) % [username, domain] end end end |