summaryrefslogtreecommitdiff
path: root/Mailman/smtplib.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* No longer necessary; we've integrated with the standard Python 1.5.2bwarsaw1998-12-221-169/+0
| | | | version, which sits in the pythonlib subdirectory anyway.
* Fixed bug making smtplib change 4XX and 5XX errors to protocol errors.cotton1998-11-091-2/+2
| | | | scott
* Removed a debugging print.klm1998-11-011-1/+1
|
* Incorporated DSN provision, so that receiving hosts that support DSNklm1998-11-011-6/+28
| | | | | | | | | | | | | | | | | | | | | | | | can be instructed to send delivery-status-notices only when the delivery fails, not for intermediate warnings. This is modelled after the patches dan ohnesorg submitted quite a while back - but they really were pretty fouled up, particularly when the receiving hosts doesn't support dsn, so it's really rewritten. (And only around 15 lines total change, mostly different than the original patch.) Once we get bounce handling more able to adapt to various formats, we might want to reenable warnings to help track unreachability status. Until then they are a nuisance. And we should have shifted over to the python-distribution smtplib.py well before then - as of 1.5.2 it (will/does) have esmtp support of a sort - and we shouldn't be dabbling in this garbage. And yes, somebody slap my hand for adding a new feature - it'll hurt so good if it means eliminating the goddamn warning notices, the plague of large list administrators... (I really wanted to get this working before midnight - when passwords go out, to hundreds of python.org mailman maillist subscribers!)
* SmtpConnection.send(): More provision for when a local address isklm1998-07-231-7/+27
| | | | | | | | | | | | | | | | | | recognized as bad and refused immediately (rather than being queued up, as happens for any offsite recipients). In particular, had to detect whether all recipients in the batch failed, and then just return - otherwise the DATA command would fail (no valid recipients), and raise a disruptive exception. It's worth noting that no bounce is generated for invalid local recipients, which means now way to disable or even notice that they're bad. This should be rectified at some point, but offhand i'm not sure the right way, other than by special casing local deliveries. Anyway, i left an XXX note to sorta this effect in the code. And finally - it looks like the "official" python smtplib already does the right kinds of thing regarding bad recipients, which makes me feel good about merging with it.
* Added a LogStdErr() call to enable error logging from this module allklm1998-07-231-10/+2
| | | | the time.
* .getresp(): Moved setting of self.lastresp to before the impunityklm1998-07-171-5/+9
| | | | | | return - despite the fact that lastresp is not apparently used anywhere, i'm not ready to just yank it, and so it might as well be in the right place.
* In all multiple-destination sends, *ignore* the MTA response whenklm1998-07-141-10/+15
| | | | | we're specifying the recipients. This way, one bad one in a batch will not clobber the whole send...
* Made Scott's fixes so that angle brackets are given when required (inviega1998-06-121-3/+3
| | | | RCPT and MAIL commands).
* I must have missed checking this in yesterday. I made it so theviega1998-05-301-3/+8
| | | | recipients could be a string or a list of strings...
* Fixed a typo in the zipcode.viega1998-05-261-1/+1
|
* Added copyright notices to all source files where I am legally entitled to ↵viega1998-05-251-0/+17
| | | | | | | do so. Added a copy of the GNU GPL. Added information about mailman-users in README, and reworded some text in there (made the credits less verbose... perhaps they should move to a credits file?)
* Send messages by connecting directly to port 25 and talking SMTP toklm1998-04-131-0/+104
whatever mail delivery agent is there.