bin/list_members -f <list>|grep -v -e "xxx@xxx.com" > <list>
bin/sync_members -f <list> <list>
Tim wrote:
We have a subscriber address that has /t on the end of it (xxx@xxx.com/t) which can only be seen when dumping the lists config file. The subscriber address looks normal xxx@xxx.com) when looking for it using any other method (list members, etc).
Do you mean '\t', i.e. a tab character? Is the difference between '\t'
and '/t' a typo here or does it have something to do with your lack of
success?
If you try the '-f' option with list_members, you might actually see
the <tab> between 'xxx.com' and the terminating '>'.
I've tried to use reg exps using remove member with no luck
Do you mean bin/remove_members? It doesn't accept regexps, only literal
addresses, and it won't accept a '\t' escape - you'd need to give it
an actual tab character.
You could try
bin/remove_members listname 'xxx@xxx.com<tab>'
where <tab> represents an actual tab character
and tried using the method described in the FAQ (3.13. How do I remove a user name or email address with an illegal character in it?) with no luck either.
Try bin/withlist -l listname
and then at the '>>>' prompts type
adr = 'xxx@xxx.com\t' (this should be the actual address of course)
m.removeMember(adr)
If that throws an exception, try
del m.members[adr]
Then in any case type
m.Save()
in order to save the changed list, and finally type control-D to a
prompt to end the interactive session.
--
Mark Sapiro <msapiro@value.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
| Allan Hansen, Ph.D. |
| P.O. Box 2423, Cypress, CA 90630, U.S.A. |
| |
| Work: Home: |
| Phone: +1-714/952-6015 +1-714/875-8870 |
| Fax: +1-714/952-6746 |
| Email: allan.hansen@ugs.com hansen@rc.org |
| WWW: http://www.ugs.com http://www.rc.org/ |
| |
|_Anything is possible with the right tools and right information_|