]>
git.proxmox.com Git - pmg-docs.git/blob - gen-pmg.conf.5-opts.pl
12 my $types = PMG
::Config
::Base-
>lookup_types;
14 my $single_section = shift;
27 rejectunknownsender
=> 1,
35 conn_count_limit
=> 1,
37 message_rate_limit
=> 1,
61 # verify if we document all mail settings
62 my $plugin = PMG
::Config
::Base-
>lookup('mail');
63 my $schema = $plugin->updateSchema(1);
64 my $properties = $schema->{properties
};
66 my $found_mail_keys = {};
67 foreach my $group (keys %$key_groups) {
68 my ($sec, $hash) = @{$key_groups->{$group}};
69 next if $sec ne 'mail';
70 foreach my $k (keys %$hash) {
71 die "unknown key '$k'" if !defined($properties->{$k});
72 $found_mail_keys->{$k} = 1;
75 foreach my $k (keys %$properties) {
76 next if $skiped_keys->{$k};
77 next if $k =~ m/^max_(filters|policy|smtpd_in|smtpd_out)$/;
78 die "undocumented key '$k'" if !defined($found_mail_keys->{$k});
85 if ($single_section) {
86 if (my $a = $key_groups->{$single_section}) {
87 my ($sec, $hash) = @$a;
88 $single_section = $sec;
94 foreach my $section (@$types) {
95 my $plugin = PMG
::Config
::Base-
>lookup($section);
96 my $schema = $plugin->updateSchema(1);
97 my $properties = $schema->{properties
};
99 if (defined($single_section)) {
100 next if $section ne $single_section;
102 print ".Section '$section'\n\n";
108 my ($key, $phash) = @_;
109 return 1 if $skiped_keys->{$key};
110 return 1 if $select_keys && !$select_keys->{$key};
114 print PVE
::RESTHandler
::dump_properties
(
115 $properties, 'asciidoc', 'config', $filter);
118 if (defined($single_section)) {
119 die "no such section '$single_section'" if !$found;