Start a reply to this message. Some of the header-lines of the original message will be taken. A message-id will be assigned. Some header lines will be updated to facilitate message-thread detection (see Mail::Box::Thread::Manager).
You may reply to a whole message or a message part.
You may wish to overrule some of the default header settings for the
reply immediately, or you may do that later with set
on the header.
ADDRESSES may be specified as string, or a Mail::Address object, or as array of Mail::Address objects.
Option | Default |
---|---|
Bcc | undef |
Cc | <'cc' in current> |
From | <'to' in current> |
Message-ID | <uniquely generated> |
Subject | |
To | <sender in current> |
body | undef |
group_reply | <true> |
include |
|
max_signature |
|
message_type | |
postlude | undef |
prelude | undef |
quote | '> ' |
signature | undef |
strip_signature |
|
my $reply = $msg->reply ( prelude => "No spam, please!\n\n" , postlude => "\nGreetings\n" , strip_signature => 1 , signature => $my_pgp_key , group_reply => 1 );
Unknown alternative for the include
option of reply(). Valid
choices are NO
, INLINE
, and ATTACH
.
Produces a list of lines (usually only one), which will preceded the
quoted body of the message. STRING must comply to the RFC822 email
address specification, and is usually the content of a To
or From
header line. If a FIELD is specified, the field's body must be
compliant. Without argument -or when the argument is undef
- a
slightly different line is produced.
An characteristic example of the output is
On Thu Oct 13 04:54:34 1995, him@example.com wrote:
Create a subject for a message which is a reply for this one. This routine tries to count the level of reply in subject field, and transform it into a standard form. Please contribute improvements.
subject --> Re: subject Re: subject --> Re[2]: subject Re[X]: subject --> Re[X+1]: subject subject (Re) --> Re[2]: subject subject (Forw) --> Re[2]: subject <blank> --> Re: your mail