You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by je...@apache.org on 2005/10/17 18:23:40 UTC
svn commit: r325920 - /httpd/mod_mbox/trunk/module-2.0/mod_mbox_index.c
Author: jerenkrantz
Date: Mon Oct 17 09:23:37 2005
New Revision: 325920
URL: http://svn.apache.org/viewcvs?rev=325920&view=rev
Log:
* module-2.0/mod_mbox_index.c: If we know the list's name, then make the title
of the index page include the list name.
Modified:
httpd/mod_mbox/trunk/module-2.0/mod_mbox_index.c
Modified: httpd/mod_mbox/trunk/module-2.0/mod_mbox_index.c
URL: http://svn.apache.org/viewcvs/httpd/mod_mbox/trunk/module-2.0/mod_mbox_index.c?rev=325920&r1=325919&r2=325920&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/module-2.0/mod_mbox_index.c (original)
+++ httpd/mod_mbox/trunk/module-2.0/mod_mbox_index.c Mon Oct 17 09:23:37 2005
@@ -192,7 +192,14 @@
ap_rputs("<html xmlns=\"http://www.w3.org/1999/xhtml\">\n", r);
ap_rputs(" <head>\n", r);
ap_rputs(" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n", r);
- ap_rputs(" <title>Mailing list archives</title>\n", r);
+ if (mli->list && mli->domain) {
+ ap_rprintf(r, " <title>%s@%s Archives</title>\n",
+ ESCAPE_OR_BLANK(r->pool, mli->list),
+ ESCAPE_OR_BLANK(r->pool, mli->domain));
+ }
+ else {
+ ap_rputs(" <title>Mailing list archives</title>\n", r);
+ }
ap_rprintf(r, "<link rel=\"alternate\" title=\"%s@%s Archives\" "
"type=\"application/atom+xml\" href=\"%s?format=atom\" />",