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.rakumod | |
parent | actually working cache updating in ByAddresses (diff) | |
download | MaildirIndexer-6bc735051d38c1f84acaa40d8e724398e50dcc90.tar.gz MaildirIndexer-6bc735051d38c1f84acaa40d8e724398e50dcc90.tar.bz2 MaildirIndexer-6bc735051d38c1f84acaa40d8e724398e50dcc90.zip |
indices can now return confidence levelsbayes
also, tests pass again
Diffstat (limited to 'lib/MaildirIndexer/Index.rakumod')
-rw-r--r-- | lib/MaildirIndexer/Index.rakumod | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/MaildirIndexer/Index.rakumod b/lib/MaildirIndexer/Index.rakumod index 8d7ad30..90bc6bd 100644 --- a/lib/MaildirIndexer/Index.rakumod +++ b/lib/MaildirIndexer/Index.rakumod @@ -15,6 +15,11 @@ my class MailboxForEmail is export { has Channel:D $.reply-to is required; } +my class Mailbox is export { + has Str:D $.name is required; + has Numeric:D $.confidence is required; +} + method receive(Channel:D $channel --> Nil) { react { whenever $channel -> $event { @@ -33,4 +38,4 @@ method receive(Channel:D $channel --> Nil) { method add-mail(MaildirIndexer::Email:D $email, Str:D $mailbox --> Nil) { ... } method del-path(IO:D $path, Str:D $mailbox --> Nil) { ... } -method mailbox-for-email(MaildirIndexer::Email:D $email --> Str) { ... } +method mailbox-for-email(MaildirIndexer::Email:D $email --> Mailbox) { ... } |