On Sunday 04 September 2016 00:24:56 Ricardo Signes wrote:
> If we never *store* objects, but only produce them as requested, then
> I think the total needed changes are -- but I'm sure I'll miss
> things -- as follows:
> 
> * allow header_str and header args to Email::MIME->create to include
>   objects, which are immediately asked to encode themselves for
>   storage
> * add header_as_obj that takes a header name and, optionally, a class
>   name and offset (an offset so you can ask for an object of the nth
>   Received header)
> * a registry used by header_as_obj to get a default class name from
>   header name

So lets move. This is implemented in my pull request: 
https://github.com/rjbs/Email-MIME/pull/35

Default class name for header name is retrieved from hash:
Email::MIME::Header::header_to_class_map

Comments and review is welcome!

Reply via email to