% public_email = @old_cfg['public_email'] private_email = @old_cfg['private_email'] source_code = Array(@old_cfg['source_code']).dup archive_urls = Array(@old_cfg.values_at(*%W(ml_url nntp_url imap_url))).flatten if url = archive_urls.shift %>
mail archives: <%= url %><% archive_urls.each do |u| %> <%= u %> <% end # archive_urls.each if private_email || public_email %> <% if public_email %>public: <%= public_email %><% end if private_email && public_email %> / <% end if private_email %>private: <%= private_email %><% end end if url_or_cmd = source_code.shift url_or_cmd = url_or_cmd.sub(%r{\b(https?://\S+)}, "\\1") %> source code: <%= url_or_cmd %> <% source_code.each do |x| %><%= %Q{\t#{x.sub(%r{\b(https?://\S+)}, %Q{\\1})}} %><% end end %><% end %>