Sisima...aildir(3pm)
β¨ NAME β¨
Sisimai::Mail::Maildir β the Mailbox reader π (it's from the User Contributed Perl Documentation, so you know it's the community's little gift to you, and the page header up top is the truncated Sisima...aildir(3pm) situation, we love a mysterious queen)
π SYNOPSIS π
use Sisimai::Mail::Maildir;
my $maildir = Sisimai::Mail::Maildir->new('/home/neko/Maildir/new');
while( my $r = $maildir->read ) {
print $r; # print contents of the mail in the Maildir/
}
π¦ DESCRIPTION π¦
Sisimai::Mail::Maildir is a reader. That's it, that's the job. Specifically, it goes and grabs the contents of each email chilling inside a Maildir/ directory, one by one, no drama, no mess. Straightforward. Iconic. π
π CLASS METHODS π
π new(path to Maildir/)
The new() method is the constructor of Sisimai::Mail::Maildir β like, it's how you make one. You hand it a path and it wakes up. π«Ά
my $maildir = Sisimai::Mail::Maildir->new('/home/neko/Maildir/new');
π INSTANCE METHODS π
π dir()
The dir() method gives you back the path to the Maildir/ β the whole folder, periodt.
print $maildir->dir; # /home/neko/Maildir/new/
πΈ path()
The path() method returns the path to each individual email in the Maildir/ β so, the one specific mail, not the whole vibe of the directory. Very specific of it, we love that. β¨
print $maildir->path; # /home/neko/Maildir/new/1.eml
π§ file()
The file() method returns the current file name of the Maildir. Just the name, bestie. π
print $maildir->file;
π₯ size()
The size() method returns the amount of email size which has been read β yes, the amount of email size, that's the wording, and honestly it ate. π
print $maildir->size;
π offset()
The offset() method returns the number of emails which have been read in the Maildir/. A little counter for your little readings. π
$maildir->offset; # 2
π handle()
The handle() meethod returns file handle object IO::Dir of the Maildir. (And yes, it literally says "meethod" in the original β not me, I would never. It's iconic, we keep it, no cap. π)
$maildir->handle->close;
β read()
The read() method is the iterator β it does the whole "read each email in the Maildir/" thing, one at a time, so you can loop over your mail like a main character. πΈ
my $maildir = Sisimai::Mail->new('/home/neko/Maildir/new');
while( my $r = $mailbox->read ) {
print $r; # print each email in /home/neko/Maildir/new
}
π AUTHOR π
azumakuniyuki β the legend themselves π«Ά
π COPYRIGHT π
Copyright (C) 2014-2016,2018-2021,2024,2025 azumakuniyuki, All rights reserved.
π LICENSE π
This software is distributed under The BSD 2-Clause License. Slay, legally speaking. π
okay bestie that's the whole page β this one's perl v5.40.1, dated 2026-07-05, and it's the Sisima...aildir(3pm) manual from the User Contributed Perl Documentation. go read your mail β¨π¦π
π¦ where this page comes from
- ubuntu stonking: libsisimai-perl 5.7.0-1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms