.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Mail::Message::Convert::TextAutoformat 3" .TH Mail::Message::Convert::TextAutoformat 3 2024-01-06 "perl v5.38.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME Mail::Message::Convert::TextAutoformat \- Reformat plain text messages .SH INHERITANCE .IX Header "INHERITANCE" .Vb 3 \& Mail::Message::Convert::TextAutoformat \& is a Mail::Message::Convert \& is a Mail::Reporter .Ve .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 2 \& use Mail::Message::Convert::TextAutoformat; \& my $af = Mail::Message::Convert::TextAutoformat\->new; \& \& my $beautified_body = $af\->autoformatBody($body); .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" Play trics with plain text, for instance bodies with type \f(CW\*(C`text/plain\*(C'\fR using Damian Conway's Text::Autoformat. .PP Extends "DESCRIPTION" in Mail::Message::Convert. .SH METHODS .IX Header "METHODS" Extends "METHODS" in Mail::Message::Convert. .SS Constructors .IX Subsection "Constructors" Extends "Constructors" in Mail::Message::Convert. .IP Mail::Message::Convert::TextAutoformat\->\fBnew\fR(%options) 4 .IX Item "Mail::Message::Convert::TextAutoformat->new(%options)" .Vb 5 \& \-Option \-\-Defined in \-\-Default \& fields Mail::Message::Convert \& log Mail::Reporter \*(AqWARNINGS\*(Aq \& options { (all, 1) } \& trace Mail::Reporter \*(AqWARNINGS\*(Aq .Ve .RS 4 .IP "fields => NAMES|ARRAY\-OF\-NAMES|REGEXS" 2 .IX Item "fields => NAMES|ARRAY-OF-NAMES|REGEXS" .PD 0 .IP "log => LEVEL" 2 .IX Item "log => LEVEL" .IP "options => HASH-REF" 2 .IX Item "options => HASH-REF" .PD Options to pass to Text::Autoformat, when its \f(CW\*(C`autoformat\*(C'\fR method is called. .IP "trace => LEVEL" 2 .IX Item "trace => LEVEL" .RE .RS 4 .RE .SS Converting .IX Subsection "Converting" Extends "Converting" in Mail::Message::Convert. .ie n .IP $obj\->\fBautoformatBody\fR($body) 4 .el .IP \f(CW$obj\fR\->\fBautoformatBody\fR($body) 4 .IX Item "$obj->autoformatBody($body)" Formats a single message body (a Mail::Message::Body object) into a new body object using Text::Autoformat. If the Text::Autoformat is not installed, \f(CW\*(C`undef\*(C'\fR is returned. .ie n .IP $obj\->\fBselectedFields\fR($head) 4 .el .IP \f(CW$obj\fR\->\fBselectedFields\fR($head) 4 .IX Item "$obj->selectedFields($head)" Inherited, see "Converting" in Mail::Message::Convert .SS "Error handling" .IX Subsection "Error handling" Extends "Error handling" in Mail::Message::Convert. .ie n .IP $obj\->\fBAUTOLOAD\fR() 4 .el .IP \f(CW$obj\fR\->\fBAUTOLOAD\fR() 4 .IX Item "$obj->AUTOLOAD()" Inherited, see "Error handling" in Mail::Reporter .ie n .IP $obj\->\fBaddReport\fR($object) 4 .el .IP \f(CW$obj\fR\->\fBaddReport\fR($object) 4 .IX Item "$obj->addReport($object)" Inherited, see "Error handling" in Mail::Reporter .ie n .IP "$obj\->\fBdefaultTrace\fR( [$level]|[$loglevel, $tracelevel]|[$level, $callback] )" 4 .el .IP "\f(CW$obj\fR\->\fBdefaultTrace\fR( [$level]|[$loglevel, \f(CW$tracelevel\fR]|[$level, \f(CW$callback\fR] )" 4 .IX Item "$obj->defaultTrace( [$level]|[$loglevel, $tracelevel]|[$level, $callback] )" .PD 0 .ie n .IP "Mail::Message::Convert::TextAutoformat\->\fBdefaultTrace\fR( [$level]|[$loglevel, $tracelevel]|[$level, $callback] )" 4 .el .IP "Mail::Message::Convert::TextAutoformat\->\fBdefaultTrace\fR( [$level]|[$loglevel, \f(CW$tracelevel\fR]|[$level, \f(CW$callback\fR] )" 4 .IX Item "Mail::Message::Convert::TextAutoformat->defaultTrace( [$level]|[$loglevel, $tracelevel]|[$level, $callback] )" .PD Inherited, see "Error handling" in Mail::Reporter .ie n .IP $obj\->\fBerrors\fR() 4 .el .IP \f(CW$obj\fR\->\fBerrors\fR() 4 .IX Item "$obj->errors()" Inherited, see "Error handling" in Mail::Reporter .ie n .IP "$obj\->\fBlog\fR( [$level, [$strings]] )" 4 .el .IP "\f(CW$obj\fR\->\fBlog\fR( [$level, [$strings]] )" 4 .IX Item "$obj->log( [$level, [$strings]] )" .PD 0 .IP "Mail::Message::Convert::TextAutoformat\->\fBlog\fR( [$level, [$strings]] )" 4 .IX Item "Mail::Message::Convert::TextAutoformat->log( [$level, [$strings]] )" .PD Inherited, see "Error handling" in Mail::Reporter .ie n .IP $obj\->\fBlogPriority\fR($level) 4 .el .IP \f(CW$obj\fR\->\fBlogPriority\fR($level) 4 .IX Item "$obj->logPriority($level)" .PD 0 .IP Mail::Message::Convert::TextAutoformat\->\fBlogPriority\fR($level) 4 .IX Item "Mail::Message::Convert::TextAutoformat->logPriority($level)" .PD Inherited, see "Error handling" in Mail::Reporter .ie n .IP $obj\->\fBlogSettings\fR() 4 .el .IP \f(CW$obj\fR\->\fBlogSettings\fR() 4 .IX Item "$obj->logSettings()" Inherited, see "Error handling" in Mail::Reporter .ie n .IP $obj\->\fBnotImplemented\fR() 4 .el .IP \f(CW$obj\fR\->\fBnotImplemented\fR() 4 .IX Item "$obj->notImplemented()" Inherited, see "Error handling" in Mail::Reporter .ie n .IP "$obj\->\fBreport\fR( [$level] )" 4 .el .IP "\f(CW$obj\fR\->\fBreport\fR( [$level] )" 4 .IX Item "$obj->report( [$level] )" Inherited, see "Error handling" in Mail::Reporter .ie n .IP "$obj\->\fBreportAll\fR( [$level] )" 4 .el .IP "\f(CW$obj\fR\->\fBreportAll\fR( [$level] )" 4 .IX Item "$obj->reportAll( [$level] )" Inherited, see "Error handling" in Mail::Reporter .ie n .IP "$obj\->\fBtrace\fR( [$level] )" 4 .el .IP "\f(CW$obj\fR\->\fBtrace\fR( [$level] )" 4 .IX Item "$obj->trace( [$level] )" Inherited, see "Error handling" in Mail::Reporter .ie n .IP $obj\->\fBwarnings\fR() 4 .el .IP \f(CW$obj\fR\->\fBwarnings\fR() 4 .IX Item "$obj->warnings()" Inherited, see "Error handling" in Mail::Reporter .SS Cleanup .IX Subsection "Cleanup" Extends "Cleanup" in Mail::Message::Convert. .ie n .IP $obj\->\fBDESTROY\fR() 4 .el .IP \f(CW$obj\fR\->\fBDESTROY\fR() 4 .IX Item "$obj->DESTROY()" Inherited, see "Cleanup" in Mail::Reporter .SH DIAGNOSTICS .IX Header "DIAGNOSTICS" .ie n .IP "Error: Package $package does not implement $method." 4 .el .IP "Error: Package \f(CW$package\fR does not implement \f(CW$method\fR." 4 .IX Item "Error: Package $package does not implement $method." Fatal error: the specific package (or one of its superclasses) does not implement this method where it should. This message means that some other related classes do implement this method however the class at hand does not. Probably you should investigate this and probably inform the author of the package. .SH "SEE ALSO" .IX Header "SEE ALSO" This module is part of Mail-Message distribution version 3.015, built on December 11, 2023. Website: \fIhttp://perl.overmeer.net/CPAN/\fR .SH LICENSE .IX Header "LICENSE" Copyrights 2001\-2023 by [Mark Overmeer ]. For other contributors see ChangeLog. .PP This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See \fIhttp://dev.perl.org/licenses/\fR