1Mail::Message::Convert:U:sTeerxtCAounttorfiobrumtaetdM(a3Pi)elr:l:MDeoscsuamgeen:t:aCtoinovnert::TextAutoformat(3)
2
3
4

NAME

6       Mail::Message::Convert::TextAutoformat - Reformat plain text messages
7

INHERITANCE

9        Mail::Message::Convert::TextAutoformat
10          is a Mail::Message::Convert
11          is a Mail::Reporter
12

SYNOPSIS

14        use Mail::Message::Convert::TextAutoformat;
15        my $af = Mail::Message::Convert::TextAutoformat->new;
16
17        my $beautified_body = $af->autoformatBody($body);
18

DESCRIPTION

20       Play trics with plain text, for instance bodies with type "text/plain"
21       using Damian Conway's Text::Autoformat.
22
23       Extends "DESCRIPTION" in Mail::Message::Convert.
24

METHODS

26       Extends "METHODS" in Mail::Message::Convert.
27
28   Constructors
29       Extends "Constructors" in Mail::Message::Convert.
30
31       Mail::Message::Convert::TextAutoformat->new(%options)
32            -Option --Defined in            --Default
33             fields   Mail::Message::Convert  <see description>
34             log      Mail::Reporter          'WARNINGS'
35             options                          { (all, 1) }
36             trace    Mail::Reporter          'WARNINGS'
37
38           fields => NAMES|ARRAY-OF-NAMES|REGEXS
39           log => LEVEL
40           options => HASH-REF
41             Options to pass to Text::Autoformat, when its "autoformat" method
42             is called.
43
44           trace => LEVEL
45
46   Converting
47       Extends "Converting" in Mail::Message::Convert.
48
49       $obj->autoformatBody($body)
50           Formats a single message body (a Mail::Message::Body object) into a
51           new body object using Text::Autoformat.  If the Text::Autoformat is
52           not installed, "undef" is returned.
53
54       $obj->selectedFields($head)
55           Inherited, see "Converting" in Mail::Message::Convert
56
57   Error handling
58       Extends "Error handling" in Mail::Message::Convert.
59
60       $obj->AUTOLOAD()
61           Inherited, see "Error handling" in Mail::Reporter
62
63       $obj->addReport($object)
64           Inherited, see "Error handling" in Mail::Reporter
65
66       $obj->defaultTrace( [$level]|[$loglevel, $tracelevel]|[$level,
67       $callback] )
68       Mail::Message::Convert::TextAutoformat->defaultTrace(
69       [$level]|[$loglevel, $tracelevel]|[$level, $callback] )
70           Inherited, see "Error handling" in Mail::Reporter
71
72       $obj->errors()
73           Inherited, see "Error handling" in Mail::Reporter
74
75       $obj->log( [$level, [$strings]] )
76       Mail::Message::Convert::TextAutoformat->log( [$level, [$strings]] )
77           Inherited, see "Error handling" in Mail::Reporter
78
79       $obj->logPriority($level)
80       Mail::Message::Convert::TextAutoformat->logPriority($level)
81           Inherited, see "Error handling" in Mail::Reporter
82
83       $obj->logSettings()
84           Inherited, see "Error handling" in Mail::Reporter
85
86       $obj->notImplemented()
87           Inherited, see "Error handling" in Mail::Reporter
88
89       $obj->report( [$level] )
90           Inherited, see "Error handling" in Mail::Reporter
91
92       $obj->reportAll( [$level] )
93           Inherited, see "Error handling" in Mail::Reporter
94
95       $obj->trace( [$level] )
96           Inherited, see "Error handling" in Mail::Reporter
97
98       $obj->warnings()
99           Inherited, see "Error handling" in Mail::Reporter
100
101   Cleanup
102       Extends "Cleanup" in Mail::Message::Convert.
103
104       $obj->DESTROY()
105           Inherited, see "Cleanup" in Mail::Reporter
106

DIAGNOSTICS

108       Error: Package $package does not implement $method.
109           Fatal error: the specific package (or one of its superclasses) does
110           not implement this method where it should. This message means that
111           some other related classes do implement this method however the
112           class at hand does not.  Probably you should investigate this and
113           probably inform the author of the package.
114

SEE ALSO

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

LICENSE

120       Copyrights 2001-2022 by [Mark Overmeer <markov@cpan.org>]. For other
121       contributors see ChangeLog.
122
123       This program is free software; you can redistribute it and/or modify it
124       under the same terms as Perl itself.  See http://dev.perl.org/licenses/
125
126
127
128perl v5.36.0                      2023M-a0i1l-:2:0Message::Convert::TextAutoformat(3)
Impressum