Difference between revisions of "Talk:EmailToWiki.pl"
From Organic Design wiki
(example config file) |
(needs some wiki settings too) |
||
Line 12: | Line 12: | ||
$deleteFiltered = false; | $deleteFiltered = false; | ||
$logFile = 'foo.log'; | $logFile = 'foo.log'; | ||
+ | |||
+ | # Set these to the same values as the same variable in the wiki | ||
+ | $wgServer = 'http://www.organicdesign.co.nz'; | ||
+ | $wgScript = '/wiki/index.php'; | ||
+ | $wgSimpleFormsContentQuery = 'content'; | ||
+ | $wgSimpleFormsCActionQuery = 'caction'; | ||
+ | $wgSimpleFormsSummaryQuery = 'summary'; | ||
</perl> | </perl> |
Revision as of 07:57, 10 June 2007
EmailToWiki.pl is called from crontab and has one parameter specifying the name of a configuration file which should reside in the same directory as the script. The config file is eval'd and should set the following variables: <perl>
- $IP/extensions/EmailToWiki/foo.conf
$popServer = 'mail.foo.bar'; $popUser = 'foo'; $popPassword = '***'; $maxLines = 100; $wikiTemplate = 'Email'; $senders = 'foo@bar.com'; $filter = false; $deleteSent = true; $deleteFiltered = false; $logFile = 'foo.log';
- Set these to the same values as the same variable in the wiki
$wgServer = 'http://www.organicdesign.co.nz'; $wgScript = '/wiki/index.php'; $wgSimpleFormsContentQuery = 'content'; $wgSimpleFormsCActionQuery = 'caction'; $wgSimpleFormsSummaryQuery = 'summary'; </perl>