A monkey patch to send MailHost messages to standard out
Project description
PrintingMailHost
================
This is a hack. :)
This product, when installed, will check if Zope is running in debug mode,
and if so, monkey patch (that is, grab the internals of, squeeze tight, then
rip hard, just like monkeys do) Zope's MailHost class, meaning that *any and
all* uses of a MailHost will be "fixed" so that instead of sending mail, it
prints messages to the standard output.
This is useful if you don't have a local mailhost for testing, or if you
prefer not to spam the crap out of yourself whilst finding out if your bulk
mail script is working.
If Zope is not running in debug mode, it will not install itself. However,
I wouldn't recommend putting it on a production site. You never know what
those monkeys may get up to...
Author
------
Martin Aspeli <optilude@gmx.net>
-- Initial idea, release management
Contributors
------------
Dorneles Tremea <deo@plonesolutions.com>
-- Fixed to work both with old-style and new-style classes. Extended
to also patch SecureMailBase from SecureMailHost, if available.
Changelog
=========
0.2
---
* Initial release
================
This is a hack. :)
This product, when installed, will check if Zope is running in debug mode,
and if so, monkey patch (that is, grab the internals of, squeeze tight, then
rip hard, just like monkeys do) Zope's MailHost class, meaning that *any and
all* uses of a MailHost will be "fixed" so that instead of sending mail, it
prints messages to the standard output.
This is useful if you don't have a local mailhost for testing, or if you
prefer not to spam the crap out of yourself whilst finding out if your bulk
mail script is working.
If Zope is not running in debug mode, it will not install itself. However,
I wouldn't recommend putting it on a production site. You never know what
those monkeys may get up to...
Author
------
Martin Aspeli <optilude@gmx.net>
-- Initial idea, release management
Contributors
------------
Dorneles Tremea <deo@plonesolutions.com>
-- Fixed to work both with old-style and new-style classes. Extended
to also patch SecureMailBase from SecureMailHost, if available.
Changelog
=========
0.2
---
* Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for Products.PrintingMailHost-0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5597e042d8c4e463c2fd6956912c56b66ef5958fd1e5f9979f02cc99996e33be |
|
MD5 | d6d00f955f12f89ffe7a088796461567 |
|
BLAKE2b-256 | c8a816f113b0d912fc1c2ced649b1bb60135ec2892675eb914f5d7d01f3e8d86 |