[pmwiki-users] Mailposts messages not arriving at $MailPostsTo list

David Sovinski aslan at aslandata.com
Thu Aug 25 09:48:11 CDT 2005


Thank you for your answer! It did answer another question I had.

However (and I'm talking about beta54 others versions are unknown) I 
found that the whole piece of code you provided can be ommitted and and 
mailposts still works just fine.
Merely having the PerGroup file(s) (like Main.php) in /local that contains

<?php if (!defined('PmWiki')) exit();

 |$EnableMailPosts| <http://www.pmwiki.org/wiki/PmWiki/MailPosts#EnableMailPosts>=1;                   # to enable mailposts
 |$MailPostsTo| <http://www.pmwiki.org/wiki/PmWiki/MailPosts#MailPostsTo>="xxx at mail1.com, yyy at mail2.com, zzz at mail3.com";  # where to send mail
 |$MailPostsFrom| <http://www.pmwiki.org/wiki/PmWiki/MailPosts#MailPostsFrom>="bbb at mail4.com";
 |$MailPostsDelay| <http://www.pmwiki.org/wiki/PmWiki/MailPosts#MailPostsDelay>=1800;                 # wait 30+ minutes after initial post
 |$MailPostsSquelch| <http://www.pmwiki.org/wiki/PmWiki/MailPosts#MailPostsSquelch>=7200;               # require 2+ hours between mails

lets the mailposts script run as described! The script Main.php seems to be run when a Main group page is accessed.
No explicit declaration of mailposts.php in the config.php is necessary.

David Sovinski (Caspian)

>I think the problem is, that the $MailPostsTo variable have to
>declared before "include_once("scripts/mailposts.php");"
>The PerGroup config files are included after execution of local/config.php.
>In my farm I installed a solution where in my local/config.php is a block like
>[... part before execution of PerGroup and PerPage customization ...]
>if (file_exists("local\$group.php")) {
>  include_once("local\$group.php");
>if (file_exists("local\$group.$page.php")) {
>  include_once("local\$group.$page.php");
>[... other parts after execution of PerGroup and PerPage customization ...]
>I couldn't sent the correct code, because of being at a buisiness trip
>without my own laptop. But I hope, I could help you a little bit.

More information about the pmwiki-users mailing list