Commit 806a1665e13e167ebde65c0043bc3eee0562cb84

Authored by Antonio Terceiro
1 parent 9839cbc7

ActionItem1165: making e-mail work

script/import-cooperation.net
... ... @@ -100,6 +100,7 @@ for username in ARGV
100 100  
101 101 # create user
102 102 user = User.new(:login => login, :email => username, :environment => environment)
  103 + user.enable_email = true
103 104  
104 105 # import person data
105 106 imported_data = Hash.from_xml(File.read(File.join(IMPORT_DIR, username + '.xml')))['person']
... ...
util/mail/postgresql/mail_users.sql
... ... @@ -27,6 +27,7 @@ JOIN domains on
27 27 (
28 28 (
29 29 profiles.preferred_domain_id is null and
  30 + domain.is_default and
30 31 domains.owner_id = environments.id and
31 32 domains.owner_type = 'Environment'
32 33 )
... ...