CiderW...::Part(3pm)
CiderW...::Part π¦π
okay bestie, gather round π«Ά this is CiderW...::Part, a lil Perl module that lives in the User Contributed Perl Documentation section of your man pages (that's the <3pm> part, iykyk). It's the part-y bit of CiderWebmail β like, one part of a message: a body, an attachment, a lil chunk of a MIME thing. And it has β¨methodsβ¨. So many methods. All of them below, in order, no skips, no cap. π
πΈ THE METHODS πΈ
main_body_part()
Returns the main body part for using when forwarding/replying the message. π That's the one you actually want when you hit reply, bestie.
body()
returns the body of the part unless body({ raw => 1}) is specified β converting the body to utf-8 will be attempted. So if you pass raw => 1 you get it as-is, no glow-up. β¨
_decode_body()
attempt a best-effort $charset to utf-8 conversion. It's giving "we'll try our best" energy, not "we promise" energy. π
part_id()
returns the part_id of the part.
body_id()
returns the body_id of the part or undef. Yeah, sometimes it's just undef. Not everyone has a body_id and that's fine. π
guess_recipient()
Tries to guess the recipient address used to deliver this message to this mailbox. Used for suggesting a From address on reply/forward. π₯
handler()
returns a CiderWebmail::Part::FooBar object for the specified part.
icon() {
returns the name of a icon representing the content type fo the part π (yes, the brace is just there. it's iconic. we don't question it. π )
render()
render a CiderWebmail::Part. just a stub - override in CiderWebmail::Part::FooBar. So this one literally does nothing on its own, it's the main character who's waiting for a subclass to show up. π
cid()
returns the Content-ID of the part.
content_type()
returns the content type of the CiderWebmail::Part.
name()
returns the name of the part or "(attachment|part) content/type" β like, if there's no real name it'll hand you a placeholder situation. π
file_name()
returns a best-guess file_name if one was supplied or undef. Best-guess!! It's doing its best!! π«Ά
is_attachment()
returns true if the body disposition indicates it is an attachment.
bodydisp()
returnes the body disposition hash (if it exists) or undef. ("returnes" β the original said it, I'm keeping it, it's canon π)
attachment()
returns true if the bodydisp indicates it is a attachment.
bodyparms()
returnes the bodyparms hash (if it exists) or undef.
uri_download
returns an http url to access the part. π₯
uri_render
returns an http url to render the part. πΌοΈ
is_root_part
returns true if this part is the root part (RFC822 message). That's the mother of all parts, the OG, the one everything else hangs off of. π
π no options, no flags, no env vars, no exit statuses here β this page is just the method roster, and every single one made it in. vv important that nothing got dropped, so nothing got dropped. π―
that's the whole vibe, bestie π this page came from the User Contributed Perl Documentation, shipping with perl v5.40.1, dated 2025-03-02. mwah, go read some MIME parts πβ¨π
π¦ where this page comes from
- debian trixie: ciderwebmail 1.05+20240702-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: ciderwebmail 1.05+20240702-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms