Re: Email::Address::XS

[email protected] (Ricardo Signes) Mon, 22 Aug 2016 22:34:39 -0400
Newsgroups perl.pep
Message-ID <20160823023439.GB25768@debian>
--TRYliJ5NKNqkz5bu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* [email protected] [2016-08-20T06:01:16]
> Email::MIME is module which automatically do any MIME encoding/decoding=
=20
> without user interaction, so that decoding must be done automatically=20
> and without such "upgrade" function.

So do you mean that whenever someone reads the header with a specific metho=
d,
the header is parsed just-in-time?

If so, this seems like something very easy to add in an Email::MIME subclas=
s to
show it off.

Of course, it's also easy to take the hypothetical code behind
"upgrade_headers($email)" to do something just like this, on a per-known-he=
ader
basis.

> I do not want to do that decode manually or call some "upgrade" function=
=20
> which you propose... Reading one email header should not change internal=
=20
> email structure.

I never suggested that anything was changed by virtue of being read, but ra=
ther
that one could explictly upgrade structures if desired.

> Also it must be possible to get either named groups from Original-Cc=20
> header or only list of addresses. And I think with your proposal API it=
=20
> is not possible. You would need to call some "downgrade" function and=20
> then "upgrade" it to another object or so...

Why would this not be possible?  There is some object storing the mailboxes
structure, and it provides methods that answer the questions one needs to a=
sk.

--=20
rjbs

--TRYliJ5NKNqkz5bu
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJXu7Y/AAoJEOYby6cMccU5ASgH/0gxQIxlUOVzD6kyMynN6XTL
i7I3Aoz1ASliUIm/pd7iqzZkvpBjGnREMAIAXFAgnvcPpl7x9umYKHuKCIoB9kzx
8m7Y8QgTrzAGR2PTTeMwU/tZTmjiACnnTQ6NHPY+TB9/jGFqg6yBHcYsJ0J0CrM3
l6RCzNbRhCce9imKQxhH52AHDnC9GoFwFnHAnl7s/9A1gQBpn7xxwtrIdCp3XmCD
BMqJVUX0+5HavwhJU1o3ZoQSxsUUSssMRyN09cj7tNUei5rBBdGOKvZ6ak/HKoBA
zQi4BqZ4GM4Xt9ewElceiTfhjMkB1X1PUidbdDSRyY8Dxn3jWNQXFysHDRqDIpU=
=N4z4
-----END PGP SIGNATURE-----

--TRYliJ5NKNqkz5bu--