--- lib/quickml/config.rb +++ lib/quickml/config.rb @@ -39,6 +39,7 @@ @max_threads = (config[:max_threads] or 10) # number of working threads @timeout = (config[:timeout] or 120) @auto_unsubscribe_count = (config[:auto_unsubscribe_count] or 5) + @footer = config[:footer] @log_file = (config[:log_file] or "/var/log/quickml-log") verbose_mode = config[:verbose_mode] --- lib/quickml/core.rb +++ lib/quickml/core.rb @@ -138,6 +138,8 @@ @config.ml_alert_time) @auto_unsubscribe_count = (ml_config[:auto_unsubscribe_count] or @config.auto_unsubscribe_count) + @footer = (ml_config[:footer] or + @config.footer) write_ml_config end @@ -284,6 +286,7 @@ def generate_footer (member_list_p = false) footer = "\n--\n" + "ML: #{@address}\n" + _("Info: %s\n", @config.info_url) + footer << codeconv(@footer.rstrip + "\n") if @footer footer << unsubscribe_info if member_added? footer << "\n" + member_list if member_added? or member_list_p footer @@ -415,6 +418,7 @@ f.printf(" :%s => %d,\n", :ml_alert_time, @ml_alert_time) f.printf(" :%s => %d,\n", :auto_unsubscribe_count, @auto_unsubscribe_count) + f.printf(" :%s => %s,\n", :footer, @footer.dump) if @footer f.puts "}" } end