summaryrefslogtreecommitdiff
path: root/lib/MaildirIndexer/Email.pm6
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MaildirIndexer/Email.pm6')
-rw-r--r--lib/MaildirIndexer/Email.pm63
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 {