]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiToMail.pm
lei q: improve remote mboxrd UX + MUA
[public-inbox.git] / lib / PublicInbox / LeiToMail.pm
index 4c5a5685a6a8b06a09a978fb015ae6c70c380a33..a5a196db63d50bd5fbb30f65348d32d5d0b6ccec 100644 (file)
@@ -371,7 +371,17 @@ sub new {
        $self;
 }
 
-sub _pre_augment_maildir {} # noop
+sub _pre_augment_maildir {
+       my ($self, $lei) = @_;
+       my $dst = $lei->{ovv}->{dst};
+       for my $x (qw(tmp new cur)) {
+               my $d = $dst.$x;
+               next if -d $d;
+               require File::Path;
+               File::Path::mkpath($d);
+               -d $d or die "$d is not a directory";
+       }
+}
 
 sub _do_augment_maildir {
        my ($self, $lei) = @_;
@@ -388,17 +398,7 @@ sub _do_augment_maildir {
        }
 }
 
-sub _post_augment_maildir {
-       my ($self, $lei) = @_;
-       my $dst = $lei->{ovv}->{dst};
-       for my $x (qw(tmp new cur)) {
-               my $d = $dst.$x;
-               next if -d $d;
-               require File::Path;
-               File::Path::mkpath($d);
-               -d $d or die "$d is not a directory";
-       }
-}
+sub _post_augment_maildir {} # noop
 
 sub _pre_augment_mbox {
        my ($self, $lei) = @_;