summaryrefslogtreecommitdiff
path: root/Mailman/Handlers (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't delete line following first body line Approve(d)msapiro2005-11-131-1/+1
|
* Log the sender and not list-bounces when non-VERPmsapiro2005-11-131-2/+8
| | | | and mm_cfg.USE_ENVELOPE_SENDER = Yes
* Finnish dialect of "Re:".tkikuchi2005-11-011-1/+1
|
* Add OverflowError in the except list.tkikuchi2005-09-191-1/+1
| | | | | See the thread beginning this post: http://mail.python.org/pipermail/mailman-users/2005-September/046460.html
* Port Mark Sapiro's patch for including the preamble and epilogue sizes inbwarsaw2005-09-191-2/+6
| | | | | message size calculations (and a few others) from the 2.1 maintenance release.
* SF patch #1287546 to remove DomainKey (and similar) headers.bwarsaw2005-09-121-1/+10
|
* back porting from 2.1.6tkikuchi2005-08-2813-184/+575
|
* FSF office has moved. chdcking in for MAIN branch.tkikuchi2005-08-2726-26/+26
|
* process(): In the msg.is_multipart() clause, inside the clause thatbwarsaw2003-09-131-2/+5
| | | | | | | tries to convert t to something reasonable <wink>, we need to use errors='replace' when we encode from unicode to string. This is because the preceding unicode('ascii', 'replace') could end up inserted U+FFFD, which can't be encoded to ascii.
* process(): Use Mailman's Mailbox object to append new messages to thebwarsaw2003-08-151-2/+3
| | | | | | digest.mbox file. This is the same technique that the archiver uses, and should fix Chuq's problem with missing trailing newline separators in digest messages.
* process(): Eliminate extra space in List-IDbwarsaw2003-06-021-1/+1
|
* update copyright yearsbwarsaw2003-05-231-1/+1
|
* process(): Add a short-circuit on the member moderation checks whenbwarsaw2003-05-231-1/+1
| | | | | | | | | the message was pulled from nntp. I'm not 100% sure this is the right solution (e.g. should this be a list config option?) but it fixes the problem that Mike Avery was having, and that we'll soon have when we move python-list! Backport candidate.
* process(): When the list is anonymous, delete X-Originating-Emailbwarsaw2003-04-221-4/+6
| | | | | also. Apparently this is a header that Hotmail adds. Closes patch #725369 by Roger Tsang.
* quit(): It's possible that self.__conn hasn't been opened yet.bwarsaw2003-04-191-0/+2
|
* Rewrite the Connection class to (hopefully) fix known problems withbwarsaw2003-04-191-9/+13
| | | | | | | | SMTP_MAX_SESSIONS_PER_CONNECTION not being honored and connection problems in the middle of a session not being properly recovered. Closing SF bug #707624, although I implemented this in a different way.
* process(): Fix given by Anton Antonov to make sure that CC headers arebwarsaw2003-04-111-12/+19
| | | | | | RFC 2822 compliant. Only zero or one CC header is allowed. Also, True/False where appropriate. Whitespace normalization.
* send_i18n_digests(): Patch # 694912 by Tokio Kikuchi to fix thebwarsaw2003-04-111-2/+4
| | | | scrubbing of attachments in MIME digest messages.
* True/False where appropriate.bwarsaw2003-04-061-15/+24
|
* process(): Don't attempt to use the To field of the posted message inbwarsaw2003-03-211-3/+3
| | | | | | the Subject of the autoreply. This prevents funky characters in say the comment field of the To header from tripping up the reply message. Keep Thomas's Message.py fix as a fallback.
* Update copyright yearsbwarsaw2003-03-111-1/+1
|
* SF patch #683906, add $DESTDIR to install target, by Ademar de Souza Reistwouters2003-03-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
|
* Add Message-Id to (some) logmessages. SF patch #673294, Add message-id totwouters2003-03-101-1/+3
| | | | more log messages, minus an i18nization of 'n/a'.
* prefix_subject(): Capture the no-subject header before we decode it.bwarsaw2003-02-231-2/+2
|
* 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.
* 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().
* verpdeliver(): If we find a non-fully qualified recipient address whenbwarsaw2003-02-041-0/+8
| | | | | calculating the verp header, we log a message and skip this recipient, because we can't possibly deliver to this person via verp.
* prefix_subject(): Supply default argument '' to the get of the subjectbwarsaw2003-01-291-1/+1
| | | | text. You can't splitlines None.
* makedirs(): Only twiddle the attachment directory permissions if webwarsaw2003-01-241-5/+5
| | | | successfully called makedirs().
* I18n fixes for the digester, based on Tokio Kikuchi's patch #668819.bwarsaw2003-01-241-43/+65
| | | | | | | | | | | | | | | | | | | | | | | | | I've modified it though, so any brokenness is my fault. Specifically, KEEP: Removed in favor of Default.py.in's MIME_DIGEST_KEEP_HEADERS. process(): Use Generator.flatten() instead of the deprecated __call__ syntax. send_i18n_digest(): Make sure things like the Subject headers in the toc are coerced to the language the digest is being sent in (i.e. the list's preferred language). Make sure the masthead, header and footer attachments also get the right matching charset attribute. Make sure that the username extracted from the From header is also in the right character set. Use the Header object for proper wrapping of the Subject lines in the toc, not Utils.wrap() which was broken and not i18n aware. Add a blank line between entries in the toc (might be controversial). Send messages in the plain text digest through the scrubber so attachments (and their MIME goo) don't mess up the plain text digests. lheader(): New convenience function.
* Some fixes to retain the continuation whitespace on Subject: linesbwarsaw2003-01-241-4/+10
| | | | | | | | | | | | even after adding the prefix. Specifically, uheader(): Accepts a continuation_ws parameter which is passed straight through to the Header constructor call. prefix_subject(): Split the pre-prefixed Subject: header into lines and get the continuation_ws character from the first continuation line (it won't matter if there is no continuation line). Pass this to uheader().
* A few minor refinements to the previous patch.bwarsaw2003-01-201-6/+10
| | | | | | | | | | | | guess_all_extensions(): Python 2.1 doesn't have mimetypes.common_types. guess_extension(): all could be empty. process(): Need separate try/except clauses for the conversion to unicode, and the conversion to 8-bit strings. Also, use endswith() instead of t[-1] to be more robust against empty strings.
* Fixes for bug #669081. Based on Tokio Kikuchi's patch, but extendedbwarsaw2003-01-201-18/+56
| | | | | | | | | | | | | | | | to fix the other scrubber bugs, and use better Message API. Specifically, guess_extension(): Use mimetypes.guess_all_extensions() to try to find a match between the claimed extension and the claimed content-type. If they match, then just believe it, otherwise, use the first extension guessed. We can still get weird ones because mimetypes has no notion of a priority of mappings from extension to type. process(): Everywhere we set a part's payload to the "scrubbed" message text, first delete the Content-Type header, allowing set_payload() with a character set to set the header, along with the proper charset parameter.
* save_attachment(): Use Message.get_content_type() instead of thebwarsaw2003-01-191-4/+5
| | | | deprecated .get_type() method.
* Copyright years.bwarsaw2003-01-101-4/+4
|
* safe_strftime(): Watch out for TypeError coming back from strftime().bwarsaw2003-01-101-1/+1
|
* process(): Ben Gertzfield idea to add "Content-Disposition: inline"bwarsaw2003-01-071-6/+10
| | | | | | | | | header to the headers and footers parts as a hint to persnickety clients (not mentioning Outlook here) that the text should be displayed inline instead of as attachments. It does no harm so even if it doesn't completely fix the problem it sounds like a good idea.
* bulkdeliver(): We've had reports of an IOError (code == 4, interruptedbwarsaw2003-01-071-5/+5
| | | | | system call) during the conn.sendmail() call. This just sets the message up to retry later.
* do_discard(): Make sure the internal text/plain message has thebwarsaw2002-12-311-2/+4
| | | | | correct character set for the matching language. Closes SF bug #659157.
* process(): This is the part of Martin's patch # 655214 not related tobwarsaw2002-12-201-0/+2
| | | | | | | the archiver. Martin says: - Fixes a bug in the scrubber, where a content-transfer-encoding might have survived flattening of the message.
* process(): Martin's patch #653242 to fix the wacking of thebwarsaw2002-12-131-1/+3
| | | | | content-type in the inner messages when wrapping for decoration purposes.
* process(): Martin von Loewis's fix for specifying the charset ofbwarsaw2002-12-131-4/+4
| | | | header/footer attachments. Closes SF #652910.
* Donn Cave's patch #602087 to honor configure's --srcdir switch.bwarsaw2002-12-121-1/+1
|
* Typo fixes, "administator" -> "administrator". Closes SF #650932bwarsaw2002-12-111-1/+1
|
* ModeratedMemberPost.reason: Some people took offense at this message.bwarsaw2002-12-091-1/+9
| | | | | | See the comment, and this archived message. http://mail.python.org/pipermail/mailman-developers/2002-November/014034.html
* prefix_subject(): One small patch for when the charset in an RFC 2047bwarsaw2002-12-041-1/+6
| | | | | header isn't known, we fall back to the charset of the list's preferred language, with 'replace' of course.
* process(): Be sure to i18n-ify any headers with milst.description inbwarsaw2002-12-021-2/+4
| | | | them.