Re: rfc822 parser (the elephant has landed)
Barry Warsaw <[email protected]> Fri, 10 Jun 2011 16:47:34 -0400
| Newsgroups | gmane.comp.python.mime.devel |
|---|---|
| Organization | Damn Crazy Followers of the Horn |
| Message-ID | <[email protected]> |
On Jun 09, 2011, at 04:45 PM, Stephen J. Turnbull wrote: >R. David Murray writes: > > > Yeah, it would be really nice if setting (say) 'To' replaced it, but > > setting (say) 'Resent-To' appended. But that way lies chaos :) > >Especially since "Resent-To" (and other Resent-*, as well as trace >headers) needs to be *pre*pended. :) .insert(i, header) probably, where `i` could either (maybe) be an integer or the name of the first header to insert the new header before. >"Enforced", yes, it's out of scope, for several reasons. However, any >given application may know at some early stage that headers are >complete, and want to check policy at that point. So there should be >a mechanism to explicitly check policy conformance, perhaps a >.check_policy() method on Message objects. Then it becomes a question >of whether the policy check should ever be called implicitly, or >always left up to the application. Smart minds think alike. :) -Barry
signature.asc
(application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBCAAGBQJN8oLmAAoJEBJutWOnSwa/t+wP/j1/gwjPkFNKly8WGdv+eYpl GJ5jeGuZielnfRtFVjF9eU+nr0CPupI5Wgb3eDkoYjvSap3BB6obbKtENdQvjo2l eVmNDwpkuGGjwmux08evzkWmXK4SWBd+03/kwCHDYd4JoVHGbo7+ukUKGsbFrAX8 Ays+Rx1/h3OiYqZMysNrOX2wvb353QRkTeP7ULXflwJH8Cdq7qZwJiGnXnHWUA/j uX/ZJV04MyKmRIN8ci1wiztlMiXTGOXKM0VuxoAqFcjKjXqEbXezZc0wP8nOp646 pKDT4KHKW6SSgCL/LKv7Z78mGGloLZrCBmYjhOyi9vgtjlZf8y2j/zlM18fU1Ny6 CGVpsbmexoA2iesuRWBwf1WmLjFdrJW48kQ2KLzDnvpLQ54k1XAwIMx9Bpqo8X8P deDfGqO80BTwofOLirJWPMv+gyuioJgTyn8m30pRHXqrv/Cjiv5ufJm9pxGXEvyl SY8iAvIslNFts8hwCiXrI7qvBdPcRMCn6MP3l+T530a+oDFvPCpGIwfSSGxL1ZAu Ae6PB+zO3mt2D3Q/dlfRTphMX9MY6lv+i6mOXqDOwa8iehCh9tzioBmANNX7rG74 4lAGO+h0vqkKKoTTafOra/6N46b6bG0dl4Y/o10aDh5vFt4Ay1qOca0njmFRIEto Ezw7vENRhTXxx7CCjZgq =5xfo -----END PGP SIGNATURE-----