Email:...esystem(3pm)
π Email::MIME::CreateHTML::Resolver::Filesystem π
okay so bestie, welcome to the Email::MIME::CreateHTML::Resolver::Filesystem page β that's the module name, she's a Perl joint from the User Contributed Perl Documentation collection (section 3pm, iykyk). she does one thing and she does it immaculately: she goes and finds your resources on the actual filesystem. no network, no drama, just files. π
β¨ NAME β¨
Email::MIME::CreateHTML::Resolver::Filesystem β finds resources via the filesystem π¦
β¨ SYNOPSIS β¨
here's the vibe, literally the whole thing:
my $o = new Email::MIME::CreateHTML::Resolver::Filesystem(\%args)
my ($content,$filename,$mimetype,$xfer_encoding) = $o->get_resource($uri)
make one, ask it for stuff. that's the whole relationship. π«Ά
β¨ DESCRIPTION β¨
so this lil queen is used by Email::MIME::CreateHTML to load resources. that's it, that's the job. she's the plug that knows where everything lives on disk. π
β¨ METHODS β¨
π $o = new Email::MIME::CreateHTML::Resolver::Filesystem(\%args)
constructor time, babes. and %args can contain this one thing:
baseβ the base directory she uses to resolve relative filepaths that get passed toget_resource. think of it as her home base, her safe space, her anchor π§
π ($content,$filename,$mimetype,$xfer_encoding) = $o->get_resource($uri)
the main character method β¨ hand her a $uri and she comes back with a whole little squad of return values β $content, $filename, $mimetype and $xfer_encoding. four for the price of one, we love a generous icon π
β¨ TODO β¨
- Currently the MIME type is deduced from the file extension via
MIME::Types; given we have the content available, more sophisticated strategies are probably possible π
ngl bestie, that's the note as-written β she's figuring out the MIME type from the file extension through MIME::Types right now, and the thought is that since the actual content is right there, fancier approaches are probably on the table someday. π
β¨ AUTHOR β¨
Tony Hennessy, Simon Flack and John Alden with additional contributions by Ricardo Signes <rjbs@cpan.org> and Henry Van Styn <vanstyn@cpan.org> πΈ
β¨ COPYRIGHT β¨
(c) BBC 2005,2006. This program is free software; you can redistribute it and/or modify it under the GNU GPL.
See the file COPYING in this distribution, or http://www.gnu.org/licenses/gpl.txt
fr fr though β GPL, so read the license, don't be weird about it π
perl v5.36.0 Β· 2022-12-06 β that's the version and the date this page was stamped, and honestly? she ate. go find your files, bestie, ily, periodt π β¨π
π¦ where this page comes from
- debian bookworm: libemail-mime-createhtml-perl 1.042-3 Β· GPL-2.0-only
- debian trixie: libemail-mime-createhtml-perl 1.042-3 Β· GPL-2.0-only
- ubuntu noble: libemail-mime-createhtml-perl 1.042-3 Β· GPL-2.0-only
- ubuntu resolute: libemail-mime-createhtml-perl 1.042-3 Β· GPL-2.0-only
- ubuntu stonking: libemail-mime-createhtml-perl 1.042-3 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms