mhlib.SubMessage.getaddrlist

SubMessage.getaddrlist(name)

Get a list of addresses from a header.

Retrieves a list of addresses from a header, where each address is a tuple as returned by getaddr(). Scans all named headers, so it works properly with multiple To: or Cc: headers for example.