sebbASF commented on issue #162:
URL: 
https://github.com/apache/incubator-ponymail-foal/issues/162#issuecomment-980656074


   Note: unless the compat32 policy is used, the values returned from msg.get() 
are already instances of BaseHeader.
   
   However the code does not yet use the additional features.
   For example one can do something like this:
   
   ```
   if isinstance(val, email.headerregistry.AddressHeader):
       msg_metadata[key] = []
       for addr in val.addresses:
           msg_metadata[key].append(str(addr))
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to