DokuWiki

It's better when it's simple

User Tools

Site Tools


tips:imap2wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
tips:imap2wiki [2010-01-19 10:55] 92.103.125.220tips:imap2wiki [2010-01-19 19:32] 74.93.99.97
Line 11: Line 11:
 ====== How to use ====== ====== How to use ======
  
-  - adapt the configuration data below to match your IMAP account, replace the imapserver ip address with your own+  - adapt the configuration data below to match your IMAP account, replace the imapserver IP address with your own
   - put the script somewhere on your server   - put the script somewhere on your server
   - you may run it manually or have it run as a cronjob   - you may run it manually or have it run as a cronjob
Line 25: Line 25:
  * Usage:  * Usage:
  *  *
- * Gets email from imap account and adds it to a dokuwiki page+ * Gets email from imap account and adds it to a DokuWiki page
  * Typically used to give offline/email users possibility to comment on wiki contributions  * Typically used to give offline/email users possibility to comment on wiki contributions
  * Subject of email indicates namespace and pagename that will be used to add comments to  * Subject of email indicates namespace and pagename that will be used to add comments to
Line 34: Line 34:
  * Todo : error checking for nasty situations:  * Todo : error checking for nasty situations:
  - subject is not valid wiki namespace  - subject is not valid wiki namespace
-imap server does not respond+IMAP server does not respond
  - posting does not succeed  - posting does not succeed
   
  * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)  * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
  * @author     Riny <riny [at] bk [dot] ru>  * @author     Riny <riny [at] bk [dot] ru>
- * @thanks Andreas Gohr, Harry Fuecks, Christopher Arndt, Christopher Smith and dokuwiki community+ * @thanks Andreas Gohr, Harry Fuecks, Christopher Arndt, Christopher Smith and DokuWiki community
   */   */
  
 // SETUP // SETUP
  
-$host ="localhost";    // servername where your dokuwiki is +$host ="localhost";    // servername where your DokuWiki is 
-$dokuwikipath ="/dokuwiki/doku.php"; //path to your dokuwiki+$dokuwikipath ="/dokuwiki/doku.php"; //path to your DokuWiki
 $discussionprefix = "discussion:";  //based on the discussion template of Esther Brunner $discussionprefix = "discussion:";  //based on the discussion template of Esther Brunner
 $imapuser ="itsmehoney"; //username to log in $imapuser ="itsmehoney"; //username to log in
Line 114: Line 114:
 ///////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////
  
-// connect to imap server 82.62.3.23+// connect to IMAP server 82.62.3.23
  
 $mailbox = imap_open("{83.62.3.23/imap:143}INBOX",$imapuser,$imappass); $mailbox = imap_open("{83.62.3.23/imap:143}INBOX",$imapuser,$imappass);
Line 184: Line 184:
  
 But the wiki is not updated with the new info. But the wiki is not updated with the new info.
-Also i had to add /notls to the imap_server config to disable ssl connection.+Also i had to add /notls to the imap_server config to disable SSL connection.
  
 -- --
 Check your serverlog if the connection has been made. Did you change the URL to match your domain? Standard replies are posted to the //discussion// namespace, have a look at that namespace.  Check your serverlog if the connection has been made. Did you change the URL to match your domain? Standard replies are posted to the //discussion// namespace, have a look at that namespace. 
tips/imap2wiki.txt · Last modified: 2010-01-26 20:26 by 74.93.99.97

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki