diff options
| author | fukachan <fukachan> | 2003-02-13 11:02:09 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2003-02-13 11:02:09 +0000 |
| commit | d7d1233a7cee19b35744910eaef51fcd48cb2d42 (patch) | |
| tree | a2bf2e6c24facb94079dd8b6df48ee98c018495b /fml/lib/Mail/Message.pm | |
| parent | b79d55b023b7d19a0d515df2d4e84d65f01c71c7 (diff) | |
| download | fml8-d7d1233a7cee19b35744910eaef51fcd48cb2d42.tar.gz fml8-d7d1233a7cee19b35744910eaef51fcd48cb2d42.tar.bz2 fml8-d7d1233a7cee19b35744910eaef51fcd48cb2d42.zip | |
use module global print_mode parameter not private one within object.
Diffstat (limited to 'fml/lib/Mail/Message.pm')
| -rw-r--r-- | fml/lib/Mail/Message.pm | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/fml/lib/Mail/Message.pm b/fml/lib/Mail/Message.pm index e9a31b44..de181f50 100644 --- a/fml/lib/Mail/Message.pm +++ b/fml/lib/Mail/Message.pm @@ -4,12 +4,13 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: Message.pm,v 1.73 2003/02/01 08:48:08 fukachan Exp $ +# $FML: Message.pm,v 1.74 2003/02/09 12:31:46 fukachan Exp $ # package Mail::Message; use strict; use vars qw(@ISA @EXPORT @EXPORT_OK $AUTOLOAD + $override_print_mode $override_log_function); use Carp; @@ -953,7 +954,7 @@ sub print sub reset_print_mode { my ($self) = @_; - $self->{ _print_mode } = 'raw'; + $override_print_mode = 'raw'; } @@ -967,12 +968,12 @@ sub set_print_mode my ($self, $mode) = @_; if (defined($mode) && $mode) { - if ($mode eq 'raw') { - $self->{ _print_mode } = 'raw'; - } - elsif ($mode eq 'smtp') { - $self->{ _print_mode } = 'smtp'; - } + if ($mode eq 'raw') { + $override_print_mode = 'raw'; + } + elsif ($mode eq 'smtp') { + $override_print_mode = 'smtp'; + } } } @@ -1033,7 +1034,7 @@ sub _print_messsage_on_memory my ($self, $fd, $args) = @_; # \n -> \r\n - my $raw_print_mode = 1 if $self->{ _print_mode } eq 'raw'; + my $raw_print_mode = 1 if $override_print_mode eq 'raw'; # set up offset for the buffer my $data = $self->{ data }; @@ -1148,7 +1149,7 @@ sub _print_messsage_on_disk my ($self, $fd, $args) = @_; # \n -> \r\n - my $raw_print_mode = 1 if $self->{ _print_mode } eq 'raw'; + my $raw_print_mode = 1 if $override_print_mode eq 'raw'; my $header = $self->{ header } || undef; my $filename = $self->{ filename } || undef; my $logfp = $override_log_function || $self->{ _log_function }; |
