diff options
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) { ... } |