
Hello :-)
Gmail recipient anti spam filters get me mad.
After some work, I have one list that reaches the gmail recipients, good!
but I have an other list that get bounces. same server, same domain.
I guess I forgot some setup on the other list
comparing on the web interface is very difficult.
is there a way to read these setups directly on the server in a config file where I could make a diff?
thanks jdd

I think that config_list is what you want:
config_list -o list1config list1 config_list -o list2config list2 diff list1config list2config
[root@lists ~]# config_list Configure a list from a text file description.
Usage: config_list [options] listname
Options: --inputfile filename -i filename Configure the list by assigning each module-global variable in the file to an attribute on the list object, then saving the list. The named file is loaded with execfile() and must be legal Python code. Any variable that isn't already an attribute of the list object is ignored (a warning message is printed). See also the -c option.
A special variable named `mlist' is put into the globals during the
execfile, which is bound to the actual MailList object. This lets you
do all manner of bizarre thing to the list object, but BEWARE! Using
this can severely (and possibly irreparably) damage your mailing list!
--outputfile filename
-o filename
Instead of configuring the list, print out a list's configuration
variables in a format suitable for input using this script. In this
way, you can easily capture the configuration settings for a
particular list and imprint those settings on another list. filename
is the file to output the settings to. If filename is `-', standard
out is used.
--checkonly
-c
With this option, the modified list is not actually changed. Only
useful with -i.
--verbose
-v
Print the name of each attribute as it is being changed. Only useful
with -i.
--help
-h
Print this help message and exit.
The options -o and -i are mutually exclusive.
One of -i or -o is required
-p
-- Pat Hirayama Systems Engineer / 206.667.4856 / phirayam@fredhutch.org / Fred Hutch / Cures Start Here CIT | Advancing IT and Data Services to Accelerate the Elimination of Disease
-----Original Message----- From: Mailman-Users [mailto:mailman-users- bounces+phirayam=fredhutch.org@python.org] On Behalf Of jdd Sent: Monday, March 20, 2017 10:53 AM To: mailman-users@python.org Subject: [Mailman-Users] compare lists setup
Hello :-)
Gmail recipient anti spam filters get me mad.
After some work, I have one list that reaches the gmail recipients, good!
but I have an other list that get bounces. same server, same domain.
I guess I forgot some setup on the other list
comparing on the web interface is very difficult.
is there a way to read these setups directly on the server in a config file where I could make a diff?
thanks jdd
Mailman-Users mailing list Mailman-Users@python.org https://urldefense.proofpoint.com/v2/url?u=https- 3A__mail.python.org_mailman_listinfo_mailman- 2Dusers&d=DwICAg&c=eRAMFD45gAfqt84VtBcfhQ&r=lnQBMkNb1mBsioi6aP6ts4Sw0Ua5nVh 4esYOAh4qTKU&m=WxlwhOInW3PJh3_MqjRt1pvf7mVa5W2x1Kaar73VjUw&s=GW0lapInWnCgO_ n5bfTAP7p0W4m3L0MyL_OoSuJqCas&e= Mailman FAQ: https://urldefense.proofpoint.com/v2/url?u=http- 3A__wiki.list.org_x_AgA3&d=DwICAg&c=eRAMFD45gAfqt84VtBcfhQ&r=lnQBMkNb1mBsio i6aP6ts4Sw0Ua5nVh4esYOAh4qTKU&m=WxlwhOInW3PJh3_MqjRt1pvf7mVa5W2x1Kaar73VjUw &s=Uj6rRj8h-rxKR-PMyg-kA91_Np18W-NfaBJ0BSte4rs&e= Security Policy: https://urldefense.proofpoint.com/v2/url?u=http- 3A__wiki.list.org_x_QIA9&d=DwICAg&c=eRAMFD45gAfqt84VtBcfhQ&r=lnQBMkNb1mBsio i6aP6ts4Sw0Ua5nVh4esYOAh4qTKU&m=WxlwhOInW3PJh3_MqjRt1pvf7mVa5W2x1Kaar73VjUw &s=xI7O1DkQtfX722dVADWdV3UUVufYUDWt9DQpvWfn5ow&e= Searchable Archives: https://urldefense.proofpoint.com/v2/url?u=http- 3A__www.mail-2Darchive.com_mailman-2Dusers- 2540python.org_&d=DwICAg&c=eRAMFD45gAfqt84VtBcfhQ&r=lnQBMkNb1mBsioi6aP6ts4S w0Ua5nVh4esYOAh4qTKU&m=WxlwhOInW3PJh3_MqjRt1pvf7mVa5W2x1Kaar73VjUw&s=PfOEBS 2LfKZdRmJjbuWl0pjkVJkn_sGaTEIYsFwasRE&e= Unsubscribe: https://urldefense.proofpoint.com/v2/url?u=https- 3A__mail.python.org_mailman_options_mailman-2Dusers_phirayam- 2540fredhutch.org&d=DwICAg&c=eRAMFD45gAfqt84VtBcfhQ&r=lnQBMkNb1mBsioi6aP6ts 4Sw0Ua5nVh4esYOAh4qTKU&m=WxlwhOInW3PJh3_MqjRt1pvf7mVa5W2x1Kaar73VjUw&s=he7b iG1QSVFTbfjX2BOlwYPvRF0HoRKpntjpux1bshc&e=

