summaryrefslogtreecommitdiff
path: root/Mailman (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Another instance of mixing unicode with 8-bit-dirty strings. Since emailtwouters2003-03-201-3/+9
| | | | | will assume it's 8-bit encoded to the passed-in character set, convert unicode objects to that encoding.
* Breaking a lock, or finding other irregularities (like incorrect linktwouters2003-03-201-10/+12
| | | | | | counts) are pretty damned important, we should always log them. __writelog() now takes an 'important' argument, and writes to the logfile even if it wasn't requested.
* If a message is being auto-responded to, but the subject of it containstwouters2003-03-201-1/+2
| | | | | non-ASCII data, lets not make email.Header.Header barf on it; use 'replace' as the unicode error strategy (this requires email-2.5b1.)
* Fix another of Peer's annoying bugs: somehow his next_request_id ended uptwouters2003-03-201-1/+3
| | | | | lower than the highest entry in the list config.db, so the assertion was being triggered. We can just deal with the problem instead.
* Whitespace and copyright years.bwarsaw2003-03-191-4/+4
|
* Fixing atwo more NotLockedError and TimeOutError like thomas@xs4all.nl said. :-)pheinlein2003-03-191-3/+3
|
* Relieving myself on the hydrant before Barry wakes up.twouters2003-03-191-4/+4
|
* Typo fix: Errors.MMListError rather than just MMListError.twouters2003-03-191-1/+1
|
* Fix one of Peer's problems: get_payload can return a list or a string, buttwouters2003-03-191-1/+6
| | | | this bounce handler was only expecting a string.
* process(): Catch HostileSubscriptionError and return an error message.bwarsaw2003-03-161-0/+4
| | | | Closes SF bug # 703941 by Stuart Bishop, who also suggested the basic fix.
* subscription_confirm(): Catch HostileSubscriptionError and display anbwarsaw2003-03-161-0/+5
| | | | | | error message. Closes SF bug # 703941 by Stuart Bishop, who also suggested the basic fix.
* InviteNewMember(): Set the .invitation hack to the name of the listbwarsaw2003-03-161-4/+18
| | | | | | | | | | being invited to, in order to prevent cross-list invitation confirmation attacks. ProcessConfirmation(): Check that the .invitation attribute matches the name of the list confirming to. Closes SF bug # 703941 by Stuart Bishop, who also suggested the basic fix.
* HostileSubscriptionError: New exception used to signal an inviteebwarsaw2003-03-161-4/+11
| | | | attempting to confirm to a different list.
* SendHostileSubscriptionNotice(): When someone is invited to a mailingbwarsaw2003-03-161-5/+51
| | | | | | | | | list but attempts to confirm to a different list, we want to disallow this and send notifications to the owners of both attacked lists. Closes SF bug # 703941 by Stuart Bishop. Also True/False where appropriate.
* Use True/False where appropriate (so much cleaner!)bwarsaw2003-03-131-14/+26
| | | | | | | | | | | _dispose(): Add another key to the msg metadata, deliver_after. If a temporary failure occurs, this key will hold the time in epoch-seconds after which we can retry delivery. This stops us from retrying every second as reported in SF bug # 699900. Default is to retry once per hour (see Defaults.py.in). Also, use copy.deepcopy() instead of converting the message to a string and re-parsing it.
* DELIVERY_RETRY_WAIT: New variable which specifies how long thebwarsaw2003-03-131-0/+3
| | | | | outgoing qrunner should wait before it retries a tempfailure delivery.
* _(): Encode any Unicode values in the interpolation dictionary backbwarsaw2003-03-121-4/+15
| | | | | | | | | into encoded 8-bit strings. Returning Unicode from here caused too much breakage, so we go in the other direction. Eventually, Mailman should use Unicode for everything (maybe). This should fix (one of) Peer's problems, and maybe the one recently reported by Dan Buchmann.
* Whitespace normalization.bwarsaw2003-03-121-6/+4
|
* Another simplematch, this one for another demon.co.uk format. Partly closestwouters2003-03-121-1/+5
| | | | SF patch #534297, demon.co.uk and another bounce handler, by Martin Pool.
* Explicitly add another Postfix-lookalike contender, 'SMTP_Gateway'. Closestwouters2003-03-121-4/+5
| | | | SF patch #521124, Bouncer for SMTP_Gateway, by Martin Pool.
* Handle letters (e.g. as in "b1") in email.__version__bwarsaw2003-03-121-5/+7
|
* When receiving an empty mail (no results and no unprocessed lines, buttwouters2003-03-111-0/+6
| | | | | | possibly 'ignored' lines, if a lot of 'em were blank) on a command-handler address, inform the user that the mail was empty, and how to get help. Based on SF patch #522080, Respond sensibly to blank -request email, by Seb Wills.
* Copyright yearsbwarsaw2003-03-111-1/+1
|
* Add the email address just subscribed to the variables usable intwouters2003-03-111-0/+1
| | | | | | | | subscribeack.txt, as 'user' (like userpass.txt already has.) This allows you to write subscribeack.txt's that go like: You subscribed using the email address %(user)s. If you wish to change this, please visit ... [etc]
* Update copyright yearsbwarsaw2003-03-1110-10/+10
|
* SF patch #683906, add $DESTDIR to install target, by Ademar de Souza Reistwouters2003-03-1110-15/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Jr, after much checking and rechecking (and some massaging) by me. Checking in now before I fall asleep and forget what all this was for. This patch adds the ability to 'make DESTDIR=/some/dir/tree install' that doesn't influence the paths stored in e.g. Defaults.py at all, which is of good use for various package managers. It is not all that package managers must do, however! Running make install with DESTDIR set means bin/update is never run, and mm_cfg.py is always written; package managers should make sure the appropriate post-installation is done, and that mm_cfg.py is treated as a config file. This patch inadvertently fixes some bogus whitespace: 8-spaces where surrounding code used tabs. The difference was harmless because the 8-spaces were used inside shell-continued-oneliners, but it is confusing and could lead to future harm. I'm too tired to make those two or three changes in a separate checkin, sorry. This patch also assumes the various packages that are installed using distutils do not record (or rather, use) their installation paths anywhere, but this seems to hold true at least for the moment. Also, I've done so many slow cvs diff's, I'm wondering when we'll switch to Subversion. Unfortunately, I've also done so many 'cvs diff -c > file; patch -p0 -R < file's to switch back and forth between patches and change sets, I'm wondering when we'll switch to Aegis as well. :-P
* whitespace normalizationbwarsaw2003-03-101-3/+3
|
* copyright yearsbwarsaw2003-03-101-1/+1
|
* Add Message-Id to (some) logmessages. SF patch #673294, Add message-id totwouters2003-03-102-3/+5
| | | | more log messages, minus an i18nization of 'n/a'.
* Typo fix in documentation. Closes SF patch #700538, Small typo intwouters2003-03-101-1/+1
| | | | | | Mailman/cmd_confirm.py (but doesn't really use it :) 2.1 backport candidate.
* _badchars: Do not allow email addresses that have 8-bit characters inbwarsaw2003-03-061-1/+1
| | | | them. Note this does /not/ check the realnames, just the addresses.
* RFC 3464 obsoletes 1894 for the DSN standard.bwarsaw2003-03-021-5/+9
|
* __init__(): Don't call out to extend.py if name is None. This will bebwarsaw2003-02-241-7/+9
| | | | | the case when creating the mailing list, in which case fullpath() will be None so we won't be able to locate the list directory.
* Application of SF patch # 690448 by Tokio Kikuchi, closing SF bug #bwarsaw2003-02-241-5/+15
| | | | | | | | | | | | | 677668. Specifically, ApprovedAddMember(): Make sure the admin notification is i18n safe by temporarily setting the language to the list's preferred language, and str-ifying the full name to the list's language, replacing any wacky characters. :) DeleteMember(): Set admin_notify default value to None instead of 0, so that the list's admin_notify_mchanges takes precedence in most cases.
* __init__(): Call the extension mechanism before attempting to lock thebwarsaw2003-02-241-13/+13
| | | | database.
* prefix_subject(): Capture the no-subject header before we decode it.bwarsaw2003-02-231-2/+2
|
* intermediatebwarsaw2003-02-201-6/+5
|
* A MemberAdaptor based on BerkeleyDB and PyBSDDB.bwarsaw2003-02-201-0/+639
|
* getMemberLanguage(): Check the language retrieved from the member'sbwarsaw2003-02-201-4/+7
| | | | | | | | | | record and if it isn't in the mailing list's list of available languages, return the list's preferred language. This should go a long way towards fixing problems where a user's preferred language is disabled. addNewMember(): Use a slightly more efficient check of the address's membership.
* There's no such error as NotImplemented.bwarsaw2003-02-201-33/+32
|
* change_options(): Use digest_is_default for the default massbwarsaw2003-02-111-1/+1
| | | | subscription delivery mode. Patch by Todd (Freedom Lover).
* Bump version number.bwarsaw2003-02-111-2/+2
|
* Whitespace normalizationbwarsaw2003-02-071-6/+6
|
* Fixed the "unpack tuple of wrong size" bug when moving a MM2.0 list tobwarsaw2003-02-071-19/+25
| | | | | | | | MM2.1. Specifically, __opendb(): The on-the-fly conversion of db entries had two bugs: First, it was comparing the id instead of the entry type. Second, it wasn't aware of len==4 SUBSCRIPTION entries.
* oneline(): Whoops! Typo fix.bwarsaw2003-02-071-1/+1
|
* Tokio Kikuchi's SF patch #674401 to fix some issues with i18n in thebwarsaw2003-02-071-15/+20
| | | | | | | | | | | | digests. Specifically, lheader() -> oneline(): Also, get rid of **kws since we're not going to use these. Catch any LookupError or UnicodeError that may occur, but do the .encode() with 'replace' for a better chance to succeed. send_i18n_digests(): Use Utils.wrap() to wrap the subject headers, and also in the kept headers in plain text digests. Eliminate the blank line between subjects in the ToC.
* Restore the resumable pipeline code.bwarsaw2003-02-051-5/+11
| | | | | | | | | | | _dispose(): Set the msgdata's pipeline attribute to the pipeline list before calling _dopipeline(). If there's no more to do, delete this attribute. This way, if one of the modules throws an exception, we'll resume the next delivery attempt at that module. (E.g. if we unshunt it later). _dopipeline(): Add a bare except which pushes the failing module back on the front of the pipeline list, then re-raises the exception.
* verpdeliver(): Use the copy module's deepcopy() function instead doingbwarsaw2003-02-051-1/+2
| | | | a round trip through flattening.
* prefix_subject(): If the subject is a Header instead of a string,bwarsaw2003-02-051-1/+4
| | | | stringify it before calling .splitlines().
* parsecookie(): Be defensive about bogus cookie data.bwarsaw2003-02-041-2/+6
|