Email:...esystem(3pm)

πŸ“¦
version 1.042 Β· 2 versions
  • 1.042 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.042 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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 to get_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> 🌸


(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 πŸ’…βœ¨πŸŒˆ