Re: ->get('From') vs. ->Sender vs. From:

Mark Overmeer <[email protected]> Thu, 9 Jun 2005 19:09:07 +0200
Newsgroups gmane.comp.lang.perl.modules.mail-box
Organization MARKOV Solutions
Message-ID <[email protected]>
* Roderick A. Anderson ([email protected]) [050609 18:58]:
> I'm sorry Mitar.  I thought I was replying to the list each time instead 
> of just you.

So... I can't follow what you are talking about exactly...  But for so
far as the docs are concerned: you can best use the HTML version
at http://perl.overmeer.net/mailbox/

> I did find a ->set(from => '[email protected]') method but haven't had a 
> chance to try a ->get(from) -- verses ->get('from') to see if that works.
> ( differently? )

A little bit about header fields:

  $msg->head->get('Field')
  $msg->get('Field')          # abbreviation
     returns the real field, as Mail::Message::Field::Fast object
     (stringifies as its field content)

  $msg->head->study('Field')
  $msg->study('Field')        # abbreviation
     returns a Mail::Message::Field::Full, understands character
     encodings, comments etc.  Slower but more precise

  $msg->from  ->to  ->subject  etc
     simplifications, smart behavior.    Only the field data as
     string.

Once upon a time,  $msg->from  returned the  Resent-From  fields, as you
suggest should be used (if I understand the email correctly), but that
is not according to the RFCs, so was changed.  A reply should always be
addressed to the real "From" or "Sender".

See also Mail::Message::Head::ResentGroup
-- 
               MarkOv

------------------------------------------------------------------------
drs Mark A.C.J. Overmeer                                MARKOV Solutions
       [email protected]                          [email protected]
http://Mark.Overmeer.net                   http://solutions.overmeer.net