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