diff options
author | dakkar <dakkar@thenautilus.net> | 2019-12-26 20:13:58 +0000 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2019-12-26 20:13:58 +0000 |
commit | 6171cb0d7fe0ac8f6352b8d3b9b87d56c56cf791 (patch) | |
tree | 98b6f42a0ab9939f78134b27f780261211845968 /lib/MaildirIndexer/Index.pm6 | |
parent | test email (diff) | |
download | MaildirIndexer-6171cb0d7fe0ac8f6352b8d3b9b87d56c56cf791.tar.gz MaildirIndexer-6171cb0d7fe0ac8f6352b8d3b9b87d56c56cf791.tar.bz2 MaildirIndexer-6171cb0d7fe0ac8f6352b8d3b9b87d56c56cf791.zip |
restructure store, extract server
now Store has a set of Index, which actually do the indexing
Store also runs the scan-dir (this may not be ideal, but will do for
now)
Server handles I/O
Diffstat (limited to 'lib/MaildirIndexer/Index.pm6')
-rw-r--r-- | lib/MaildirIndexer/Index.pm6 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/MaildirIndexer/Index.pm6 b/lib/MaildirIndexer/Index.pm6 new file mode 100644 index 0000000..2cb308a --- /dev/null +++ b/lib/MaildirIndexer/Index.pm6 @@ -0,0 +1,7 @@ +use v6.d; +unit role MaildirIndexer::Index; +use MaildirIndexer::Email; + +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) { ... } |