Subject: The mailing list for listmasters using Sympa
List archive
- From: k clair <address@concealed>
- To: address@concealed
- Subject: [sympa-users] set_list_priority patch
- Date: Fri, 7 Sep 2012 12:57:49 -0700
Hello,
We are now running sympa 6.1.9 and trying to use the patch referenced here to
set list priorities from the command line:
https://listes.renater.fr/sympa/arc/sympa-users/2011-07/msg00014.html
A follow-up message about the issues we are having with this patch is here:
https://listes.renater.fr/sympa/arc/sympa-users/2011-07/msg00014.html
In short, the problem we are seeing with this patch is that if there is no
list priority set in the config file, the new list priority is not getting
written to the config file.
I did a little bit of debugging, and I found that the reason why the
parameter is not getting written to the config file is because of the last
line in this snippet from List.pm:
-----------------------------------
## Save a parameter
sub _save_list_param {
my ($key, $p, $defaults, $fd) = @_;
&do_log('info', '_save_list_param(%s, %s, %s)', $key, $p, $defaults);
## Ignore default value
return 1 if ($defaults == 1);
----------------------------------
The &do_log statement in that snippet of code prints this when there is no
list priority set for a list:
info List::_save_list_param() _save_list_param(priority, 3, 1)
So, for some reason, $defaults (which is coming from
$admin->{'defaults'}{'priority'}), is set to 1.
I cannot figure out why this would be set to 1. In our sympa.conf file, we
have default_list_priority set to 5. I did some additional searching through
the code and couldn't find where this is happening.
Any advice would be great!
Thanks,
Kristina
- [sympa-users] set_list_priority patch, k clair, 09/07/2012
Archive powered by MHonArc 2.6.19+.