From 30012f88ccd200ff6f03844a53233064377be256 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Mon, 1 Sep 2008 22:18:22 -0300 Subject: [PATCH] add pagespec --- IkiWiki/Plugin/postal.pm | 6 +++++- TODO | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/IkiWiki/Plugin/postal.pm b/IkiWiki/Plugin/postal.pm index 1c3e92f18..f9fc955e7 100644 --- a/IkiWiki/Plugin/postal.pm +++ b/IkiWiki/Plugin/postal.pm @@ -40,7 +40,11 @@ sub pagetemplate (@) my $key = encode_ytext($page); - debug("key=".$key); + my $pagespec=$config{postal_pagespec} || "!*/comments"; + + if (!pagespec_match($page,$pagespec)){ + return; + } my $subpage_name=$config{postal_pagename} || "comments"; diff --git a/TODO b/TODO index 3062444c4..c20ba8f7e 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,3 @@ * Clean up debugging cruft -* Add pagespec for which pages get comments * Test VCS adding for postal-accept -- 2.26.2