Re: [Mailman-Users] Script Alternative to Radio Buttons?
> We need a command line script alternative to the web > page radio buttons, and we are willing to pay for it! Here's what I did: in Mailman/Cgi/admindb.py, there's some code that looks like this: buttons.AddRow(map(lambda x, s=' '*5: s+x+s, ('Defer', 'Approve', 'Reject', 'Discard'))) buttons.AddRow([Center(RadioButton(id, mm_cfg.DEFER, 1)), Center(RadioButton(id, mm_cfg.APPROVE, 0)), Center(RadioButton(id, mm_cfg.REJECT, 0)), Center(RadioButton(id, mm_cfg.DISCARD, 0)), ]) Change the DEFER default to '0' from '1' and change DISCARD from '0' to '1' and then when you visit the web page, the default action selected is to DISCARD the pending message; after a quick scan to look for 'legit' messages, you can drop them all in one click. You're welcome; that'll be $1.5M. :-) /jordan -- Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ This message was sent to: [EMAIL PROTECTED] Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
[Mailman-Users] script alternative to radio buttons?
We need a command line script alternative to the web page radio buttons, and we are willing to pay for it! We have ten mailman mailing lists that we use very effectively with our customers and internal staff. Every day, our Administrator has to go to the "Pending Administrative Requests for mailing list ..." to get rid of all the spam posts. Often there are fifty or so per mailing list, so 500 unwanted administrative pieces of mail. It takes a very long time (one or more hours per day) to click the "discard" radio button for each mail message per mailing list, and then finally click on the "Submit All Data" button. Our administrator would like to quickly skim the pending messages, see if there are any that are bonafide messages that should be posted to the mailing list, and then discard all the rest in one fell swoop. If someone could write us a script that we could run from the Red Hat Linux command line, we are willing to pay for the development and resubmit to the community. We would like to do something like this: linux prompt% discard pendingmsgs mailinglistone where "discard" is the command, "pendingmsgs" is an argument, and "mailinglistone" is the name of the mailing list to get the treatment. We use Mailman 2.1.2 and RedHat Linux 9.x. We compiled our own version of Mailman because the one that shipped with RedHat did not work right. Our network administrator who set this all up says he is too busy to write the script for us, so that is why we are asking for help from the community. Thanks in advance. --- ==--==- Chris Wellens President & CEO InterWorking Labs --==--= 108 Whispering Pines Dr, Ste 115, Scotts Valley, CA 95066-4792 ==--==- [EMAIL PROTECTED] +1 831 430 3610 +1 831 430 9144 Fax --- -- Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ This message was sent to: [EMAIL PROTECTED] Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] script alternative to radio buttons?
Hi, How about this; http://sourceforge.net/tracker/?func=detail&aid=636412&group_id=103&atid=300103 Cheers, Tokio Chris Wellens wrote: We need a command line script alternative to the web page radio buttons, and we are willing to pay for it! We have ten mailman mailing lists that we use very effectively with our customers and internal staff. Every day, our Administrator has to go to the "Pending Administrative Requests for mailing list ..." to get rid of all the spam posts. Often there are fifty or so per mailing list, so 500 unwanted administrative pieces of mail. It takes a very long time (one or more hours per day) to click the "discard" radio button for each mail message per mailing list, and then finally click on the "Submit All Data" button. Our administrator would like to quickly skim the pending messages, see if there are any that are bonafide messages that should be posted to the mailing list, and then discard all the rest in one fell swoop. If someone could write us a script that we could run from the Red Hat Linux command line, we are willing to pay for the development and resubmit to the community. We would like to do something like this: linux prompt% discard pendingmsgs mailinglistone where "discard" is the command, "pendingmsgs" is an argument, and "mailinglistone" is the name of the mailing list to get the treatment. We use Mailman 2.1.2 and RedHat Linux 9.x. We compiled our own version of Mailman because the one that shipped with RedHat did not work right. Our network administrator who set this all up says he is too busy to write the script for us, so that is why we are asking for help from the community. Thanks in advance. -- Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ This message was sent to: [EMAIL PROTECTED] Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] Script Alternative to Radio Buttons?
On Mon, 2003-08-11 at 13:56, Jordan Hayes wrote: > > We need a command line script alternative to the web > > page radio buttons, and we are willing to pay for it! > > Here's what I did: in Mailman/Cgi/admindb.py, there's some code that > looks like this: > > buttons.AddRow(map(lambda x, s=' '*5: s+x+s, >('Defer', 'Approve', 'Reject', 'Discard'))) > buttons.AddRow([Center(RadioButton(id, mm_cfg.DEFER, 1)), > Center(RadioButton(id, mm_cfg.APPROVE, 0)), > Center(RadioButton(id, mm_cfg.REJECT, 0)), > Center(RadioButton(id, mm_cfg.DISCARD, 0)), > ]) > > > Change the DEFER default to '0' from '1' and change DISCARD from '0' to > '1' and then when you visit the web page, the default action selected is > to DISCARD the pending message; after a quick scan to look for 'legit' > messages, you can drop them all in one click. > > You're welcome; that'll be $1.5M. > > :-) > > /jordan Well you have got to be using Mailman version 2.0... In which case, Jordan solution is ideal for you! If you don't want to re-install, then you can use the work-around that is in the FAQ. http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.012.htp Basically, you store a copy of the empty request.db file, then you can delete the messages manually at anytime and replace the old request.db with the empty one. rm ~mailman/data/heldmsg--* 2> /dev/null cp ~mailman/lists//orig.request.db ~mailman/lists//request.db If you want, you could box it in a script like so: #! /bin/bash # # Mailman 2.0 work around to manually delete held messages # Note: go through the web interface and scan first (if you like) # then run this script for the list. # # Note: orig.request.db is a copy of an empty request.db database # that has been copied to ~mailman/data/orig.request.db # # Input: The name of an existing list # If [ "xxx" == "xxx$1" ]; then echo Please input the name of a Mailman List exit 0 fi # if [ ! -d ~mailman/lists/$1 ]; then echo Invalid list name (use all lower case) exit 0 fi # rm ~mailman/data/heldmsg-$1-* 2> /dev/null cp ~mailman/data/orig.request.db ~mailman/lists/$1/request.db That should do it for you! Enjoy - Jon Carnes -- Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ This message was sent to: [EMAIL PROTECTED] Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] Script Alternative to Radio Buttons?
At 10:48 AM -0700 2003/08/11, C. Kay Wellens wrote: It takes a very long time (one or more hours per day) to click the "discard" radio button for each mail message per mailing list, and then finally click on the "Submit All Data" button. Search the archives. There's already been at least one discussion on this topic, and a source code change suggested that would make the default to be "discard" for all mailing lists on the system. You could quickly scan the messages for each list, choose a different radio button for each non-spam message, and then hit the "Submit All" button to discard everything else. If you're really desperate, the same people who found that source code change might be willing to help you develop script alternative to do the same thing from the command line. -- Brad Knowles, <[EMAIL PROTECTED]> "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin, Historical Review of Pennsylvania. GCS/IT d+(-) s:+(++)>: a C++(+++)$ UMBSHI$ P+>++ L+ !E-(---) W+++(--) N+ !w--- O- M++ V PS++(+++) PE- Y+(++) PGP>+++ t+(+++) 5++(+++) X++(+++) R+(+++) tv+(+++) b+() DI+() D+(++) G+() e++> h--- r---(+++)* z(+++) -- Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ This message was sent to: [EMAIL PROTECTED] Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
[Mailman-Users] Script Alternative to Radio Buttons?
We need a command line script alternative to the web page radio buttons, and we are willing to pay for it! We have ten mailman mailing lists that we use very effectively with our customers and internal staff. Every day, our Administrator has to go to the "Pending Administrative Requests for mailing list ..." to get rid of all the spam posts. Often there are fifty or so per mailing list, so 500 unwanted administrative pieces of mail. It takes a very long time (one or more hours per day) to click the "discard" radio button for each mail message per mailing list, and then finally click on the "Submit All Data" button. Our administrator would like to quickly skim the pending messages, see if there are any that are bonafide messages that should be posted to the mailing list, and then discard all the rest in one fell swoop. If someone could write us a script that we could run from the Red Hat Linux command line, we are willing to pay for the development and resubmit to the community. We would like to do something like this: linux prompt% discard pendingmsgs mailinglistone where "discard" is the command, "pendingmsgs" is an argument, and "mailinglistone" is the name of the mailing list to get the treatment. We use Mailman 2.1.2 and RedHat Linux 9.x. We compiled our own version of Mailman because the one that shipped with RedHat did not work right. Our network administrator who set this all up says he is too busy to write the script for us, so that is why we are asking for help from the community. Thanks in advance. --- ==--==- Chris Wellens President & CEO InterWorking Labs --==--= 108 Whispering Pines Dr, Ste 115, Scotts Valley, CA 95066-4792 ==--==- [EMAIL PROTECTED] +1 831 430 3610 +1 831 430 9144 Fax --- __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com -- Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ This message was sent to: [EMAIL PROTECTED] Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/archive%40jab.org