1 I would like to allow comments on ikiwiki pages without CGI.
2 I have in mind something like
4 * Use a pagetemplate hook
6 * add a mailto: url to each page matching some pagespec
7 (currently every page gets a comment footer)
8 * this mailto url goes to an address identifying the page (something like
9 user-iki-blog~I\_hate\_markdown@host.fqdn.tld). (DONE)
10 [more details](http://www.cs.unb.ca/~bremner/blog/posts/encoding)
12 * on the mail receiving end, these messages are either deleted, or ran through
13 a filter to be turned into blog posts. As a first step, I have
14 [written](http://pivot.cs.unb.ca/git/?p=ikipostal.git;a=blob_plain;f=filters/postal-filer.pl;hb=010357a08e9)
15 a filter that decodes the address and writes the message into an appropriate
16 mailbox. I would be interested in any ideas people have about security.
18 * the same plugin can check for comments on a particular page next time the wiki
19 is generated, and add a link. (more or less done)
20 > If the filter just checks in the posts into revision control, the
21 > post-commit hook would handle updating the wiki to include those
22 > posts as they come in. --[[Joey]]
23 * work in progress can be
25 - [cloned](http://pivot.cs.unb.ca/git/ikipostal.git), or
26 - [browsed](http://pivot.cs.unb.ca/git/?p=ikipostal.git;a=summary)
29 Any comments? Write them here or send them to [[DavidBremner]]
31 > I don't want to derail this with too much blue-skying, but I was thinking
32 > earlier that it would be nice if ikiwiki could do something sensible with
33 > mailbox files, such as turning them into a (threaded?) blog display.
35 > One reason I was thinking about that was just that it would be nice to
36 > be able to use ikiwiki for mailing list archives. But another reason was
37 > that it would be nice to solve the problem described in
38 > [[discussion_page_as_blog]]. For that you really want a threaded system,
39 > and mailbox file formats already have threading.
41 > If that were done, it would tie into what you're working on in an
42 > interesting way, since the incoming mail would only need to be committed to
43 > the appropriate mailbox file, with ikiwiki then running to process it.
45 >> It is an interesting idea. I like that it uses an arbitrary MUA
46 >> as a "moderation" interface. After I killed a debian BTS entry with
47 >> clumsy pseudoheader editing I think any
48 >> reference info should also be encoded into the address.
50 The current version of this plugin is now running on my home page. See for example
51 [a recent post in my blog](http://www.cs.unb.ca/~bremner/blog/posts/can-i-haz-a-distributed-rss/).
52 Unfortunately although the [[mailbox|todo/mbox]] renderer supports threading, I haven't had
53 a chance to implement comments on comments yet. [[DavidBremner]]