]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/comment_by_mail.mdwn
b153ca24c6353481e4de9203e1aaa9aa763ca002
[ikiwiki.git] / doc / todo / comment_by_mail.mdwn
1 I would like to allow comments on ikiwiki pages without CGI.
2 I have in mind something like
3
4   * Use a pagetemplate hook  
5     in a plugin (DONE)
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-FE653b@host.fqdn.tld).  (DONE) 
10     > I wonder if it would be more or less natural to put an encoded form
11     > of the page name in the email address? I'm thinking about something
12     > like `wikiname+index@host` or `wikiname+todo+comment_by_mail@host`.
13     > The basic transformation would be to call `titlepage($page)` (in the
14     > C locale), followed by replacing "/" with "+" (since "/" is not
15     > valid in mails). --[[Joey]]
16     >> I guess you are right, there is no point being more obscure 
17     >> than necessary.  I am leaning towards   [something](http://www.cs.unb.ca/~bremner/blog/posts/encoding) not        
18    >> calling titlepage but in the same spirit. --[[DavidBremner]]
19
20   * on the mail receiving end, these messages are either deleted, or ran through
21     a filter to be turned into blog posts.
22
23     - I'm thinking about how the filter should work. Within a 
24     mail client, or as a batch tool to scan a mailbox? How to    interact with version control, if at all?
25
26   * the same plugin can check for comments on a particular page next time the wiki 
27     is generated, and add a link. (more or less done)
28     > If the filter just checks in the posts into revision control, the
29     > post-commit hook would handle updating the wiki to include those
30     > posts as they come in. --[[Joey]]
31   * work in progress can be 
32
33    - [cloned](http://pivot.cs.unb.ca/git/ikiperl.git), or 
34    - [browsed](http://pivot.cs.unb.ca/git/?p=ikipostal.git;a=summary)
35   
36
37 Any comments? Write them here or send them to [[DavidBremner]]
38