perldoc > Mail::Message::Body::Encode

📜 NAME

Mail::Message::Body::Encode - organize general message encodings

🚀 Quick Reference

Use CaseCommandDescription
Decode message body$msg->decodedDecode the message body to a usable format
Encode message body$body->encode(transfer_encoding => '7bit')Encode body with specified transfer encoding
Check body validity$body->check()Remove illegal characters from body
Test if binary$body->isBinary()Returns true if un-encoded body is binary
Test if text$body->isText()Returns true if un-encoded body is text
Unify body types$body->unify($other)Make two bodies compatible for comparison

🔍 SYNOPSIS

 my <a href="/phpMan.php/perldoc/Mail::Message">Mail::Message</a> $msg = ...;
 my $decoded = $msg->decoded;
 my $encoded = $msg->encode(mime_type => 'image/gif',
     transfer_encoding => 'base64');

 my $body = $msg->body;
 my $decoded = $body->decoded;
 my $encoded = $body->encode(transfer_encoding => '7bit');

📖 DESCRIPTION

Manages the message's body encodings and decodings on request of the main program. This package adds functionality to the Mail::Message::Body class when the decoded() or encode() method is called.

Four types of encodings are handled (in the right order):

⚙️ METHODS

🛠️ Constructing a body

📦 About the payload

🔧 Internals

⚠️ DIAGNOSTICS

📚 SEE ALSO

This module is part of Mail-Message distribution version 3.012, built on February 11, 2022. Website: http://perl.overmeer.net/CPAN/

📄 LICENSE

Copyrights 2001-2022 by [Mark Overmeer <markov AT cpan.org>]. For other contributors see ChangeLog.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://dev.perl.org/licenses/

Mail::Message::Body::Encode
📜 NAME 🚀 Quick Reference 🔍 SYNOPSIS 📖 DESCRIPTION ⚙️ METHODS
🛠️ Constructing a body 📦 About the payload 🔧 Internals
⚠️ DIAGNOSTICS 📚 SEE ALSO 📄 LICENSE

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-27 06:59 @216.73.216.194
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format

^_top_^