summaryrefslogtreecommitdiff
path: root/Mailman/pythonlib/StringIO.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2002-02-12run_main(): Because the site-packages path hacking no longer happensbwarsaw1-6/+2
in Defaults.py, we need to arrange for this script to import paths.py to pick up the correct site-packages prefixed sys.path. Because we do this, we can delete the sys.path.insert() call, which was redundant.
2002-02-12Move the path hacking addition of the site-packages directory to herebwarsaw1-2/+13
from Defaults.py.in. The problem is that even for Python 2.2, we need site-packages to appear /before/ the standard library so that we can pick up the newer version of the email package. Defaults.py/mm_cfg.py is usually imported too late in the game to work, but paths.py is about right (although we'll have to audit the command line scripts to make sure they import paths.py before they import email.*).
2002-02-12Move the path hacking addition of the site-packages directory to thebwarsaw1-10/+1
paths.py.in file. The problem is that even for Python 2.2, we need site-packages to appear /before/ the standard library so that we can pick up the newer version of the email package. Defaults.py/mm_cfg.py is usually imported to late in the game to work, but paths.py is about right (although we'll have to audit the command line scripts to make sure they import paths.py before they import email.*).
2002-02-12Czech updates from Dan Ohnesorg.bwarsaw18-566/+817
2002-02-11main(): First, set the global language to the list's preferredbwarsaw2-13/+21
language for the email message that's sent out. Then do the translation and UserNotification generation, then reset the language context and send the message. Patch by Ben Gertzfield, modified by Barry.
2002-02-11SendExplanation(), main(): First, set the global language to thebwarsaw1-10/+22
list's preferred language for the email message that's sent out. Then do the translation and UserNotification generation, then reset the language context and send the message. Patch by Ben Gertzfield, modified by Barry.
2002-02-11create(): When creating the UserNotification message object, pass inbwarsaw1-2/+2
the language that the message should be in. This allows us to get the character set and header encodings right. Patch by Ben Gertzfield.
2002-02-11process(), hold_for_approval(), do_discard(): When creating thebwarsaw4-10/+7
UserNotification message object, pass in the language that the message should be in. This allows us to get the character set and header encodings right. Patch by Ben Gertzfield.
2002-02-11Update bundled email package to 0.97 for support of multibytebwarsaw2-0/+0
character sets.
2002-02-11process_request(): When creating the UserNotification message object,bwarsaw1-2/+2
pass in the language that the message should be in. This allows us to get the character set and header encodings right. Patch by Ben Gertzfield.
2002-02-11InitVars(), ArchiveMail(): The start of some cleanups flagged bybwarsaw1-4/+0
Pychecker. Removed some unused local variables.
2002-02-11ParseMailCommands(): When creating the UserNotification messagebwarsaw1-10/+4
object, pass in the language that the message should be in. This allows us to get the character set and header encodings right. Patch by Ben Gertzfield, with modifications by Barry.
2002-02-11__handlepost(), HoldSubscription(): When creating the UserNotificationbwarsaw1-11/+20
message object, pass in the language that the message should be in. This allows us to get the character set and header encodings right. Note that in the former method, we try to set the language to the forwarding address, if it is a member of the list. If not, the list's preferred language will be used. Patch by Ben Gertzfield, with modifications by Barry.
2002-02-11SendSubscribeAck(), SendUnsubscribeAck(), MailUserPassword(): Whenbwarsaw1-4/+5
creating the UserNotification message object, pass in the language that the message should be in. This allows us to get the character set and header encodings right. Patch by Ben Gertzfield.
2002-02-11__sendAdminBounceNotice(), sendNextNotification(), BounceMessage():bwarsaw1-5/+7
When creating the UserNotification message object, pass in the language that the message should be in. This allows us to get the character set and header encodings right. Patch by Ben Gertzfield.
2002-02-11AddMember(), ApprovedAddMember(), ApprovedDeleteMember(): Whenbwarsaw1-6/+3
creating the UserNotification message object, pass in the language that the message should be in. This allows us to get the character set and header encodings right. Patch by Ben Gertzfield.
2002-02-11UserNotification.__init__(): Add a `lang' optional argument so thatbwarsaw1-3/+10
charset information can be propagated into the headers, if necessary. Use the new mimelib/email package's Charset and Header classes. Patch by Ben Gertzfield. Requires email 0.97.
2002-02-09Massive simplification to avoid making all the BerkeleyDB callsbwarsaw1-155/+62
ourselves. Given the incompatible state of BDB libraries on most modern Linux distros, and given the sorry state of affairs in Python's BDB wrappers, this is the only sensible solution. Essentially, I've kept all the plain text (data/aliases and data/virtual-mailman) update code, and then we just call postalias and postmap on the files to get the .db counterparts regenerated. This should be foolproof since only Postfix itself needs to use consistent libraries -- attempting to match Postfix and Python would be a nightmare. I don't believe we're opening ourselves up to any vulnerabilities by using os.system() in this case. Also: all functions which are not meant to be part of the public MTA interface are now prefixed by a single underscore. I'm too tired to give detailed changes...
2002-02-09POSTFIX_ALIAS_CMD, POSTFIX_MAP_CMD: External commands for convertingbwarsaw1-0/+7
the plain text aliases and virtual-mailman files to their .db counterparts. This will be /much/ less fragile than direct BerkeleyDB hacking. See accompanying change to Postfix.py.
2002-02-09test_remove_member_clears(): New test to make sure that removing abwarsaw1-1/+45
member clears the bounce and delivery status information for a member. test_bounce_info(): Make sure that the case invariants are upheld.
2002-02-09setBounceInfo(): Dan Mick recognized that set/getBounceInfo() weren'tbwarsaw1-0/+1
operating case insensitively w.r.t. the member key. Coerce the member argument to lower case before it's used.
2002-02-08Latest Spanish updates from Juan Carlos Rey Anaya.bwarsaw2-633/+352
2002-02-06Updated norwegian binary catalog.avalon1-0/+0
2002-02-06Updated norwegian catalog.avalon1-44/+67
2002-02-06French catalogs updates.wilane2-76/+128
2002-02-05GetStandardReplacements(): Be sure to pass the lang argument to thebwarsaw1-2/+2
GetLangSelectBox() call for the <mm-list-langs> replacement, otherwise a user's option page will always reset the user's language to the list's preferred language.
2002-02-05removeMember(): Untested patch to clean up bounce_info andbwarsaw1-2/+1
delivery_status attributes when deleting a member. Don't call setBounceInfo() directly.
2002-02-05sendNextNotification(): Remove the call to setBounceInfo() sincebwarsaw1-1/+0
removeMember() -- which is eventually called by ApprovedDeleteMember() should to any necessary cleanup of the bounce info. Found by Dan Mick.
2002-02-05Japanese updates from Tokio Kikuchibwarsaw10-327/+354
2002-02-05Spanish updates from Juan Carlos Rey Anayabwarsaw5-986/+1846
2002-02-03Newly generated mailman.pot template file. Merged w/ languagebwarsaw1-0/+15
catalogs and .mo files generated. Spanish and German translators take note: there were a bunch of duplicate entries which I had to manually delete before msgfmt would complete successfully. Please verify!
2002-02-03Newly generated mailman.pot template file. Merged w/ languagebwarsaw19-7420/+9740
catalogs and .mo files generated. Spanish and German translators take note: there were a bunch of duplicate entries which I had to manually delete before msgfmt would complete successfully. Please verify!
2002-02-03update from Dmitry Fedoseevmss1-21/+26
2002-02-02main(): Several fixes:bwarsaw1-5/+15
- When Errors.EmailAddressError is raised, the translatable string in the print statement was illegal. - If an email address showed up twice in the sync file, a dry-run would have shown that address to be addable, even if it was already a member of the list. - If there were legacy illegal address in the user database (e.g. aperson@@dom.ain), then ApprovedDeleteMember() would fail on it with an MMNoSuchUserError, because parseaddr() in the former method would return some bogus address like "aperson@". In that case, use a lower level routine to delete the bogus record from the member database.
2002-02-01Slightly better contrast to the letters.bwarsaw1-0/+0
2002-01-31note to myself: ispell is a friend of minemss3-5/+5
2002-01-31made sure the FILES variable gets the proper valuemss1-1/+1
2002-01-31put the correct contact informationmss1-39/+43
2002-01-31fixed the install target; added two informational targets; got rid of ↵mss1-2/+10
unnecessary stuff on the screen
2002-01-31added a simple commentmss1-0/+2
2002-01-31Typo fix.bwarsaw1-1/+1
2002-01-30Sigh. Copyright years.bwarsaw1-1/+1
2002-01-30install: Install the misc/mailman startup script into $prefix/scripts.bwarsaw1-1/+3