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/Email.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/Email.pm6')
-rw-r--r-- | lib/MaildirIndexer/Email.pm6 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/MaildirIndexer/Email.pm6 b/lib/MaildirIndexer/Email.pm6 index 993d8b1..0cd5bd7 100644 --- a/lib/MaildirIndexer/Email.pm6 +++ b/lib/MaildirIndexer/Email.pm6 @@ -1,10 +1,11 @@ use v6.d.PREVIEW; unit class MaildirIndexer::Email; +has IO $!path; has %!headers; has $!body; -method BUILD(:%!headers,:$!body) { } +method BUILD(:%!headers,:$!body,:$!path = IO) { } method message-id { split-refs(%!headers<message-id>)[0] // '' } method refs { |