"Hirayama, Pat" wrote:
I think that config_list is what you want:
config_list -o list1config list1 config_list -o list2config list2 diff list1config list2config
Thanks to jdd for asking, & Pat for answering, I too am using this to debug a troublesome list list.
Cheers, Julian
Julian Stacey, BSD Linux Unix Sys Eng Consultant Munich Reply below, Prefix '> '. Plain text, No .doc, base64, HTML, quoted-printable. http://berklix.eu/brexit/#stolen_votes http://berklix.eu/brexit/#eu_passports

Le 22/03/2017 à 01:38, Julian H. Stacey a écrit :
"Hirayama, Pat" wrote:
I think that config_list is what you want:
config_list -o list1config list1 config_list -o list2config list2 diff list1config list2config
Thanks to jdd for asking, & Pat for answering, I too am using this to debug a troublesome list list.
and if you want to get rid of comments
http://dodin.info/wiki/pmwiki.php?n=Doc.AfficherUnFichierSansLesCommentaires
jdd

jdd wrote:
Le 22/03/2017 à 01:38, Julian H. Stacey a écrit :
"Hirayama, Pat" wrote:
I think that config_list is what you want: config_list -o list1config list1 config_list -o list2config list2 diff list1config list2config Thanks to jdd for asking, & Pat for answering, I too am using this to debug a troublesome list list. and if you want to get rid of comments http://dodin.info/wiki/pmwiki.php?n=Doc.AfficherUnFichierSansLesCommentaires
Thanks, Contains: cat /etc/sysconfig/cron | egrep -v "^[[:space:]]*$|^#" egrep -v "^$|^#" file
Testing with csh, " was not delimiting (Illegal variable name) so ' cat /etc/crontab | egrep -v '^[[:space:]]*$|^#'
I tried to get an ideally short RE but man egrep is terse, & lacks examples: https://www.freebsd.org/cgi/man.cgi?query=egrep&apropos=0&sektion=0&manpath=FreeBSD+11.0-RELEASE+and+Ports&arch=default&format=html
cd /usr/local/mailman/lists config_list -o - bg | egrep -v '^[[:space:]]*#|^$' # OK, but not ideal config_list -o - bg | egrep -v '^[[:space:]]*#|$' # Empty. config_list -o - bg | egrep -v '^[[:space:]]*[#$]' # Blank lines remain. config_list -o - bg | egrep -v '^[[:space:]]*[#$]|^$' # OK config_list -o - bg | egrep -v '^[[:space:]]{0,}[#$]' # Blank lines remain.
Does some other Unix have a better worded or more verbose RE definition, more examples ?
Cheers, Julian
Julian Stacey, BSD Linux Unix Sys Eng Consultant Munich Reply below, Prefix '> '. Plain text, No .doc, base64, HTML, quoted-printable. http://berklix.eu/brexit/#stolen_votes http://berklix.eu/brexit/#eu_passports

On 03/22/2017 03:39 PM, Julian H. Stacey wrote:
cd /usr/local/mailman/lists config_list -o - bg | egrep -v '^[[:space:]]*#|^$' # OK, but not ideal config_list -o - bg | egrep -v '^[[:space:]]*#|$' # Empty.
Because '^[[:space:]]*#|$' matches '^[[:space:]]*#' or '$' i.e. everything with an end of line
config_list -o - bg | egrep -v '^[[:space:]]*[#$]' # Blank lines remain.
Because [#$] is a character class matching literally '3' or '$' not end of line.
config_list -o - bg | egrep -v '^[[:space:]]*[#$]|^$' # OK config_list -o - bg | egrep -v '^[[:space:]]{0,}[#$]' # Blank lines remain.
As above.
Does some other Unix have a better worded or more verbose RE definition,
You don't need to be concerned about leading whitespace because config_list -o doesn't write comments with lkeading whitespace.
config_list -o - bg | egrep -v '^(#|$)'
which matches and ignores any line that starts with # or is empty. This is similar to your '^[[:space:]]*#|^$' example without the unneeded [[:space:]]* except it says 'beginning of the line followed by either # or end of line' instead of 'beginning of line followed by # or begining of line followed by end of line'
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (4)
-
Hirayama, Pat
-
jdd
-
Julian H. Stacey
-
Mark Sapiro