From mark at msapiro.net Fri Feb 1 02:31:48 2013 From: mark at msapiro.net (Mark Sapiro) Date: Thu, 31 Jan 2013 17:31:48 -0800 Subject: [Mailman-Users] Links showing up twice in posted messages In-Reply-To: <1359587105.6491.YahooMailNeo@web160802.mail.bf1.yahoo.com> References: <1359587105.6491.YahooMailNeo@web160802.mail.bf1.yahoo.com> Message-ID: <510B1B04.7020402@msapiro.net> On 1/30/2013 3:05 PM, Heather Ben? Dubin wrote: > > Whenever members post messages to this particular list using any kind of URL, the URL comes through twice, for example: > > heather_dubin at yahoo.com > http://www.cce-usa.org/ > > I have looked through all of the settings and compared them to the settings of the lists that are working properly, but I don't see anything that's different. > > > Does anyone have ANY idea why this is happening and what I can do to fix it? Since it only occurs with one list and not others with similar settings (although Mailman wouldn't do this anyway), I suspect it has to do with the mail clients of the people posting to the list. Also, as suggested by Stucki, check the archives and see if they show these artifacts. It may also have to do with content filtering if that is different for this list than others. -- Mark Sapiro The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan From cnulk at scu.edu Sat Feb 2 00:41:50 2013 From: cnulk at scu.edu (Chris Nulk) Date: Fri, 01 Feb 2013 15:41:50 -0800 Subject: [Mailman-Users] Using set_mod.py Message-ID: <510C52BE.1060509@scu.edu> Hello all, I am trying to change moderation settings on some lists via a script so I can automate the list management for several lists (approx. 30 lists). In the script I use the following to run set_mod.py: /usr/lib/mailman/bin/withlist --run /usr/lib/mailman/bin/set_mod LISTNAME --unset address at example.com however, I get the following error back: Importing /usr/lib/mailman/bin/set_mod... Traceback (most recent call last): File "/usr/lib/mailman/bin/withlist", line 297, in ? main() File "/usr/lib/mailman/bin/withlist", line 266, in main mod = __import__(module) ImportError: No module named /usr/lib/mailman/bin/set_mod Just to make sure I am running withlist and set_mod correctly, I did change into the mailman directory (/usr/lib/mailman) and run the command as recommended in the documentation: bin/withlist --run bin/set_mod LISTNAME --unset address at example.com and, I get back the following error: Importing bin/set_mod... Running bin/set_mod.bin/set_mod()... Traceback (most recent call last): File "bin/withlist", line 297, in ? main() File "bin/withlist", line 269, in main func = getattr(mod, callable) AttributeError: 'module' object has no attribute 'bin/set_mod' I tried adding the .py at the end of set_mod but I get a different error. As a matter of fact, things went from bad to worse. All the different trys I did may have corrupted my test list. I had to delete the list and recreate it. Is there a magic incantation so I can run set_mod.py in a script like my first command above? Is there an easy way to modify set_mod.py so I can run it without using withlist (like add_members, remove_members, etc.)? Thanks for an help and any advice, Chris From mark at msapiro.net Sat Feb 2 02:01:28 2013 From: mark at msapiro.net (Mark Sapiro) Date: Fri, 01 Feb 2013 17:01:28 -0800 Subject: [Mailman-Users] Using set_mod.py In-Reply-To: <510C52BE.1060509@scu.edu> References: <510C52BE.1060509@scu.edu> Message-ID: <510C6568.5010901@msapiro.net> On 2/1/2013 3:41 PM, Chris Nulk wrote: > > In the script I use the following to run set_mod.py: > > /usr/lib/mailman/bin/withlist --run /usr/lib/mailman/bin/set_mod > LISTNAME --unset address at example.com /usr/lib/mailman/bin/withlist --help might help, but the argument to --run is a module name, not a path. The module must be in a directory in Python's sys.path which is why the script says "Save as bin/set_mod.py" which you have correctly done, but the command you need is /usr/lib/mailman/bin/withlist --run set_mod LISTNAME --unset address at example.com > [...] > Just to make sure I am running withlist and set_mod correctly, I did > change into the mailman directory (/usr/lib/mailman) and run the command > as recommended in the documentation: > > bin/withlist --run bin/set_mod LISTNAME --unset address at example.com That is not the command recommended in the documentation which says: Save as bin/set_mod.py Run via bin/withlist -r set_mod