summaryrefslogtreecommitdiff
path: root/Mailman/pythonlib/StringIO.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2000-08-23process(): Use `append' instead of `extend' to add to faildrecips.bwarsaw1-1/+1
Closes SF bug #110731.
2000-08-22If we're running under Python 2.0, we can grab much fasterbwarsaw1-18/+25
implementations of hexlify and unhexlify from the binascii module.
2000-08-07process(): Accepting, and closing, SF bug #110535, by Dan Mick.bwarsaw1-1/+1
2000-08-06Include @CFLAGS@ on CFLAGS def line so this worksbwarsaw2-2/+2
CFLAGS=-Wall ./configure --stuff closes SF bug #110906
2000-08-05__save(): Improved robustness in the face of disk-full or otherbwarsaw1-24/+18
IOErrors. E.g. the marshal module doesn't actually check for write() errors, so we dump the marshal to the string and write it in one fell swoop using the file object's write() method. Thanks to GvR for reviewing.
2000-08-03main(): Make sure mlist.web_page_url ends in a trailing slash bybwarsaw1-0/+1
calling mlist.CheckValues() after the options have been changed (but before the values are printed).
2000-08-03GetConfigInfo(): Explain that `web_page_url' must end in a singlebwarsaw1-1/+1
slash.
2000-08-02Don Porter points out that this page should steer people tobwarsaw1-2/+8
SourceForge instead of Jitterbug on py.org.
2000-08-02Updating for b5bwarsaw2-2/+13
2000-08-02Shooda checked this in when I check in TODO.bwarsaw1-0/+1
2000-08-02Updating contributors.bwarsaw1-3/+6
2000-08-02main(): Don't include newline in Usage: error message; this is addedbwarsaw1-1/+1
by fatal() automatically.
2000-08-02fatal(): Close SF bug #110401 and potential local security hole bybwarsaw1-2/+2
formatting user supplied input. Also added newlines to both stderr and syslog output for more consistent formatting. Reported by Stan Bubrouski.
2000-08-02process(): Local patch for SF bug# 109220; if the autoresponse textbwarsaw1-1/+10
has a colon in the first line, prepend a blank line so that rfc822.Message doesn't get confused about headers vs. body.
2000-08-02Updating to the latest Python CVS version of this file. This fixesbwarsaw1-19/+19
the call to socket.connect() in __init__() to be compatible with Python 1.6/2.0.
2000-08-02OutgoingMessage.__init__(): Reversing patch 1.35 since this breaks thebwarsaw1-12/+4
contract with rfc822.Message.__init__() and also breaks news->mail gatewaying. A different patch will be applied to fix SF bug #109220.
2000-08-02FormatMembershipOptions(): Missed one use of GetScriptURL() - found bybwarsaw1-1/+1
Dan.
2000-08-01main(): GetAbsoluteScriptURL() => GetScriptURL(..., absolute=1)bwarsaw1-1/+1
2000-08-01process(): GetAbsoluteScriptURL() => GetScriptURL(..., absolute=1)bwarsaw1-1/+1
2000-08-01Cleanups to fix relative/absolute script url calculation in responsebwarsaw1-5/+3
to SF Bug #110753. Specifically, FormatListinfoOverview(): Use Utils.ScriptURL() instead of GetNestingLevel(), and GetScriptURL() instead of GetRelativeScriptURL().
2000-08-01Cleanups to fix relative/absolute script url calculation in responsebwarsaw1-1/+1
to SF Bug #110753. Specifically, optionslinks() Fix usage of GetOptionsURL() for new interface.
2000-08-01Cleanups to fix relative/absolute script url calculation in responsebwarsaw1-4/+3
to SF Bug #110753. Specifically, main(), FormatHTML(): Use GetScriptURL() instead of GetRelativeScriptURL().
2000-08-01Cleanups to fix relative/absolute script url calculation in responsebwarsaw1-3/+3
to SF Bug #110753. Specifically, PrintRequests(): Use Utils.ScriptURL() instead of GetNestingLevel(), and GetScriptURL() instead of GetRelativeScriptURL(). Also fix usage of GetOptionsURL() for new interface.
2000-08-01Cleanups to fix relative/absolute script url calculation in responsebwarsaw1-17/+14
to SF Bug #110753. Specifically, FormatAdminOverview(), FormatConfiguration(), FormatOptionHelp(), GetItemGuiDescr(): Use Utils.ScriptURL() instead of GetNestingLevel(), and GetScriptURL() instead of GetRelativeScriptURL(). Also fix usage of GetOptionsURL() for new interface.
2000-08-01Digest.TemplateRefs(): GetAbsoluteScriptURL() => GetScriptURL(..., absolute=1)bwarsaw1-1/+1
2000-08-01Administrivia.rejection_notice(), hold_for_approval():bwarsaw1-2/+2
GetAbsoluteScriptURL() => GetScriptURL(..., absolute=1)
2000-08-01main(): GetAbsoluteScriptURL() => GetScriptURL(..., absolute=1)bwarsaw2-3/+3
2000-08-01SendExplanation(): GetAbsoluteScriptURL() => GetScriptURL(..., absolute=1)bwarsaw1-1/+1
2000-08-01InitVars(): Use self.internal_name()bwarsaw1-7/+5
GetMailmanFooter(), FormatUsers(), FormatFormStart(): GetRelativeScriptURL() => GetScriptURL()
2000-08-01SendSubscribeAck(), MailUserPassword() => GetScriptURL(...,bwarsaw1-3/+3
absolute=1)
2000-08-01HandleBouncingAddress(): GetAbsoluteScriptURL() => GetScriptURL(...,bwarsaw1-1/+1
absolute=1)
2000-08-01ProcessInfoCmd(), ProcessHelpCmd(): GetAbsoluteScriptURL() =>bwarsaw1-2/+2
GetScriptURL(..., absolute=1)
2000-08-01HoldSubscription(): GetAbsoluteScriptURL() => GetScriptURL(..., absolute=1)bwarsaw1-1/+1
2000-08-01GetAbsoluteScriptURL() => GetScriptURL(..., absolute=1)bwarsaw1-5/+5
Also, remove the link to Pipermail on Starship. This is way out of date.
2000-08-01GetRelativeScriptURL() => GetScriptURL()bwarsaw1-1/+1
2000-08-01Massive cleanup to fix relative/absolute script url calculation inbwarsaw1-25/+6
response to SF Bug #110753. Specifically, GetScriptURL(): Interface change; this now takes an `absolute' flag defaulting to always use relative urls. This is now essentially just a wrapper around Utils.ScriptURL() except that it tacks on the list's name. GetOptionsURL(): Same interface change. GetAbsoluteScriptURL(), GetAbsoluteOptionsURL(): Removed. All uses changed to GetScriptURL().
2000-08-01Massive cleanup to fix relative/absolute script url calculation inbwarsaw1-12/+23
response to SF Bug #110753. Specifically, GetNestingLevel(): removed ScriptURL(): New utility function to calculate relative and absolute urls. The basic approach is this: 1. figure out where we are by using REQUEST_URI or SCRIPTNAME+PATH_INFO if that isn't defined in our environment. 2. figure out what the Mailman base url is by taking the `path' component of a urlparse() of the list's web_page_url configvar or DEFAULT_URL if that isn't provided in the arguments. 3. calculate what the relative path is from where we are to baseurl; express this as a string of ../'s 4. tack on the relative url to where we want to go, i.e. the target Elaborations: Optional `absolute' if set always calculates the absolute url as web_page_url/DEFAULT_URL + target. absolute should only be set when generating urls for emails. mm_cfg.CGIEXT is always tacked onto the end, meaning target is supposed to be just the script name and nothing else (anything else should be concatenated onto the return value of this function).
2000-08-01process(): Don't bomb out if there's no From: header.bwarsaw1-1/+1
2000-07-27do_output(): Hrvoje Niksic rightly points out that we need tobwarsaw1-1/+7
special-case `subscribe_policy' when ALLOW_OPEN_SUBSCRIBE is false. Yuk.
2000-07-27HasExplicitDest(): Integrating a patch from Gergely Madarasz frombwarsaw1-1/+1
20-Jun-2000; Resent-CC: should also be considered an explicit destination.
2000-07-27Added yet another item tha twould be neat to have!bwarsaw1-0/+2
2000-07-27Bumping to 2.0beta5.bwarsaw1-2/+2
2000-07-27main(): Fixed typo in syslog() call.bwarsaw1-1/+1
2000-07-27process(): Because this module modifies the message object, set thebwarsaw3-0/+10
_dirty flag so the text will be forced to disk in the event of an Enqueue().
2000-07-27Enqueue(): Watch for the _dirty flag in the msgdata dictionary. Thisbwarsaw1-3/+6
forces a write of the message text back to disk, even if it already exists. This is used when the message has been changed (e.g. new or changed header, etc.).
2000-07-26process(): If there's a bogus template for the header or footer,bwarsaw1-3/+13
causing the dictionary interpolation to fail, log this to logs/error and insert a big red warning sign instead.
2000-07-26main(): Unmarshal the .db file before creating the Message object.bwarsaw1-4/+5
Pass in the `filebase' value to the Message constructor to make sure the message uses the same hash value as before.
2000-07-26One more try...bwarsaw1-5/+8
Enqueue(): Only calculate a new filebase (SHA hash) if the object wasn't assigned one in its constructor. Go back to including the current float time in the hash input. Message.__init__(): Take an optional `filebase' argument which can be restored from an enqueued message. This guarantees that a message, once assigned a hash value for its filebase, continues to use that filebase for its entire life.
2000-07-26QFILE_SCHEMA_VERSION: bump to 2.bwarsaw1-1/+1
2000-07-26Enqueue(): Oops, you can't include the current time since the hashingbwarsaw1-1/+1
algorithm needs to be reproducible.