[Mailman-Users] Mailman 2.1.13 and Unicode
I wonder if there is any simple way to have my Mailman 2.1.13 strings set to Unicode (UTF-8). I have seen that the Mailman 3.0 announcements even talk about an end to the Unicode story, but as I am no early starter and am glad to finally have 2.1.13 running fine here, I would like to get some advice what to do to have the Mailman interfaces in Unicode, finally. Thank you in advance for your hints, Ulf Dunkel -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] quote-trimming handler
On Jul 4, 2010, Actually, that FAQ link used to go to the specific article which is now at http://wiki.list.org/x/l4A9 before the FAQ was moved. That FAQ discusses how to install custom handlers to do these kinds of things. Thank you, I'll see if I can work up an understanding of it. procmail recipes for enabling rejection : http://www.animalgenome.org/SmartList/contrib/reject_garbage.txt the specific recipe for rejecting a message with overquoting was this one below. The weighting of quoted versus non-quoted lines, represented by the numbers 20 and -10, was arrived at by trial and error, and as I recall, was fairly lenient toward quoting so as not to make too many subscribers complain. Looks like I was pedantic enough in text of the rejection message. Also, today the quoting is done with some form of rich text at times, is it not? -cut here # mine (rob a colorist.org , 1998) :0 hBHw * 20^1 ^ * -10^1 ^[^] { :0c | formail -i Subject: ***quote REJECT engaged| $SENDMAIL -oi $maintainer :0 | quotereject -attach } case $function in -attach) ($formail -iFrom: $listreq -rtAX-Loop: $listaddr $tmprequest ;\ $echo Your mail to the mailinglist has been intercepted and $echo is being returned to you because it it appears to the list server $echo to contain an excessive amount of quoted material. $echo Brief quoting is fine, but please quote only for context. $echo Do not quote other messages in their entirety, or quote $echo message headers or signature files. $echo $echo ...excessive quoting is a waste of resources. $echo If you feel that you've edited your message adequately but $echo it was still returned to you, you can appeal to the administator, $echo rob a colorist.org $echo $echo [message follows] $echo ; cat $tmprequest)\ | $SENDMAIL $sendmailOPT $sender shift ;; esac -cut here- Rob -- Rob Lingelbach r...@colorist.org -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
[Mailman-Users] full list of members
Hi guys, I had a quick view on the faq but could not see an answer for what I'm trying to do, apologies if this has been asked before. How can I see the list of all members in only one page, currently all members are listed in alpabetical order A, B,C I have to click on a letter to see those whose name start with a specific letter. maybe a regular expression can help, but don't know how to do it. I have admin right to the server GUI, but not in CLI. Would appreciate someone to help me. thanks in advance. -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] full list of members
On 7/5/2010 4:56 AM, marc celier wrote: I had a quick view on the faq but could not see an answer for what I'm trying to do, apologies if this has been asked before. How can I see the list of all members in only one page, currently all members are listed in alpabetical order A, B,C I have to click on a letter to see those whose name start with a specific letter. The FAQ at http://wiki.list.org/x/aYA9 says in part: * Visit the admin Membership Management...-Membership List pages one by one and copy/paste/edit the results. (Since 2.1.10, you can set admin_member_chunksize on the General Options page to a number larger than the number of list members to see the whole Membership List on one page - not recommended for large lists.) maybe a regular expression can help, but don't know how to do it. I have admin right to the server GUI, but not in CLI. If your Mailman version is 2.1.10 or newer, set admin_member_chunksize on the list's General Options page the number of list members. Prior to 2.1.10, it is not possible to set admin_member_chunksize via the GUI. -- Mark Sapiro m...@msapiro.netThe highway is for gamblers, San Francisco Bay Area, Californiabetter use your sense - B. Dylan -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] Mailman 2.1.13 and Unicode
Ulf Dunkel wrote: I wonder if there is any simple way to have my Mailman 2.1.13 strings set to Unicode (UTF-8). For English language lists, it should be as simple as putting add_language('en', 'English (USA)', 'utf-8', 'ltr') in mm_cfg.py. This has not been done in the distribution for superstitious reasons. Note that the i18n call _('English (USA)') that's in Defaults.py has been intentionally omitted above. You don't want it in the mm_cfg.py context. For another language which is not already utf-8, e.g. German, in addition to putting add_language('de', 'German', 'utf-8', 'ltr') in mm_cfg.py, you also need to transliterate the message catalog and templates to from iso-8859-1 to utf-8. I.e. you need to do something like #!/bin/sh cd $prefix temp=mktemp for file in `ls templates/de` ; do iconv -f iso-8859-1 -t utf-8 -o $temp templates/de/$file cp $temp templates/de/$file done cd messages/de/LC_MESSAGES iconv -f iso-8859-1 -t utf-8 mailman.po | \ sed '/^Content-Type:/s/charset=.*\\n/charset=utf-8\\n/ $temp cp $temp mailman.po msgfmt -o mailman.mo mailman.po -- Mark Sapiro m...@msapiro.netThe highway is for gamblers, San Francisco Bay Area, Californiabetter use your sense - B. Dylan -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
[Mailman-Users] filtering based on message content
I've had a request from the boss to filter incoming messages to some of our lists based on the message content. Specifically, the request is to hold all messages containing the third of George Carlin's seven words (and presumably by extension also the sixth), which a couple of our subscribers seem to find suitable for use in any context. My first thought, not contradicted by a quick FAQ search, was that there's no way Mailman can do this on its own, at least without hacking core, because it's not scanning the whole message. My second thought was that Spam Assassin could be set to flag the offending messages; Mailman is already set to hold messages that have the spam flag set. But that seems like kind of a kludge. Actually, I take that back. My first thought was to just ban the offenders. But that's not going to fly. Any other ideas? rac -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] filtering based on message content
Russell Clemings wrote: I've had a request from the boss to filter incoming messages to some of our lists based on the message content. Specifically, the request is to hold all messages containing the third of George Carlin's seven words (and presumably by extension also the sixth), which a couple of our subscribers seem to find suitable for use in any context. My first thought, not contradicted by a quick FAQ search, was that there's no way Mailman can do this on its own, at least without hacking core, because it's not scanning the whole message. Yes, and no depending on what you mean by hacking core (or is that hacking code?). The relevant FAQ is http://wiki.list.org/x/l4A9. The handler could be as simple as import re from Mailman import Errors from Mailman.Handlers.Hold import hold_for_approval class BadWords(Errors.HoldMessage): reason = 'Message has bad words' rejection = 'Your message has contains forbidden words.' BADWORDS = re.compile(r'(\W|^)word3(\W|$)|(\W|^)word6(\W|$)', re.I) def process(mlist, msg, msgdata): for part in msg.walk(): if part.is_multipart(): continue if BADWORDS.search(part.get_payload(decode=True)): hold_for_approval(mlist, msg, msgdata, BadWords) My second thought was that Spam Assassin could be set to flag the offending messages; Mailman is already set to hold messages that have the spam flag set. But that seems like kind of a kludge. Perhaps, but it is probably easier to manage. Actually, I take that back. My first thought was to just ban the offenders. But that's not going to fly. Too bad. -- Mark Sapiro m...@msapiro.netThe highway is for gamblers, San Francisco Bay Area, Californiabetter use your sense - B. Dylan -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] quote-trimming handler
Rob Lingelbach wrote: the specific recipe for rejecting a message with overquoting was this one below. The weighting of quoted versus non-quoted lines, represented by the numbers 20 and -10, was arrived at by trial and error, and as I recall, was fairly lenient toward quoting so as not to make too many subscribers complain. Looks like I was pedantic enough in text of the rejection message. Also, today the quoting is done with some form of rich text at times, is it not? -cut here # mine (rob a colorist.org , 1998) :0 hBHw * 20^1 ^ * -10^1 ^[^] The attached Quoting.py is a handler which could be installed per the FAQ at http://wiki.list.org/x/l4A9 to do essentially what it says in its docstring. If I understand your procmail conditions , they would correspond roughly to RATIO = 0.5 in the attached, i.e. quoted lines = 0.5 * unquoted lines, but not exactly because yours includes the message headers which presumably would all be unquoted. Also, the attached handler holds the message rather than rejects it, although it could easily be changed to reject. A proper implementation would make this hold/reject/discard decision a list setting as well as making the ratio and the regexp for a quoted line list settings too. -- Mark Sapiro m...@msapiro.netThe highway is for gamblers, San Francisco Bay Area, Californiabetter use your sense - B. Dylan -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] quote-trimming handler
Mark Sapiro wrote: The attached Quoting.py ... This time, it's really attached (renamed Quoting.py.txt to get through content filtering) -- Mark Sapiro m...@msapiro.netThe highway is for gamblers, San Francisco Bay Area, Californiabetter use your sense - B. Dylan # Copyright (C) 2010 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, # USA. Determine whether this message has excessive quoting. This modules tests some messages for excessive quoting. It is pretty simplistic. It looks only at the first text/plain message part if any, thus it totally misses any HTML only messages if they pass content filtering. Also, this doesn't address the problem of a me too post with an original message (often an entire digest) included without lines prefixed by quoting characters. It should come after MimeDel in the pipeline. RATIO and QRE should be list settings. import re from Mailman import i18n from Mailman import Errors from Mailman.Handlers.Hold import hold_for_approval # re for quoted line QRE = re.compile('^\s*[:|]') # re for blank lines BLRE = re.compile('^\s*$') # Ratio of quoted to unquoted lines considered excessive RATIO = 1.0 def _(s): return s class ExcessiveQuoting(Errors.HoldMessage): reason = _('Message has excessive quoting') rejection = _( 'Your message has too high a ratio of quoted text to original text.') # And reset the translator _ = i18n._ def process(mlist, msg, msgdata): if msgdata.get('approved'): return part = None if msg.is_multipart(): for part in msg.walk(): if part.get_content_type() == 'text/plain': break else: part = msg if not part or part.get_content_type() 'text/plain': return # We now have the text/plain message or the first text/plain part payload = part.get_payload(decode=True) uql = ql = 0.0 for line in payload.splitlines(): if QRE.match(line): ql += 1.0 elif not BLRE.match(line): uql += 1.0 if uql == 0.0 or ql / uql = RATIO: hold_for_approval(mlist, msg, msgdata, ExcessiveQuoting) -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] quote-trimming handler
On Jul 5, 2010, at 11:50 AM, Mark Sapiro wrote: This time, it's really attached (renamed Quoting.py.txt to get through content filtering) This will be a lot of fun to look at and implement. Holding the message is a much better option than a rejection. And now I know how to sneak suitable attachments through Mailman. -- Rob Lingelbach r...@colorist.org -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org