Re: [Mailman-Users] doesn't work...
kalin mintchev wrote: > >> strings config.pck | grep wang > >this helped. found 'johnwang @aabdc.com'... took it out with withlist... >isn't mailman supposed to check for stuff like that when mass subscribing? >this was from a mass subscription Yes, I don't know why it failed in this case. Mass subscribe ultimately calls MailList.ApprovedAddMember() to actually add the member. This method in turn calls Utils.ValidateEmail() which raises Errors.MMBadEmailError if the address containes any spaces. The exception is caught in the mass subscribe. I think you are on 2.1.5 based on line numbers in your tracebacks. 2.1.5 Utils.ValidateEmail() would pass e-mail addresses containing control characters in the range \000-\037 and \177. This is corrected in 2.1.6. Possibly the original mass subscribe list contained a control character that later got mapped to a space after the address was validated. -- Mark Sapiro <[EMAIL PROTECTED]> The 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://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp
Re: [Mailman-Users] doesn't work...
> strings config.pck | grep wang this helped. found 'johnwang @aabdc.com'... took it out with withlist... isn't mailman supposed to check for stuff like that when mass subscribing? this was from a mass subscription thanks for the help... now things a back to normal... -- Mailman-Users mailing list Mailman-Users@python.org 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/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp
Re: [Mailman-Users] doesn't work...
kalin mintchev wrote: > >> Are you saying that the above returns an empty list?? How can that be? > >no, no... there are all there - about 1600 or so... but the john guy >isn't there... In your original post you said you did # ./remove_members -a -n -N aaac That should have removed everyone or at least everyone up to the failure, but I guess it failed so the updated list wasn't saved. Have you considered that he maybe has a 'reverse linefeed' or something like that in his address that causes it to be overwritten by the next line of output? >i was just mentioning that i used the withlist as one way to delete the >john guy. i was just trying to add that address and delete it a few >different ways hoping that something in the pck file would get fixed... > > >> It doesn't get to that unless the address is in the mlist.getMembers() >> list and also passes the mlist.isMember(addr) test which means it is >> in either the mlist.members list or the mlist.digest_members list. > >that's clear. then if grep isn't finding that particular string and is not What are you doing with grep? are you piping output from strings into grep or just running grep against config.pck directly? Have you tried looking for just parts of the address? E.g. strings config.pck | grep john strings config.pck | grep wang strings config.pck | grep aabcd strings config.pck | grep cd\.com etc. >in m.getMembers() via withlist how's getMembers() via remove_members >finding it? where does it come from? It is the same getMembers() method. It returns the same list whether you call it in withlist or remove_members calls it. That's why it seems that the address with something funny in it has to be there. >this doesn't really matter but - does getMembers() return all (digest and >not) members? Yes >> That doesn't mean there aren't digest_members. > >right. i was unclear. there are no digest_members on this list - they >don't exist.. Just so were on the same page here, just because the list is not digestable doesn't mean someone could not have been a digest member at a prior time before the list became non-digestable. That person could still be a digest member. >> That's the point about dumping the configuration with bin/config_list >and > then restoring it later. This preserves all the customization. > >ok... i'll try that... thanks Have you tried bin/list_members? You'll need to do that anyway to capture your member list. -- Mark Sapiro <[EMAIL PROTECTED]> The 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://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp
Re: [Mailman-Users] doesn't work...
> Are you saying that the above returns an empty list?? How can that be? no, no... there are all there - about 1600 or so... but the john guy isn't there... i was just mentioning that i used the withlist as one way to delete the john guy. i was just trying to add that address and delete it a few different ways hoping that something in the pck file would get fixed... > It doesn't get to that unless the address is in the mlist.getMembers() > list and also passes the mlist.isMember(addr) test which means it is > in either the mlist.members list or the mlist.digest_members list. that's clear. then if grep isn't finding that particular string and is not in m.getMembers() via withlist how's getMembers() via remove_members finding it? where does it come from? this doesn't really matter but - does getMembers() return all (digest and not) members? > That doesn't mean there aren't digest_members. right. i was unclear. there are no digest_members on this list - they don't exist.. > That's the point about dumping the configuration with bin/config_list and > then restoring it later. This preserves all the customization. ok... i'll try that... thanks > > -- > Mark Sapiro <[EMAIL PROTECTED]> The 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://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp
Re: [Mailman-Users] doesn't work...
- Original Message --- Subject: Re: [Mailman-Users] doesn't work... From: "kalin mintchev" <[EMAIL PROTECTED]> Date: Thu, 29 Sep 2005 22:23:13 -0400 (EDT) To: "Mark Sapiro" <[EMAIL PROTECTED]> Cc: mailman-users@python.org > >> Because the method which is used to remove the member is more general >> than that. > >aha... ok. > >> >> It appears something is messed up in the lists config.pck or perhaps >> there is a transparent character or something similar in the actual >> member address. > >right. but grep didn't find it either... so it's not there. > >> >> Try: >> >> bin/withlist aaac >> Loading list aaac (unlocked) >> The variable `m' is the aaac MailList instance >>>>>m.getMembers() > >i used that to delete the address a few times. btw - is there a list >somewhere of all the commands that can be used while running withlist? No list. Some is knowing some python and knowing the names of list attributes, e.g. from the admin interface. Some is looking at modules like MailList.py, OldStyleMemberships.py, etc. and seeing what methods are available or looking at scripts in bin/ and elsewhere and seeing what they do. Are you saying that the above returns an empty list?? How can that be? bin/remove_members -a does this if all: addresses = mlist.getMembers() try: for addr in addresses: if not mlist.isMember(addr): if not alllists: print _('No such member: %(addr)s') continue mlist.ApprovedDeleteMember(addr, 'bin/remove_members', admin_notif, userack) if alllists: print _("User `%(addr)s' removed from list: %(listname)s.") mlist.Save() finally: mlist.Unlock() It is failing on the mlist.ApprovedDeleteMember(addr, 'bin/remove_members', admin_notif, userack) It doesn't get to that unless the address is in the mlist.getMembers() list and also passes the mlist.isMember(addr) test which means it is in either the mlist.members list or the mlist.digest_members list. >> and see what is returned (type control-D to the next >>> prompt) >> >> Or try bin/dumpdb lists/aaac/config.pck and look at the lists >> >> 'members': > >did that earlier... john is not there > >> and >> >> 'digest_members': > >there are no digests on this list... That doesn't mean there aren't digest_members. > >> If possible, do this from a terminal/console that can display >> 'transparent' characters. > >right... that was done too... > >> OTOH, since you've already blown off the membership, why not just use >> bin/config_list -o to dump the configuration, and remove, recreate the >> list, and use bin/config_list -i to reconfigure the list? > >because it's heavily customized That's the point about dumping the configuration with bin/config_list and then restoring it later. This preserves all the customization. -- Mark Sapiro <[EMAIL PROTECTED]> The 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://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp
Re: [Mailman-Users] doesn't work...
> Because the method which is used to remove the member is more general > than that. aha... ok. > > It appears something is messed up in the lists config.pck or perhaps > there is a transparent character or something similar in the actual > member address. right. but grep didn't find it either... so it's not there. > > Try: > > bin/withlist aaac > Loading list aaac (unlocked) > The variable `m' is the aaac MailList instance m.getMembers() i used that to delete the address a few times. btw - is there a list somewhere of all the commands that can be used while running withlist? > and see what is returned (type control-D to the next >>> prompt) > > Or try bin/dumpdb lists/aaac/config.pck and look at the lists > > 'members': did that earlier... john is not there > and > > 'digest_members': there are no digests on this list... > If possible, do this from a terminal/console that can display > 'transparent' characters. right... that was done too... > OTOH, since you've already blown off the membership, why not just use > bin/config_list -o to dump the configuration, and remove, recreate the > list, and use bin/config_list -i to reconfigure the list? because it's heavily customized and i'm just 'kinda helping' and there was stuff that needed to be sent 'right away'... like 'urgent'... thanks... > > > -- > Mark Sapiro <[EMAIL PROTECTED]> The 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://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp
Re: [Mailman-Users] doesn't work...
kalin mintchev wrote: > >and this - executed in the directory of the aaac list: >who cares if s/he is a member - just get it out... why would you need to >assertIsMember?!? doesn't make sense Because the method which is used to remove the member is more general than that. > >[~/aaac]# grep -rl [EMAIL PROTECTED] * >[~/aaac]# ../../bin/remove_members -a -n -N aaac >Traceback (most recent call last): > File "../../bin/remove_members", line 186, in ? >main() > File "../../bin/remove_members", line 176, in main >admin_notif, userack) > File "/var/mailman/Mailman/MailList.py", line 990, in ApprovedDeleteMember >self.removeMember(emailaddr) > File "/var/mailman/Mailman/OldStyleMemberships.py", line 220, in >removeMember >self.__assertIsMember(member) > File "/var/mailman/Mailman/OldStyleMemberships.py", line 113, in >__assertIsMember >raise Errors.NotAMemberError, member >Mailman.Errors.NotAMemberError: [EMAIL PROTECTED] It appears something is messed up in the lists config.pck or perhaps there is a transparent character or something similar in the actual member address. Try: bin/withlist aaac Loading list aaac (unlocked) The variable `m' is the aaac MailList instance >>>m.getMembers() and see what is returned (type control-D to the next >>> prompt) Or try bin/dumpdb lists/aaac/config.pck and look at the lists 'members': and 'digest_members': If possible, do this from a terminal/console that can display 'transparent' characters. OTOH, since you've already blown off the membership, why not just use bin/config_list -o to dump the configuration, and remove, recreate the list, and use bin/config_list -i to reconfigure the list? Or you can do bin/withlist -l aaac Loading list aaac (locked) The variable `m' is the aaac MailList instance >>>m.members = {} >>>m.digest_members = {} >>>m.language = {} >>>m.passwords = {} >>>m.user_options = {} >>>m.usernames = {} >>>m.Save() >>> (enter control-D here) -- Mark Sapiro <[EMAIL PROTECTED]> The 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://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp
Re: [Mailman-Users] doesn't work...
and this - executed in the directory of the aaac list: who cares if s/he is a member - just get it out... why would you need to assertIsMember?!? doesn't make sense [~/aaac]# grep -rl [EMAIL PROTECTED] * [~/aaac]# ../../bin/remove_members -a -n -N aaac Traceback (most recent call last): File "../../bin/remove_members", line 186, in ? main() File "../../bin/remove_members", line 176, in main admin_notif, userack) File "/var/mailman/Mailman/MailList.py", line 990, in ApprovedDeleteMember self.removeMember(emailaddr) File "/var/mailman/Mailman/OldStyleMemberships.py", line 220, in removeMember self.__assertIsMember(member) File "/var/mailman/Mailman/OldStyleMemberships.py", line 113, in __assertIsMember raise Errors.NotAMemberError, member Mailman.Errors.NotAMemberError: [EMAIL PROTECTED] > > > or explain this please... thank you: > > # ./add_members -a n -w n -r - aaac > [EMAIL PROTECTED] > Subscribed: [EMAIL PROTECTED] > # ./remove_members -a -n -N aaac > Traceback (most recent call last): > File "./remove_members", line 186, in ? > main() > File "./remove_members", line 176, in main > admin_notif, userack) > File "/var/mailman/Mailman/MailList.py", line 990, in > ApprovedDeleteMember > self.removeMember(emailaddr) > File "/var/mailman/Mailman/OldStyleMemberships.py", line 220, in > removeMember > self.__assertIsMember(member) > File "/var/mailman/Mailman/OldStyleMemberships.py", line 113, in > __assertIsMember > raise Errors.NotAMemberError, member > Mailman.Errors.NotAMemberError: [EMAIL PROTECTED] > > > > >> >> can somebody explain this please?... thanks >> >> >> # ./remove_members -n -N aaac [EMAIL PROTECTED] >> # ./remove_members -a -n -N aaac >> Traceback (most recent call last): >> File "./remove_members", line 186, in ? >> main() >> File "./remove_members", line 176, in main >> admin_notif, userack) >> File "/var/mailman/Mailman/MailList.py", line 990, in >> ApprovedDeleteMember >> self.removeMember(emailaddr) >> File "/var/mailman/Mailman/OldStyleMemberships.py", line 220, in >> removeMember >> self.__assertIsMember(member) >> File "/var/mailman/Mailman/OldStyleMemberships.py", line 113, in >> __assertIsMember >> raise Errors.NotAMemberError, member >> Mailman.Errors.NotAMemberError: [EMAIL PROTECTED] >> >> -- >> >> >> >> >> -- >> Mailman-Users mailing list >> Mailman-Users@python.org >> 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/ >> Unsubscribe: >> http://mail.python.org/mailman/options/mailman-users/kalin%40el.net >> >> Security Policy: >> http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp >> > > > -- > > > -- -- Mailman-Users mailing list Mailman-Users@python.org 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/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp
[Mailman-Users] doesn't work...
can somebody explain this please?... thanks # ./remove_members -n -N aaac [EMAIL PROTECTED] # ./remove_members -a -n -N aaac Traceback (most recent call last): File "./remove_members", line 186, in ? main() File "./remove_members", line 176, in main admin_notif, userack) File "/var/mailman/Mailman/MailList.py", line 990, in ApprovedDeleteMember self.removeMember(emailaddr) File "/var/mailman/Mailman/OldStyleMemberships.py", line 220, in removeMember self.__assertIsMember(member) File "/var/mailman/Mailman/OldStyleMemberships.py", line 113, in __assertIsMember raise Errors.NotAMemberError, member Mailman.Errors.NotAMemberError: [EMAIL PROTECTED] -- -- Mailman-Users mailing list Mailman-Users@python.org 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/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp
Re: [Mailman-Users] Doesn't work: ./configure --with-mail-gid=12
> When I try to send it commands, I get this bounce message from Sendmail: > >- Transcript of session follows - > Failure to exec script. WANTED gid 12, GOT gid 2. (Reconfigure to take > 2?) > 554 5.3.0 unknown mailer error 2 > > I understand what's happening here, but my attempts to fix it are > failing. In my mailman source directory, I am doing this: > > make clean > ./configure --with-mail-gid=12 This is *causing* the problem. The program that issues the message above is part of mailman, and it wants what you told it it was getting: gid 12. However, what it's *getting* is gid 2. You need to "reconfigure to take 2". This is FAQ number 1.4, btw, too. http://www.python.org/cgi-bin/faqw-mm.py?req=index -- Mailman-Users maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users
Re: [Mailman-Users] Doesn't work: ./configure --with-mail-gid=12
Huh.. that worked, thanks! I guess I had my mental frame of reference wrong. I thought it was sendmail saying it Wanted 12, but I guess it was from Mailman's point of view. Thanks... Bryan On Thu, 2001-12-13 at 13:29, mel wrote: Well I thought the error message said it Wanted gid 12 and GOT gid 2 Maybe you ought to try make clean ./configure --with-mail-gid 2 make install -- -- System Janitor/Network Plumber http://www.nwla.com Linux User #25446Linux 2.4.7 -- -- Mailman-Users maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users
[Mailman-Users] Doesn't work: ./configure --with-mail-gid=12
Hi, I'm using Sendmail 8.12.1. I'm new to Mailman, just trying to get it working today. When I try to send it commands, I get this bounce message from Sendmail: - Transcript of session follows - Failure to exec script. WANTED gid 12, GOT gid 2. (Reconfigure to take 2?) 554 5.3.0 unknown mailer error 2 I understand what's happening here, but my attempts to fix it are failing. In my mailman source directory, I am doing this: make clean ./configure --with-mail-gid=12 make install Yet, it has no effect -- further messages being sent to my Mailman are giving me this same bounce message. Am I missing something? Thank you! Bryan