[Mailman-Users] Add to filter from commandline?

Mark Sapiro msapiro at value.net
Sun Aug 19 03:37:29 CEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Willendrup, Peter Kjær wrote:
> 
> I have two mailinglists sitting on the same machine, one being the general
> user mailinglist (A) and the other one the software developer list (B) (B is
> reachable by a commonly known 'support' email adress).
> 
> Is there an easy way to allow members of list A to write messages to list B
> without being members of B?


See
<http://sourceforge.net/tracker/index.php?func=detail&aid=1220144&group_id=103&atid=300103>
for a patch to allow this.


> My current solution is to add the members of A to the accepts filter of list
> B - something that I am currently doing using the web interface...
> 
> My real question is: Is it possible to add addresses to the 'accepts' filter
> of a mailinglist from the commandline?


Not directly, but in a shell script you could prepare a file that looks like

mlist.accept_these_nonmembers.append('usera at example.com')
mlist.accept_these_nonmembers.append('userb at example.com')

and so on for all the non-members you want to add and then run

bin/config_list -i filename listname

where filename is the name of the above file.

Alternatively, you could just prepare an input file that looks like

accept_these_nonmembers = [
'usera at example.com',
'userb at example.com',
'userc at example.net',
'userd at example.net',
]

wherein all the addresses (not just adds) for accept_these_nonmembers
are listed, and then run the same config_list command. See

bin/config_list --help

- --
Mark Sapiro <msapiro at value.net>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)

iD8DBQFGx57ZVVuXXpU7hpMRArI2AJ0YT+CwN3KpSmpPi405ab3cZfyfDQCfcAq8
9sM10pE+cdKpu6v9YGB9iZs=
=rnu2
-----END PGP SIGNATURE-----


More information about the Mailman-Users mailing list