summaryrefslogtreecommitdiff
path: root/Mailman/pythonlib/smtplib.py (unfollow)
Commit message (Collapse)AuthorFilesLines
1998-07-06Fixed typobwarsaw1-1/+1
1998-07-06RefuseRequest(): Convert to maketext()bwarsaw1-29/+13
1998-07-06SendTextToUser(): Don't propagate removed raw flagbwarsaw1-2/+2
1998-07-06Fixed indentation (so changes look bigger than they really are).bwarsaw2-128/+152
Since there's still problems with locking, I added a little better diagnostic to the one os.unlink() exception I've been getting a lot. This should be removed when fixed.
1998-07-06StampedLogger now comes out of the Mailman.Logging.StampedLoggerbwarsaw5-13/+15
module (we should really create a mail driver similar to the CGI driver).
1998-07-06Moved wrapping/filling to maketext() template generator.bwarsaw1-7/+11
SendTextToUser() no longer has a raw argument and no longer calls wrap() in any way. maketext() has a raw argument, default to zero, which if true skips the call to wrap() on the interpolated text.
1998-07-06Bouncer.HandleBouncingAddress(): Convert to using Utils.maketext() templates.bwarsaw1-48/+46
1998-07-06(Makefile.in): use pattern matching to install all .html and .txtbwarsaw4-5/+37
files, so individual new files don't have to be explicitly added to the TEMPLATES list. (bounce.txt): New template for admin email on excessive bounces (reenable.txt): Sub-template for bounce.txt (refuse.txt): Template for submission refusal email notice
1998-07-02Mention the need for setgid settings in the installation directory.klm1-1/+3
1998-07-02Cosmetic addition of info about the purpose of the REFRACT and TRIESklm1-1/+2
vars.
1998-07-02More provisions to prevent exhausting the processes queue. We do aklm1-5/+27
wait() within the send loop every PAUSE_FREQUENCY users, in order to wait for the deliver process to finish queuing up the messages. Also, the password message text was getting mangled by the word wrapping in SendTextToUser. I added 'raw=1' to the call. (I should say that i really don't think that SendTextToUser should be in the business of wrapping or filling text - i thought Utils.maketext, when deliberately applied, was going to take care of all that? Ah - i bet i'm just behind in my checkouts...)
1998-07-02Added generation of the Mailman/Logging autoconf stuffbwarsaw2-5/+5
1998-07-02Get the StampedLogger out of Mailman.Logging.StampedLoggerbwarsaw1-1/+2
1998-07-02Strip out all logging stuff. This will get taken care of by the CGIbwarsaw1-21/+0
driver.
1998-07-02Removed classes Logger and StampedLogger, into modules in thebwarsaw1-119/+3
Mailman.Logging package
1998-07-02Install Mailman/Logging subdirbwarsaw1-1/+1
1998-07-02Use the new Mailman.Logging package to provide better logging onbwarsaw1-20/+23
errors. Now all tracebacks get sent to the user as HTML *and* logged to logs/error, although the format of the output is slightly different (not HTML in the latter case). Some rearranging of code, simplification, etc.
1998-07-02Added Logging subdirbwarsaw1-2/+1
1998-07-02Subpackage containing all logging classes.bwarsaw7-0/+324
StampedLogger is carried over from before, with some changes. Logger used to be in Mailman.Utils MultiLogger is new, it is used to log identical message to a list of loggers supporting the write interface of file-like objects (e.g. a Logger or sys.__stdout__).
1998-07-01[Other developers - please take a look at these refinements to theklm1-58/+112
deliver script. Deliver is all important, and i don't want to screw it up. I've tested it a bit, but would like your scrutiny before i put something like it in production!] I implemented a finite loop around all os.fork()s in the script, to retry every 15 seconds, up to five times, when error.EAGAIN (resource temporarily unavailable) is hit. In the process i've encapsulated the script code in functions, including a function "forker()" (not mama_forker() - i showed some restraint:), which takes care of the EAGAIN looping. Here's a cron report on the error the last time mailpasswds was run: Your "cron" job on parrot /usr/local/bin/python /home/mailman/mailman/cron/mailpasswds produced the following output: Here's a sample of the traceback that Traceback (innermost last): File "/home/mailman/mailman/cron/mailpasswds", line 117, in ? main() File "/home/mailman/mailman/cron/mailpasswds", line 114, in main MailAllPasswords(list, users) File "/home/mailman/mailman/cron/mailpasswds", line 81, in MailAllPasswords list.SendTextToUser(subject = subj, File "/home/mailman/mailman/modules/mm_deliver.py", line 105, in SendTextToUser mm_utils.SendTextToUser(subject, text, recipient, sender, File "/home/mailman/mailman/modules/mm_utils.py", line 75, in SendTextToUser DeliverToUser(msg, recipient, add_headers=add_headers) File "/home/mailman/mailman/modules/mm_utils.py", line 89, in DeliverToUser if os.fork(): os.error: (11, 'Resource temporarily unavailable')
1998-07-01.InitTempVars(): Use the default templates for anonymous lists.klm1-2/+5
(Previously, mailman would crash when InitTempVars() was trying to construct the _template_dir setting by concatenating the TEMPLATE_DIR with the None setting for self._internal_name.)
1998-07-01Maillist: Upon investigating why self._mime_separator was neverklm1-9/+15
initted i discovered that the TempVars routines were not being properly invoked. So i've created an InitTempVars method which is responsible for: - setting several of the '_' underscore prefixed temp vars in that were previously in __init__() - calling the InitTempVars() routines present in some of the base classes - currently HTMLFormatter and Digester. I had to make sure that the check for a specified name was properly respected (another thing fixed - anonymous links were broken, so "l = MailList.MailList()" wouldn't work), and convey the lock status in properly. John, please check my logic - i was trying to infer what you were intending with the TempVars stuff, from what seemed to be an incompletely implemented rationale. Anyway, the crashes from the lack of self._mime_separator and from trying to instantiate without a name are now alleviated.
1998-07-01Digester.InitTempVars(): Add setting of self._mime_separator here,klm1-0/+3
since it's really the purview of Digester.
1998-07-01main(): corrected misplaced 'else' clause in password checking logic -klm1-5/+5
it was causing a password failure after a user password was satisfactorily verified.
1998-06-25Eric Raymond added support for ESMTP protocol and corrected some typosguido1-33/+113
in comments and doc strings.
1998-06-24I removed a potential race condition, if two files decide to time-outviega2-26/+34
a lock at the same time. This *may* have been Barry's problem. It should at least fix it (the os.error one), even if I'm not 100% sure of how it is happening.
1998-06-23Trivial nitbwarsaw1-1/+2
1998-06-23Add more disgusting global variable references, just to avoidbwarsaw1-1/+17
NameErrors.
1998-06-23MailCommandHandler.AddApprovalMsg(): use the Utils.maketext()bwarsaw1-18/+11
interface. MailCommandHandler.ProcessConfirmCmd(): Near the bottom of the method, where self.AddRequest() is called on a closed list, wrap the call in a try/except so as to catch the MMNeedApproval exception that gets raised. John, please verify that I'm doing this right.
1998-06-23Text for when confirmation approval is required.bwarsaw2-1/+16
1998-06-22Added a note about Tim O'Malley and Cookie.pybwarsaw1-1/+8
1998-06-22Updated the comments, don't need to import osbwarsaw1-4/+0
1998-06-22Moved from CONTRIBUTORS. Slightly reformatted, added Mclay (otherbwarsaw1-6/+16
names should probably be added eventually too).