Message134812
| Author |
vinay.sajip |
| Recipients |
giampaolo.rodola, vinay.sajip |
| Date |
2011年04月29日.21:12:29 |
| SpamBayes Score |
6.534142e-05 |
| Marked as misclassified |
No |
| Message-id |
<1304111550.3.0.684224980767.issue11959@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
It seems not possible to use smtpd in certain contexts, because it forces use of global state. For example, I'm looking at implementing a test SMTP server to test logging's SMTPHandler. Neither SMTPServer nor SMTPChannel allow a map to be passed in, forcing use of the global socket_map in asyncore. Both of these classes should accept an optional map argument - the map passed to SMTPServer should be stored in the server instance and passed when creating an SMTPChannel in handle_accepted. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年04月29日 21:12:30 | vinay.sajip | set | recipients:
+ vinay.sajip, giampaolo.rodola |
| 2011年04月29日 21:12:30 | vinay.sajip | set | messageid: <1304111550.3.0.684224980767.issue11959@psf.upfronthosting.co.za> |
| 2011年04月29日 21:12:29 | vinay.sajip | link | issue11959 messages |
| 2011年04月29日 21:12:29 | vinay.sajip | create |
|