Skip to content

Commit

Permalink
Taroweb::Maildir 削除のため、Taroweb.pm からも消した
Browse files Browse the repository at this point in the history
  • Loading branch information
vkgtaro committed Dec 24, 2009
1 parent 4d80d7b commit a157b94
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions lib/Taroweb.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ our $VERSION = '0.01';

use Taroweb::Postfix;
use Taroweb::Dovecot;
use Taroweb::Maildir;

has dovecot_passwd_file => (
is => 'rw',
Expand All @@ -30,18 +29,16 @@ has dovecot => (
lazy_build => 1,
);

has maildir => (
is => 'ro',
lazy_build => 1,
);

__PACKAGE__->meta->make_immutable;

no Mouse;

sub _build_postfix {
my ( $self ) = @_;
my $postfix = Taroweb::Postfix->new( virtual => $self->postfix_virtual_file );
my $postfix = Taroweb::Postfix->new(
virtual => $self->postfix_virtual_file,
base_dir => $self->base_maildir
);
$postfix->read_virtual_file();

return $postfix;
Expand All @@ -55,15 +52,9 @@ sub _build_dovecot {
return $dovecot;
}

sub _build_maildir {
my ( $self ) = @_;
return Taroweb::Maildir->new( base_dir => $self->base_maildir );
}

sub add {
my ($self, $address, $password) = @_;

$self->maildir->make_maildir($address);
$self->dovecot->add($address, $password);
$self->postfix->add($address);
}
Expand Down

0 comments on commit a157b94

Please sign in to comment.