8 require 'nos_oignons/mailman'
9 require 'nos_oignons/subscriptions'
13 current_emails = NosOignons::Mailman.list_members(LIST)
14 uptodate_emails = NosOignons::Subscription.all.select(&:up_to_date?).collect(&:email)
16 NosOignons::Mailman.add_members(LIST, uptodate_emails - current_emails)
17 NosOignons::Mailman.remove_members(LIST, current_emails - uptodate_emails)