Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mail::message::construct::bounce(3pm) [debian man page]

Mail::Message::Construct::Bounce(3pm)			User Contributed Perl Documentation		     Mail::Message::Construct::Bounce(3pm)

NAME
Mail::Message::Construct::Bounce - bounce a Mail::Message SYNOPSIS
$message->bounce(To => 'you')->send; DESCRIPTION
Complex functionality on Mail::Message objects is implemented in different files which are autoloaded. This file implements the functionality related to bouncing messages off to other destinations. METHODS
Constructing a message $obj->bounce([RG-OBJECT|OPTIONS]) The program calling this method considers itself as an intermediate step in the message delivery process; it therefore leaves a resent group of header fields as trace. When a message is received, the Mail Transfer Agent (MTA) adds a "Received" field to the header. As OPTIONS, you may specify lines which are added to the resent group of that received field. "Resent-*" is prepended before the field-names automatically, unless already present. You may also specify an instantiated Mail::Message::Head::ResentGroup (RG) object. See Mail::Message::Head::ResentGroup::new() for the available options. This is required if you want to add a new resent group: create a new "Received" line in the header as well. If you are planning to change the body of a bounce message, don't! Bounced messages have the same message-id as the original message, and therefore should have the same content (message-ids are universally unique). If you still insist, use Mail::Message::body(). example: my $bounce = $folder->message(3)->bounce(To => 'you', Bcc => 'everyone'); $bounce->send; $outbox->addMessage($bounce); my $rg = Mail::Message::Head::ResentGroup->new(To => 'you', Received => 'from ... by ...'); $msg->bounce($rg)->send; DIAGNOSTICS
Error: Method bounce requires To, Cc, or Bcc The message bounce() method forwards a received message off to someone else without modification; you must specified it's new destination. If you have the urge not to specify any destination, you probably are looking for reply(). When you wish to modify the content, use forward(). SEE ALSO
This module is part of Mail-Box distribution version 2.105, built on May 07, 2012. Website: http://perl.overmeer.net/mailbox/ LICENSE
Copyrights 2001-2012 by [Mark Overmeer]. 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://www.perl.com/perl/misc/Artistic.html perl v5.14.2 2012-05-07 Mail::Message::Construct::Bounce(3pm)

Check Out this Related Man Page

Mail::Message::Convert::MailInternet(3pm)		User Contributed Perl Documentation		 Mail::Message::Convert::MailInternet(3pm)

NAME
Mail::Message::Convert::MailInternet - translate Mail::Message to Mail::Internet vv INHERITANCE
Mail::Message::Convert::MailInternet is a Mail::Message::Convert is a Mail::Reporter SYNOPSIS
use Mail::Message::Convert::MailInternet; my $convert = Mail::Message::Convert::MailInternet->new; my Mail::Message $msg = Mail::Message->new; my Mail::Internet $intern = $convert->export($msg); my Mail::Internet $intern = Mail::Internet->new; my Mail::Message $msg = $convert->from($intern); use Mail::Box::Manager; my $mgr = Mail::Box::Manager->new; my $folder = $mgr->open(folder => 'Outbox'); $folder->addMessage($intern); DESCRIPTION
The Mail::Internet class of messages is very popular for all kinds of message applications written in Perl. However, the format was developed when e-mail messages where still small and attachments where rare; Mail::Message is much more flexible in this respect. Converters between message objects Other converters METHODS
Constructors Mail::Message::Convert::MailInternet->new(OPTIONS) See "METHODS" in Mail::Message::Convert Converting $obj->export(MESSAGE, OPTIONS) Returns a new message object based on the information from a Mail::Message object. The MESSAGE specified is an instance of a Mail::Message. example: my $convert = Mail::Message::Convert::MailInternet->new; my Mail::Message $msg = Mail::Message->new; my Mail::Internet $copy = $convert->export($msg); $obj->from(OBJECT, OPTIONS) Returns a new Mail::Message object based on the information from a Mail::Internet object. example: my $convert = Mail::Message::Convert::MailInternet->new; my Mail::Internet $msg = Mail::Internet->new; my Mail::Message $copy = $convert->from($msg); $obj->selectedFields(HEAD) See "Converting" in Mail::Message::Convert Error handling $obj->AUTOLOAD() See "Error handling" in Mail::Reporter $obj->addReport(OBJECT) See "Error handling" in Mail::Reporter $obj->defaultTrace([LEVEL]|[LOGLEVEL, TRACELEVEL]|[LEVEL, CALLBACK]) Mail::Message::Convert::MailInternet->defaultTrace([LEVEL]|[LOGLEVEL, TRACELEVEL]|[LEVEL, CALLBACK]) See "Error handling" in Mail::Reporter $obj->errors() See "Error handling" in Mail::Reporter $obj->log([LEVEL [,STRINGS]]) Mail::Message::Convert::MailInternet->log([LEVEL [,STRINGS]]) See "Error handling" in Mail::Reporter $obj->logPriority(LEVEL) Mail::Message::Convert::MailInternet->logPriority(LEVEL) See "Error handling" in Mail::Reporter $obj->logSettings() See "Error handling" in Mail::Reporter $obj->notImplemented() See "Error handling" in Mail::Reporter $obj->report([LEVEL]) See "Error handling" in Mail::Reporter $obj->reportAll([LEVEL]) See "Error handling" in Mail::Reporter $obj->trace([LEVEL]) See "Error handling" in Mail::Reporter $obj->warnings() See "Error handling" in Mail::Reporter Cleanup $obj->DESTROY() See "Cleanup" in Mail::Reporter $obj->inGlobalDestruction() See "Cleanup" in Mail::Reporter DIAGNOSTICS
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. SEE ALSO
This module is part of Mail-Box distribution version 2.105, built on May 07, 2012. Website: http://perl.overmeer.net/mailbox/ LICENSE
Copyrights 2001-2012 by [Mark Overmeer]. 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://www.perl.com/perl/misc/Artistic.html perl v5.14.2 2012-05-07 Mail::Message::Convert::MailInternet(3pm)
Man Page