diff options
author | dakkar <dakkar@thenautilus.net> | 2019-12-27 16:06:20 +0000 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2019-12-27 16:06:20 +0000 |
commit | 88a155c17a0affeba6973b6f59994a9ee8d8c5b9 (patch) | |
tree | 644f831b2db3a6e644bfd4772f0904a60f2e0b99 | |
parent | move scan-dir out of Store (diff) | |
download | MaildirIndexer-88a155c17a0affeba6973b6f59994a9ee8d8c5b9.tar.gz MaildirIndexer-88a155c17a0affeba6973b6f59994a9ee8d8c5b9.tar.bz2 MaildirIndexer-88a155c17a0affeba6973b6f59994a9ee8d8c5b9.zip |
skip non-mails based on name, first
this saves us trying to parse stuff that we then wouldn't use
-rw-r--r-- | lib/MaildirIndexer/Store.pm6 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MaildirIndexer/Store.pm6 b/lib/MaildirIndexer/Store.pm6 index e1f2c5e..2c60233 100644 --- a/lib/MaildirIndexer/Store.pm6 +++ b/lib/MaildirIndexer/Store.pm6 @@ -30,8 +30,8 @@ method start() { } method add-file(IO:D $file) { - my $email = parse-email($file,:headers-only); my $mailbox = mailbox-from-path($file.path) or return; + my $email = parse-email($file,:headers-only); $!lock.protect: { .add-mail($email,$mailbox) for @!indices; } |