]>
gitweb.michael.orlitzky.com - mailshears.git/blob - src/dovecot_mailstore.rb
a794032c246d3c171a33193ab56c1cc823429cec
1 require 'src/filesystem'
2 require 'src/mailstore'
4 class DovecotMailstore
< Mailstore
6 def get_domains_from_filesystem()
7 return Filesystem
.get_subdirs(@domain_root)
11 def get_accounts_from_filesystem(domains
)
14 domains
.each
do |domain
|
15 domain_path
= File
.join(@domain_root, domain
)
16 usernames
= Filesystem
.get_subdirs(domain_path
)
18 usernames
.each
do |username
|
19 accounts
<< "#{username}@#{domain}"