diff options
author | dakkar <dakkar@thenautilus.net> | 2020-03-16 15:33:39 +0000 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2020-03-16 15:34:19 +0000 |
commit | 6bc735051d38c1f84acaa40d8e724398e50dcc90 (patch) | |
tree | 216bb751b33a54a2f104bc0c80b4acf89d715e07 /lib/MaildirIndexer/Index/ByRef.rakumod | |
parent | actually working cache updating in ByAddresses (diff) | |
download | MaildirIndexer-bayes.tar.gz MaildirIndexer-bayes.tar.bz2 MaildirIndexer-bayes.zip |
indices can now return confidence levelsbayes
also, tests pass again
Diffstat (limited to 'lib/MaildirIndexer/Index/ByRef.rakumod')
-rw-r--r-- | lib/MaildirIndexer/Index/ByRef.rakumod | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/MaildirIndexer/Index/ByRef.rakumod b/lib/MaildirIndexer/Index/ByRef.rakumod index 6e5b7f5..30ea58c 100644 --- a/lib/MaildirIndexer/Index/ByRef.rakumod +++ b/lib/MaildirIndexer/Index/ByRef.rakumod @@ -35,11 +35,11 @@ method del-path(IO:D $file, Str:D $mailbox --> Nil) { } } -method mailbox-for-email(MaildirIndexer::Email:D $email --> Str) { - my Str $result; +method mailbox-for-email(MaildirIndexer::Email:D $email --> Mailbox) { + my Mailbox $result; MaildirIndexer::LogTimelineSchema::Index::Find.log: :class('ByRef'), -> { for |$email.refs() -> $ref { - with %!mailboxes-for-id{$ref} { $result = .keys.sort.[0] } + with %!mailboxes-for-id{$ref} { $result = Mailbox.new(:name(.keys.sort.[0]),:1confidence) } } } return $result; |